TPTP 4.1.0 Platform Project
Public API Specification

org.eclipse.tptp.logging.events.cbe.impl
Class MsgDataElementImpl

java.lang.Object
  extended byorg.eclipse.tptp.logging.events.cbe.impl.MsgDataElementImpl
All Implemented Interfaces:
java.lang.Cloneable, MsgDataElement, java.io.Serializable

public class MsgDataElementImpl
extends java.lang.Object
implements MsgDataElement

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.

Since:
1.0.1
See Also:
Serialized Form

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

msgIdType

protected java.lang.String msgIdType
The cached value of the 'Msg Id Type' attribute.

See Also:
getMsgIdType()

msgCatalogType

protected java.lang.String msgCatalogType
The cached value of the ' Msg Catalog Type' attribute.

See Also:
getMsgCatalogType()

msgCatalog

protected java.lang.String msgCatalog
The cached value of the 'Msg Catalog' attribute.

See Also:
getMsgCatalog()

msgCatalogId

protected java.lang.String msgCatalogId
The cached value of the ' Msg Catalog Id' attribute.

See Also:
getMsgCatalogId()

msgId

protected java.lang.String msgId
The cached value of the 'Msg Id' attribute.

See Also:
getMsgId()

msgLocale

protected java.lang.String msgLocale
The cached value of the 'Msg Locale' attribute.

See Also:
getMsgLocale()

msgCatalogTokens

protected java.util.List msgCatalogTokens
The cached value of the ' Msg Catalog Tokens' containment reference list.

See Also:
getMsgCatalogTokens()
Constructor Detail

MsgDataElementImpl

protected MsgDataElementImpl()

Method Detail

getMsgIdType

public java.lang.String getMsgIdType()

Specified by:
getMsgIdType in interface MsgDataElement
Returns:
the value of the 'Msg Id Type' attribute.
See Also:
MsgDataElement.setMsgIdType(String), org.eclipse.tptp.logging.events.cbe.EventPackage#getMsgDataElement_MsgIdType()

setMsgIdType

public void setMsgIdType(java.lang.String newMsgIdType)

Specified by:
setMsgIdType in interface MsgDataElement
Parameters:
newMsgIdType - the new value of the 'Msg Id Type' attribute.
See Also:
MsgDataElement.getMsgIdType()

getMsgCatalogType

public java.lang.String getMsgCatalogType()

Specified by:
getMsgCatalogType in interface MsgDataElement
Returns:
the value of the 'Msg Catalog Type' attribute.
See Also:
MsgDataElement.setMsgCatalogType(String), org.eclipse.tptp.logging.events.cbe.EventPackage#getMsgDataElement_MsgCatalogType()

setMsgCatalogType

public void setMsgCatalogType(java.lang.String newMsgCatalogType)

Specified by:
setMsgCatalogType in interface MsgDataElement
Parameters:
newMsgCatalogType - the new value of the 'Msg Catalog Type' attribute.
See Also:
MsgDataElement.getMsgCatalogType()

getMsgCatalog

public java.lang.String getMsgCatalog()

Specified by:
getMsgCatalog in interface MsgDataElement
Returns:
the value of the 'Msg Catalog' attribute.
See Also:
MsgDataElement.setMsgCatalog(String), org.eclipse.tptp.logging.events.cbe.EventPackage#getMsgDataElement_MsgCatalog()

setMsgCatalog

public void setMsgCatalog(java.lang.String newMsgCatalog)

Specified by:
setMsgCatalog in interface MsgDataElement
Parameters:
newMsgCatalog - the new value of the 'Msg Catalog' attribute.
See Also:
MsgDataElement.getMsgCatalog()

getMsgCatalogId

public java.lang.String getMsgCatalogId()

Specified by:
getMsgCatalogId in interface MsgDataElement
Returns:
the value of the 'Msg Catalog Id' attribute.
See Also:
MsgDataElement.setMsgCatalogId(String), org.eclipse.tptp.logging.events.cbe.EventPackage#getMsgDataElement_MsgCatalogId()

setMsgCatalogId

public void setMsgCatalogId(java.lang.String newMsgCatalogId)

Specified by:
setMsgCatalogId in interface MsgDataElement
Parameters:
newMsgCatalogId - the new value of the 'Msg Catalog Id' attribute.
See Also:
MsgDataElement.getMsgCatalogId()

getMsgId

public java.lang.String getMsgId()

Specified by:
getMsgId in interface MsgDataElement
Returns:
the value of the 'Msg Id' attribute.
See Also:
MsgDataElement.setMsgId(String), org.eclipse.tptp.logging.events.cbe.EventPackage#getMsgDataElement_MsgId()

setMsgId

public void setMsgId(java.lang.String newMsgId)

