public class MessageText extends Object implements Serializable, Cloneable
| Constructor and Description |
|---|
MessageText()
Default constructor.
|
MessageText(String text)
Constructor for uncached + unparsed MessageTexts.
|
MessageText(String messageID,
String pRawText)
Constructor for MessageText identified by number.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Makes a copy of this object.
|
boolean |
equals(Object that)
Checks equality based on ID.
|
Object |
getId()
Returns the ID of this object.
|
int |
hashCode()
Returns hash code based on ID.
|
String |
substitute(boolean singleLine,
Object[] args)
Parses and keeps a substituted string for this text (which is also
returned).
|
String |
toString()
Returns the "best possible representation" of this object as a String - a
substituted string if substitution has been performed, otherwise the raw
text (or empty).
|
public MessageText()
public MessageText(String messageID, String pRawText)
messageID - message ID for this textpRawText - Unparsed textpublic MessageText(String text)
text - The text...public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - NeverObject.clone()public int hashCode()
hashCode in class ObjectObject.clone()public boolean equals(Object that)
equals in class Objectthat - Object to compare toObject.equals(java.lang.Object)public Object getId()
public String substitute(boolean singleLine, Object[] args)
singleLine - As specified in
ITextPart.appendPart(StringBuffer, boolean, Object[])args - Substitution variablesCopyright © 2006–2018 Esito AS. All rights reserved.