|
TPTP 4.1.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.tptp.logging.events.cbe.impl.MsgDataElementImpl
Interface representing a MsgDataElement.
The following description is from the Common Base Event v1.0.1 specification entitled "Canonical Situation Data Format: The Common Base Event V1.0.1":
The MsgDataElement represents the data that is used to specify all of the related information that is associated with the message that this event holds.
| Field Summary | |
|---|---|
protected java.lang.String |
msgCatalog
The cached value of the ' Msg Catalog'
attribute. |
protected java.lang.String |
msgCatalogId
The cached value of the ' Msg Catalog Id' attribute. |
protected java.util.List |
msgCatalogTokens
The cached value of the ' Msg Catalog Tokens' containment
reference list. |
protected java.lang.String |
msgCatalogType
The cached value of the ' Msg Catalog Type' attribute. |
protected java.lang.String |
msgId
The cached value of the ' Msg Id'
attribute. |
protected java.lang.String |
msgIdType
The cached value of the ' Msg Id Type'
attribute. |
protected java.lang.String |
msgLocale
The cached value of the ' Msg Locale'
attribute. |
| Constructor Summary | |
|---|---|
protected |
MsgDataElementImpl()
|
| Method Summary | |
|---|---|
MsgCatalogToken |
addMsgCatalogToken(MsgCatalogToken value)
Adds a new MsgCatalogToken to this object. |
MsgCatalogToken |
addMsgCatalogTokenAsString(java.lang.String value)
Adds a new MsgCatalogToken to this object. |
void |
clearMsgCatalogTokens()
Removes all msgCatalogTokens that this event is referencing |
java.lang.Object |
clone()
Return a cloned (copy by value) object of this object. |
boolean |
equals(java.lang.Object object)
Overrides the java.lang.Object's equals() API to
determine if the parameter object is equal to this object. |
java.lang.String |
getMsgCatalog()
|
java.lang.String |
getMsgCatalogId()
|
java.util.List |
getMsgCatalogTokens()
|
java.lang.String[] |
getMsgCatalogTokensAsStrings()
Returns the value of the 'Msg Catalog Tokens' attribute list. |
java.lang.String |
getMsgCatalogType()
|
java.lang.String |
getMsgId()
|
java.lang.String |
getMsgIdType()
|
java.lang.String |
getMsgLocale()
|
void |
init()
Resets the object's properties to their initial (e.g. |
void |
setMsgCatalog(java.lang.String newMsgCatalog)
|
void |
setMsgCatalogId(java.lang.String newMsgCatalogId)
|
void |
setMsgCatalogTokens(MsgCatalogToken[] msgCatalogTokens)
Sets the value of the 'Msg Catalog Tokens' attribute list. |
void |
setMsgCatalogTokensAsStrings(java.lang.String[] msgCatalogTokens)
Sets the value of the 'Msg Catalog Tokens' attribute list. |
void |
setMsgCatalogType(java.lang.String newMsgCatalogType)
|
void |
setMsgId(java.lang.String newMsgId)
|
void |
setMsgIdType(java.lang.String newMsgIdType)
|
void |
setMsgLocale(java.lang.String newMsgLocale)
|
java.lang.String |
toString()
|
void |
validate()
Checks whether the contents of the instance conform to the Common Base Event specification as described in "Canonical Situation Data Format: The Common Base Event V1.0.1". |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String msgIdType
Msg Id Type'
attribute.
getMsgIdType()protected java.lang.String msgCatalogType
Msg Catalog Type' attribute.
getMsgCatalogType()protected java.lang.String msgCatalog
Msg Catalog'
attribute.
getMsgCatalog()protected java.lang.String msgCatalogId
Msg Catalog Id' attribute.
getMsgCatalogId()protected java.lang.String msgId
Msg Id'
attribute.
getMsgId()protected java.lang.String msgLocale
Msg Locale'
attribute.
getMsgLocale()protected java.util.List msgCatalogTokens
Msg Catalog Tokens' containment
reference list.
getMsgCatalogTokens()| Constructor Detail |
protected MsgDataElementImpl()
| Method Detail |
public java.lang.String getMsgIdType()
getMsgIdType in interface MsgDataElementMsgDataElement.setMsgIdType(String),
org.eclipse.tptp.logging.events.cbe.EventPackage#getMsgDataElement_MsgIdType()public void setMsgIdType(java.lang.String newMsgIdType)
setMsgIdType in interface MsgDataElementnewMsgIdType - the new value of the 'Msg Id Type' attribute.MsgDataElement.getMsgIdType()public java.lang.String getMsgCatalogType()
getMsgCatalogType in interface MsgDataElementMsgDataElement.setMsgCatalogType(String),
org.eclipse.tptp.logging.events.cbe.EventPackage#getMsgDataElement_MsgCatalogType()public void setMsgCatalogType(java.lang.String newMsgCatalogType)
setMsgCatalogType in interface MsgDataElementnewMsgCatalogType - the new value of the 'Msg Catalog Type'
attribute.MsgDataElement.getMsgCatalogType()public java.lang.String getMsgCatalog()
getMsgCatalog in interface MsgDataElementMsgDataElement.setMsgCatalog(String),
org.eclipse.tptp.logging.events.cbe.EventPackage#getMsgDataElement_MsgCatalog()public void setMsgCatalog(java.lang.String newMsgCatalog)
setMsgCatalog in interface MsgDataElementnewMsgCatalog - the new value of the 'Msg Catalog' attribute.MsgDataElement.getMsgCatalog()public java.lang.String getMsgCatalogId()
getMsgCatalogId in interface MsgDataElementMsgDataElement.setMsgCatalogId(String),
org.eclipse.tptp.logging.events.cbe.EventPackage#getMsgDataElement_MsgCatalogId()public void setMsgCatalogId(java.lang.String newMsgCatalogId)
setMsgCatalogId in interface MsgDataElementnewMsgCatalogId - the new value of the 'Msg Catalog Id' attribute.MsgDataElement.getMsgCatalogId()public java.lang.String getMsgId()
getMsgId in interface MsgDataElementMsgDataElement.setMsgId(String),
org.eclipse.tptp.logging.events.cbe.EventPackage#getMsgDataElement_MsgId()public void setMsgId(java.lang.String newMsgId)
setMsgId in interface MsgDataElementnewMsgId - the new value of the 'Msg Id' attribute.MsgDataElement.getMsgId()public java.lang.String getMsgLocale()
getMsgLocale in interface MsgDataElementMsgDataElement.setMsgLocale(String),
org.eclipse.tptp.logging.events.cbe.EventPackage#getMsgDataElement_MsgLocale()public void setMsgLocale(java.lang.String newMsgLocale)
setMsgLocale in interface MsgDataElementnewMsgLocale - the new value of the 'Msg Locale' attribute.MsgDataElement.getMsgLocale()public java.util.List getMsgCatalogTokens()
getMsgCatalogTokens in interface MsgDataElementorg.eclipse.tptp.logging.events.cbe.EventPackage#getMsgDataElement_MsgCatalogTokens()public java.lang.String toString()
public void validate()
throws ValidationException
validate in interface MsgDataElementValidationException - If the event instance does not conform to the Common Base Event specification.public MsgCatalogToken addMsgCatalogToken(MsgCatalogToken value)
MsgDataElementMsgCatalogToken to this object.
It creates a MsgCatalogToken object with the values passed
as parameters and adds it to the list of extended data elements for this
object.
addMsgCatalogToken in interface MsgDataElementvalue - the MsgCatalogToken value.
MsgDataElement.addMsgCatalogToken(org.eclipse.tptp.logging.events.cbe.MsgCatalogToken)public MsgCatalogToken addMsgCatalogTokenAsString(java.lang.String value)
MsgDataElementMsgCatalogToken to this object.
It creates a MsgCatalogToken object with the values passed
as parameters and adds it to the list of extended data elements for this
object.
addMsgCatalogTokenAsString in interface MsgDataElementvalue - the String value for the new message catalog
token.
MsgDataElement.addMsgCatalogTokenAsString(String)public void clearMsgCatalogTokens()
clearMsgCatalogTokens in interface MsgDataElementpublic java.lang.String[] getMsgCatalogTokensAsStrings()
MsgDataElement
Each string corresponds to the value attribute of a
MsgCatalogToken inside the message catalog token list.
getMsgCatalogTokensAsStrings in interface MsgDataElementMsgDataElement.getMsgCatalogTokensAsStrings()public void setMsgCatalogTokensAsStrings(java.lang.String[] msgCatalogTokens)
MsgDataElement
Each string is translated to the value attribute of a
MsgCatalogToken to be added to the message catalog token
list.
Any prior message catalog token is removed before the new list is set.
setMsgCatalogTokensAsStrings in interface MsgDataElementmsgCatalogTokens - array of values for the message catalog tokensMsgDataElement.setMsgCatalogTokensAsStrings(String[])public void setMsgCatalogTokens(MsgCatalogToken[] msgCatalogTokens)
MsgDataElement
Each string is translated to the value attribute of a
MsgCatalogToken to be added to the message catalog token
list.
Any prior message catalog token is removed before the new list is set.
setMsgCatalogTokens in interface MsgDataElementmsgCatalogTokens - array of values for the message catalog tokensMsgDataElement.getMsgCatalogTokens(),
MsgDataElement.getMsgCatalogTokensAsStrings()public boolean equals(java.lang.Object object)
java.lang.Object's equals() API to
determine if the parameter object is equal to this object.
object - The java.lang.Object to be compared to this object.
object, otherwise false.Object.equals(java.lang.Object)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
This is a deep copy version, in which all the objects within this object will be copied by value.
java.lang.CloneNotSupportedException - If a instance variable of this object does not implement the Cloneable interface.public void init()
init in interface MsgDataElement
|
TPTP 4.1.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||