Specified by:
setMsgId in interface MsgDataElement
Parameters:
newMsgId - the new value of the 'Msg Id' attribute.
See Also:
MsgDataElement.getMsgId()

getMsgLocale

public java.lang.String getMsgLocale()

Specified by:
getMsgLocale in interface MsgDataElement
Returns:
the value of the 'Msg Locale' attribute.
See Also:
MsgDataElement.setMsgLocale(String), org.eclipse.tptp.logging.events.cbe.EventPackage#getMsgDataElement_MsgLocale()

setMsgLocale

public void setMsgLocale(java.lang.String newMsgLocale)

Specified by:
setMsgLocale in interface MsgDataElement
Parameters:
newMsgLocale - the new value of the 'Msg Locale' attribute.
See Also:
MsgDataElement.getMsgLocale()

getMsgCatalogTokens

public java.util.List getMsgCatalogTokens()

Specified by:
getMsgCatalogTokens in interface MsgDataElement
Returns:
the value of the 'Msg Catalog Tokens' containment reference list.
See Also:
org.eclipse.tptp.logging.events.cbe.EventPackage#getMsgDataElement_MsgCatalogTokens()

toString

public java.lang.String toString()


validate

public void validate()
              throws ValidationException
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".

Specified by:
validate in interface MsgDataElement
Throws:
ValidationException - If the event instance does not conform to the Common Base Event specification.

addMsgCatalogToken

public MsgCatalogToken addMsgCatalogToken(MsgCatalogToken value)
Description copied from interface: MsgDataElement
Adds a new MsgCatalogToken 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.

Specified by:
addMsgCatalogToken in interface MsgDataElement
Parameters:
value - the MsgCatalogToken value.
Returns:
a reference to the message catalog token added to this object.
See Also:
MsgDataElement.addMsgCatalogToken(org.eclipse.tptp.logging.events.cbe.MsgCatalogToken)

addMsgCatalogTokenAsString

public MsgCatalogToken addMsgCatalogTokenAsString(java.lang.String value)
Description copied from interface: MsgDataElement
Adds a new MsgCatalogToken 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.

Specified by:
addMsgCatalogTokenAsString in interface MsgDataElement
Parameters:
value - the String value for the new message catalog token.
Returns:
a reference to the message catalog token added to this object.
See Also:
MsgDataElement.addMsgCatalogTokenAsString(String)

clearMsgCatalogTokens

public void clearMsgCatalogTokens()
Removes all msgCatalogTokens that this event is referencing

Specified by:
clearMsgCatalogTokens in interface MsgDataElement

getMsgCatalogTokensAsStrings

public java.lang.String[] getMsgCatalogTokensAsStrings()
Description copied from interface: MsgDataElement
Returns the value of the 'Msg Catalog Tokens' attribute list.

Each string corresponds to the value attribute of a MsgCatalogToken inside the message catalog token list.

Specified by:
getMsgCatalogTokensAsStrings in interface MsgDataElement
Returns:
the value of the 'Msg Catalog Tokens' attribute list.
See Also:
MsgDataElement.getMsgCatalogTokensAsStrings()

setMsgCatalogTokensAsStrings

public void setMsgCatalogTokensAsStrings(java.lang.String[] msgCatalogTokens)
Description copied from interface: MsgDataElement
Sets the value of the 'Msg Catalog Tokens' attribute list.

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.

Specified by:
setMsgCatalogTokensAsStrings in interface MsgDataElement
Parameters:
msgCatalogTokens - array of values for the message catalog tokens
See Also:
MsgDataElement.setMsgCatalogTokensAsStrings(String[])

setMsgCatalogTokens

public void setMsgCatalogTokens(MsgCatalogToken[] msgCatalogTokens)
Description copied from interface: MsgDataElement
Sets the value of the 'Msg Catalog Tokens' attribute list.

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.

Specified by:
setMsgCatalogTokens in interface MsgDataElement
Parameters:
msgCatalogTokens - array of values for the message catalog tokens
See Also:
MsgDataElement.getMsgCatalogTokens(), MsgDataElement.getMsgCatalogTokensAsStrings()

equals

public 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.

Parameters:
object - The java.lang.Object to be compared to this object.
Returns:
True, if this object is the same as the parameter object, otherwise false.
See Also:
Object.equals(java.lang.Object)

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Return a cloned (copy by value) object of this object.

This is a deep copy version, in which all the objects within this object will be copied by value.

Returns:
Object The cloned (copy by value) object of this object.
Throws:
java.lang.CloneNotSupportedException - If a instance variable of this object does not implement the Cloneable interface.

init

public void init()
Resets the object's properties to their initial (e.g. null) state. All components are initialized to either zero or null.

Specified by:
init in interface MsgDataElement
Since:
1.0

TPTP 4.1.0 Platform Project
Public API Specification