com.jaxfront.core.rule
Class Message

java.lang.Object
  extended by com.jaxfront.core.rule.Message
All Implemented Interfaces:
java.lang.Cloneable

public class Message
extends java.lang.Object
implements java.lang.Cloneable

Message to display in a status bar in muliple languages.

Version:
1.60

Constructor Summary
Message(int id, Type sourceType, java.lang.String classification, boolean needsUserAcceptance, FormulaExpression formEx)
          Creates a message based on an id, a holding type, a classification, userAcceptance flag and a formula exression.
 
Method Summary
 java.lang.Object clone(Type newSourceType)
           
 java.lang.String getClassification()
          Returns the classification string.
 java.lang.String getText()
          Returns the message text.
 boolean isErrorMessage()
          Returns true if this is a message of type XUITypes.UIS_ENUM_CLASSIFICATION_ERROR.
 boolean isHintMessage()
          Returns true if this is a message of type UIS_ENUM_CLASSIFICATION_HINT.
 boolean isInfoMessage()
          Returns true if this is a message of type UIS_ENUM_CLASSIFICATION_INFO.
 boolean isNeedingUserAcceptance()
          Returns true if the user needs to respond (accept) this message.
 boolean isQuestionMessage()
          Returns true if this is a message of type UIS_ENUM_CLASSIFICATION_QUESTION.
 boolean isWarningMessage()
          Returns true if this is a message of type UIS_ENUM_CLASSIFICATION_WARNING.
 void release()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message(int id,
               Type sourceType,
               java.lang.String classification,
               boolean needsUserAcceptance,
               FormulaExpression formEx)
Creates a message based on an id, a holding type, a classification, userAcceptance flag and a formula exression.

Parameters:
id -
sourceType -
classification -
needsUserAcceptance -
formEx -
Method Detail

getText

public java.lang.String getText()
Returns the message text.


isErrorMessage

public boolean isErrorMessage()
Returns true if this is a message of type XUITypes.UIS_ENUM_CLASSIFICATION_ERROR.


isInfoMessage

public boolean isInfoMessage()
Returns true if this is a message of type UIS_ENUM_CLASSIFICATION_INFO.


isWarningMessage

public boolean isWarningMessage()
Returns true if this is a message of type UIS_ENUM_CLASSIFICATION_WARNING.


getClassification

public java.lang.String getClassification()
Returns the classification string. The following classification exists: UIS_ENUM_CLASSIFICATION_ERROR = "error"; UIS_ENUM_CLASSIFICATION_INCOMPLETE = "incomplete"; UIS_ENUM_CLASSIFICATION_INFO = "info"; UIS_ENUM_CLASSIFICATION_WARNING = "warning"; UIS_ENUM_CLASSIFICATION_HINT = "hint"; UIS_ENUM_CLASSIFICATION_QUESTION = "question";

Returns:
See Also:
XUITypes

isNeedingUserAcceptance

public boolean isNeedingUserAcceptance()
Returns true if the user needs to respond (accept) this message.


isHintMessage

public boolean isHintMessage()
Returns true if this is a message of type UIS_ENUM_CLASSIFICATION_HINT.


isQuestionMessage

public boolean isQuestionMessage()
Returns true if this is a message of type UIS_ENUM_CLASSIFICATION_QUESTION.


clone

public java.lang.Object clone(Type newSourceType)

release

public void release()