TPTP 4.6.0 Platform Project
Public API Specification

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

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.hyades.logging.events.cbe.impl.SerializableImpl
                  extended by org.eclipse.hyades.logging.events.cbe.impl.MsgDataElementImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, MsgDataElement
Direct Known Subclasses:
MsgDataElementImpl

public class MsgDataElementImpl
extends SerializableImpl
implements MsgDataElement, java.lang.Cloneable

An implementation of the model object 'Msg Data Element'.

See Also:
Serialized Form
Generated
[EMF] Implements
Cloneable

The following features are implemented:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
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.
 java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature eFeature, boolean resolve)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, java.lang.Class baseClass, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)
           
 boolean equals(java.lang.Object arg0)
           
 void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature, java.lang.Object newValue)
           
 void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)
           
 java.lang.String getMsgCatalog()
           
 java.lang.String getMsgCatalogId()
           
 org.eclipse.emf.common.util.EList 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. null) state.
 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 org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eIsProxy, eResource
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

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), EventPackage.getMsgDataElement_MsgIdType()
Generated

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()
Generated

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), EventPackage.getMsgDataElement_MsgCatalogType()
Generated

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()
Generated

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), EventPackage.getMsgDataElement_MsgCatalog()
Generated

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()
Generated

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), EventPackage.getMsgDataElement_MsgCatalogId()
Generated

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()
Generated

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), EventPackage.getMsgDataElement_MsgId()
Generated

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()
Generated

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), EventPackage.getMsgDataElement_MsgLocale()
Generated

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()
Generated

getMsgCatalogTokens

public org.eclipse.emf.common.util.EList getMsgCatalogTokens()

Specified by:
getMsgCatalogTokens in interface MsgDataElement
Returns:
the value of the 'Msg Catalog Tokens' containment reference list.
See Also:
EventPackage.getMsgDataElement_MsgCatalogTokens()
Generated

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      java.lang.Class baseClass,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Specified by:
eInverseRemove in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eInverseRemove in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
Generated

eGet

public java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
                             boolean resolve)

Specified by:
eGet in interface org.eclipse.emf.ecore.EObject
Overrides:
eGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
Generated

eSet

public void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.EObject
Overrides:
eSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
Generated

eUnset

public void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)

Specified by:
eUnset in interface org.eclipse.emf.ecore.EObject
Overrides:
eUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
Generated

eIsSet

public boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.EObject
Overrides:
eIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
Generated

toString

public java.lang.String toString()

Overrides:
toString in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
Generated

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.hyades.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 arg0)
Overrides:
equals in class java.lang.Object

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
return a cloned (copy by value) object. This is a deep copy version, in which all the objects within this object will be copied by value.

Overrides:
clone in class java.lang.Object
Returns:
Object
Throws:
java.lang.CloneNotSupportedException

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

TPTP 4.6.0 Platform Project
Public API Specification