com.corrspt.xeo.api.core
Class XEOObjectMessage

java.lang.Object
  extended by com.corrspt.xeo.api.core.XEOObjectMessage
All Implemented Interfaces:
Message

public class XEOObjectMessage
extends java.lang.Object
implements Message

Represents a message associated to an XEOObject


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.corrspt.xeo.api.core.Message
Message.MessageType
 
Method Summary
static XEOObjectMessage createCriticalMessage(java.lang.String title, java.lang.String content)
          Create a new Critical message to add to an XEO Object
static XEOObjectMessage createErrorMessage(java.lang.String title, java.lang.String content)
          Create a new Error message to add to an XEO Object
static XEOObjectMessage createInfoMessage(java.lang.String title, java.lang.String content)
          Create a new Info message to add to an XEO Object
 java.lang.String getContent()
          Get the content of the message
 java.lang.String geTitle()
          Get the title of the message
 Message.MessageType getType()
          Retrieve the message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

geTitle

public java.lang.String geTitle()
Get the title of the message

Specified by:
geTitle in interface Message
Returns:
The message title

getContent

public java.lang.String getContent()
Get the content of the message

Specified by:
getContent in interface Message
Returns:
The message content

getType

public Message.MessageType getType()
Retrieve the message

Specified by:
getType in interface Message
Returns:

createInfoMessage

public static XEOObjectMessage createInfoMessage(java.lang.String title,
                                                 java.lang.String content)
Create a new Info message to add to an XEO Object

Parameters:
title - The title of the message
content - The message content
Returns:
An info message

createErrorMessage

public static XEOObjectMessage createErrorMessage(java.lang.String title,
                                                  java.lang.String content)
Create a new Error message to add to an XEO Object

Parameters:
title - The title of the message
content - The message content
Returns:
An Error message

createCriticalMessage

public static XEOObjectMessage createCriticalMessage(java.lang.String title,
                                                     java.lang.String content)
Create a new Critical message to add to an XEO Object

Parameters:
title - The title of the message
content - The message content
Returns:
A critical message