|
TPTP 4.2.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()
Returns the value of the 'Msg Catalog' attribute. |
java.lang.String |
getMsgCatalogId()
Returns the value of the 'Msg Catalog Id' attribute. |
java.util.List |
getMsgCatalogTokens()
Returns the value of the 'Msg Catalog Tokens' containment reference list. |
java.lang.String[] |
getMsgCatalogTokensAsStrings()
Returns the value of the 'Msg Catalog Tokens' attribute list. |
java.lang.String |
getMsgCatalogType()
Returns the value of the 'Msg Catalog Type' attribute. |
java.lang.String |
getMsgId()
Returns the value of the 'Msg Id' attribute. |
java.lang.String |
getMsgIdType()
Returns the value of the 'Msg Id Type' attribute. |
java.lang.String |
getMsgLocale()
Returns the value of the 'Msg Locale' attribute. |
void |
init()
Resets the object's properties to their initial (e.g. null) state. |
void |
setMsgCatalog(java.lang.String newMsgCatalog)
Sets the value of the ' Msg Catalog'
attribute.
|
void |
setMsgCatalogId(java.lang.String newMsgCatalogId)
Sets the value of the ' Msg Catalog Id'
attribute.
|
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)
Sets the value of the ' Msg Catalog Type'
attribute.
|
void |
setMsgId(java.lang.String newMsgId)
Sets the value of the ' Msg Id'
attribute.
|
void |
setMsgIdType(java.lang.String newMsgIdType)
Sets the value of the ' Msg Id Type'
attribute.
|
void |
setMsgLocale(java.lang.String newMsgLocale)
Sets the value of the ' Msg Locale'
attribute.
|
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()
MsgDataElementReturns the value of the 'Msg Id Type' attribute.
getMsgIdType in interface MsgDataElementMsgDataElement.setMsgIdType(String)public void setMsgIdType(java.lang.String newMsgIdType)
MsgDataElementMsg Id Type'
attribute.
Specifies the meaning and format of the msgId. If the msgId conforms to or represents a standard or a well-known convention, it is named by this property. Examples are: "IBM3.4", "IBM4.4", "IBM3.1.4", "IBM3.4.1", "IBM4.4.1", and "IBM3.1.4.1".
The nonexclusive reserved keywords include:
setMsgIdType in interface MsgDataElementnewMsgIdType - the new value of the 'Msg Id Type' attribute.MsgDataElement.getMsgIdType()public java.lang.String getMsgCatalogType()
MsgDataElementReturns the value of the 'Msg Catalog Type' attribute.
getMsgCatalogType in interface MsgDataElementMsgDataElement.setMsgCatalogType(String)public void setMsgCatalogType(java.lang.String newMsgCatalogType)
MsgDataElementMsg Catalog Type'
attribute.
The msgCatalogType property specifies the meaning and format of the msgCatalog. The current nonexclusive list of reserved keywords includes:
setMsgCatalogType in interface MsgDataElementnewMsgCatalogType - the new value of the 'Msg Catalog Type'
attribute.MsgDataElement.getMsgCatalogType()public java.lang.String getMsgCatalog()
MsgDataElementReturns the value of the 'Msg Catalog' attribute.
getMsgCatalog in interface MsgDataElementMsgDataElement.setMsgCatalog(String)public void setMsgCatalog(java.lang.String newMsgCatalog)
MsgDataElementMsg Catalog'
attribute.
The qualified name of the message catalog that contains the translated message specified by the msgCatalogId.
This is an optional property. The string length of the msgCatalog must not exceed 128 characters.
setMsgCatalog in interface MsgDataElementnewMsgCatalog - the new value of the 'Msg Catalog' attribute.MsgDataElement.getMsgCatalog()public java.lang.String getMsgCatalogId()
MsgDataElementReturns the value of the 'Msg Catalog Id' attribute.
getMsgCatalogId in interface MsgDataElementMsgDataElement.setMsgCatalogId(String)public void setMsgCatalogId(java.lang.String newMsgCatalogId)
MsgDataElementMsg Catalog Id'
attribute.
The index or the identifier for a message that is used for resolving the message text from a message catalog.
This is an optional property. The string length for this property must not exceed 64 characters.
setMsgCatalogId in interface MsgDataElementnewMsgCatalogId - the new value of the 'Msg Catalog Id' attribute.MsgDataElement.getMsgCatalogId()public java.lang.String getMsgId()
MsgDataElementReturns the value of the 'Msg Id' attribute.
getMsgId in interface MsgDataElementMsgDataElement.setMsgId(String)public void setMsgId(java.lang.String newMsgId)
MsgDataElementMsg Id'
attribute.
Specifies the message identifier of the event. This identifier should be a unique value string of alphanumeric or numeric characters. It can be as simple as a string of numeric characters that identify a message in a message catalog or a multi-part string of alphanumeric characters (for example, DBT1234E).
This is an optional property. The string length for msgId must not exceed 256 characters.
setMsgId in interface MsgDataElementnewMsgId - the new value of the 'Msg Id' attribute.MsgDataElement.getMsgId()public java.lang.String getMsgLocale()
MsgDataElementReturns the value of the 'Msg Locale' attribute.
getMsgLocale in interface MsgDataElementMsgDataElement.setMsgLocale(String)public void setMsgLocale(java.lang.String newMsgLocale)
MsgDataElementMsg Locale'
attribute.
The locale for which this msg property is rendered. Its value is a locale code that conforms to IETF RFC 1766.
This is an optional property.
setMsgLocale in interface MsgDataElementnewMsgLocale - the new value of the 'Msg Locale' attribute.MsgDataElement.getMsgLocale()public java.util.List getMsgCatalogTokens()
MsgDataElementMsgCatalogToken.
An array of strings used as substitution values for resolving an internationalized message into formatted text. The order of the substitution values is implied by the implicit order of the array elements.
If there are no substitution values, then msgCatalogTokens does not need to be specified.
This is an optional property. The string length for the msgCatalogTokens property must not exceed 256 characters per token.
getMsgCatalogTokens in interface MsgDataElementpublic 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.setMsgCatalogTokens(org.eclipse.tptp.logging.events.cbe.MsgCatalogToken[])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.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||