TPTP 4.5.0 Platform Project
Public API Specification

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

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.ExtendedDataElementImpl
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, ExtendedDataElement
Direct Known Subclasses:
ExtendedDataElementImpl

public class ExtendedDataElementImpl
extends SerializableImpl
implements ExtendedDataElement, java.lang.Cloneable

An implementation of the model object 'Extended 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
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
static java.lang.String[] EDE_TYPES
          Deprecated. As of TPTP 4.0.0, use individual constants in ExtendedDataElement.
static java.util.List EDE_TYPES_LIST
          Deprecated. As of TPTP 4.0.0, use individual constants in ExtendedDataElement.
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
 
Fields inherited from interface org.eclipse.hyades.logging.events.cbe.ExtendedDataElement
TYPE_BOOLEAN, TYPE_BOOLEAN_ARRAY, TYPE_BOOLEAN_ARRAY_VALUE, TYPE_BOOLEAN_VALUE, TYPE_BYTE, TYPE_BYTE_ARRAY, TYPE_BYTE_ARRAY_VALUE, TYPE_BYTE_VALUE, TYPE_DATE_TIME, TYPE_DATE_TIME_ARRAY, TYPE_DATE_TIME_ARRAY_VALUE, TYPE_DATE_TIME_VALUE, TYPE_DOUBLE, TYPE_DOUBLE_ARRAY, TYPE_DOUBLE_ARRAY_VALUE, TYPE_DOUBLE_VALUE, TYPE_FLOAT, TYPE_FLOAT_ARRAY, TYPE_FLOAT_ARRAY_VALUE, TYPE_FLOAT_VALUE, TYPE_HEX_BINARY, TYPE_HEX_BINARY_VALUE, TYPE_INT, TYPE_INT_ARRAY, TYPE_INT_ARRAY_VALUE, TYPE_INT_VALUE, TYPE_LONG, TYPE_LONG_ARRAY, TYPE_LONG_ARRAY_VALUE, TYPE_LONG_VALUE, TYPE_NO_VALUE, TYPE_NO_VALUE_VALUE, TYPE_SHORT, TYPE_SHORT_ARRAY, TYPE_SHORT_ARRAY_VALUE, TYPE_SHORT_VALUE, TYPE_STRING, TYPE_STRING_ARRAY, TYPE_STRING_ARRAY_VALUE, TYPE_STRING_VALUE
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Method Summary
 ExtendedDataElement addChild(ExtendedDataElement child)
          Adds a new child ExtendedDataElement to this object.
 ExtendedDataElement addChild(java.lang.String newName)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChild(java.lang.String newName, int newType, java.lang.String value)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChild(java.lang.String newName, int newType, java.lang.String[] newValues)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChild(java.lang.String newName, java.lang.String value)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChild(java.lang.String newName, java.lang.String[] newValues)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithBooleanArrayValue(java.lang.String newName, boolean[] newValues)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithBooleanValue(java.lang.String newName, boolean value)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithByteArrayValue(java.lang.String newName, byte[] newValues)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithByteValue(java.lang.String newName, byte value)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithDateArrayValue(java.lang.String newName, java.lang.String[] newValues)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithDateAsLongValue(java.lang.String newName, long value)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithDatesAsLongValue(java.lang.String newName, long[] newValues)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithDateValue(java.lang.String newName, java.lang.String value)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithDoubleArrayValue(java.lang.String newName, double[] newValues)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithDoubleValue(java.lang.String newName, double value)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithFloatArrayValue(java.lang.String newName, float[] newValues)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithFloatValue(java.lang.String newName, float value)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithHexValue(java.lang.String newName, java.lang.String value)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithHexValueAsByteArray(java.lang.String newName, byte[] value)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithIntArrayValue(java.lang.String newName, int[] newValues)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithIntValue(java.lang.String newName, int value)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithLongArrayValue(java.lang.String newName, long[] newValues)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithLongValue(java.lang.String newName, long value)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithNoValue(java.lang.String newName)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithShortArrayValue(java.lang.String newName, short[] newValues)
          Adds a new ExtendedDataElement to this object.
 ExtendedDataElement addChildWithShortValue(java.lang.String newName, short value)
          Adds a new ExtendedDataElement to this object.
 void clearChildren()
          Removes all child ExtenedDataElements that this event is referencing
 void clearValues()
          Removes all values 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)
           
 org.eclipse.emf.common.util.EList getChildren()
           
 org.eclipse.emf.common.util.EList getChildren(java.lang.String newName)
           Helper method to return a named child ExtendedDataElement from the list of children ExtendedDataElements.
 java.lang.String getHexValue()
           
 byte[] getHexValueAsByteArray()
           Returns the hexValue of the extended data element cast as byte array values.
 char[] getHexValueAsCharArray()
           Returns the hexValue of the extended data element cast as char array values.
 java.lang.String getName()
           
 java.lang.String getType()
           
 int getTypeAsInt()
          Returns the value of the 'Type' attribute.
 org.eclipse.emf.common.util.EList getValues()
           
 boolean getValuesAsBoolean()
           Returns the value of the extended data element cast as a boolean value.
 boolean[] getValuesAsBooleanArray()
           Returns the values of the extended data element cast as boolean values.
 byte getValuesAsByte()
           Returns the value of the extended data element cast as a byte value.
 byte[] getValuesAsByteArray()
           Returns the values of the extended data element cast as byte values.
 java.lang.String getValuesAsDate()
          Returns the value of the extended data element cast as a date/time value.
 java.lang.String[] getValuesAsDateArray()
          Returns the value of the extended data element cast as a date/time values.
 long getValuesAsDateAsLong()
          Resolves the XSD dateTime 'values' attribute as a long (milliseconds) time stamp.
 long[] getValuesAsDateAsLongArray()
          Resolves the XSD dateTime 'values' attribute as an array of long (milliseconds) time stamps.
 double getValuesAsDouble()
           Returns the value of the extended data element cast as a double value.
 double[] getValuesAsDoubleArray()
           Returns the values of the extended data element cast as double values.
 float getValuesAsFloat()
           Returns the value of the extended data element cast as a float value.
 float[] getValuesAsFloatArray()
           Returns the values of the extended data element cast as float values.
 int getValuesAsInt()
           Returns the value of the extended data element cast as an integer value.
 int[] getValuesAsIntArray()
           Returns the values of the extended data element cast as integer values.
 long getValuesAsLong()
           Returns the value of the extended data element cast as a long value.
 long[] getValuesAsLongArray()
           Returns the values of the extended data element cast as long values.
 short getValuesAsShort()
           Returns the value of the extended data element cast as a short value.
 short[] getValuesAsShortArray()
           Returns the values of the extended data element cast as short values.
 java.lang.String getValuesAsString()
           Returns the value of the extended data element cast as a string value.
 java.lang.String[] getValuesAsStringArray()
           Returns the values of the extended data element cast as string values.
 void init()
          Resets the object's properties to their initial (e.g. null) state.
static boolean isValid(int type)
           
static boolean isValid(java.lang.String type)
           
 void removeChildren(java.lang.String name)
          Remove a named child extended data element that this event is referencing
 void setHexValue(java.lang.String newHexValue)
           
 void setHexValueAsByteArray(byte[] value)
          Sets the hexValue of the extended data element as an array of bytes.
 void setHexValueAsCharArray(char[] value)
          Sets the hexValue of the extended data element as an array of chars.
 void setName(java.lang.String newName)
           
 void setType(java.lang.String newType)
           
 void setTypeAsInt(int value)
          Sets the value of the 'Type' attribute.
 void setValues(java.lang.String[] values)
          The array of values for this extended data element as a string representation of the type specified above, excluding hexBinary.
 void setValuesAsBoolean(boolean value)
          Sets the value of the extended data element as a boolean value.
 void setValuesAsBooleanArray(boolean[] value)
          Sets the value of the extended data element as an array of boolean values.
 void setValuesAsByte(byte value)
          Sets the value of the extended data element as a byte value.
 void setValuesAsByteArray(byte[] value)
          Sets the value of the extended data element as an array of bytes.
 void setValuesAsDate(java.lang.String value)
          Sets the value of the extended data element as a date time value.
 void setValuesAsDateArray(java.lang.String[] value)
          Sets the value of the extended data element as an array of date time values.
 void setValuesAsDateAsLong(long value)
          Sets the XSD dateTime 'values' attribute as a long (milliseconds) time stamp and sets the 'Type' attribute to ExtendedDataElement.TYPE_DATE_TIME.
 void setValuesAsDateAsLongArray(long[] newValues)
          Sets the XSD dateTime 'values' attribute as an array of long (milliseconds) time stamps and sets the 'Type' attribute to ExtendedDataElement.TYPE_DATE_TIME_ARRAY.
 void setValuesAsDouble(double value)
          Sets the value of the extended data element as a double value.
 void setValuesAsDoubleArray(double[] value)
          Sets the value of the extended data element as an array of double values.
 void setValuesAsFloat(float value)
          Sets the value of the extended data element as a float value.
 void setValuesAsFloatArray(float[] value)
          Sets the value of the extended data element as an array of float values.
 void setValuesAsInt(int value)
          Sets the value of the extended data element as a int value.
 void setValuesAsIntArray(int[] value)
          Sets the value of the extended data element as an array of integer values.
 void setValuesAsLong(long value)
          Sets the value of the extended data element as a long value.
 void setValuesAsLongArray(long[] value)
          Sets the value of the extended data element as an array of long values.
 void setValuesAsShort(short value)
          Sets the value of the extended data element as a short value.
 void setValuesAsShortArray(short[] value)
          Sets the value of the extended data element as an array of short values.
 void setValuesAsString(java.lang.String value)
          Sets the value of the extended data element as a string value.
 void setValuesAsStringArray(java.lang.String[] value)
          Sets the value of the extended data element as an array of string values.
 java.lang.String toString()
           
static int typeToInt(java.lang.String type)
           
static java.lang.String typeToString(int type)
           
 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
 

Field Detail

EDE_TYPES_LIST

public static final java.util.List EDE_TYPES_LIST
Deprecated. As of TPTP 4.0.0, use individual constants in ExtendedDataElement.

EDE_TYPES

public static final java.lang.String[] EDE_TYPES
Deprecated. As of TPTP 4.0.0, use individual constants in ExtendedDataElement.
Array of types for the extended data element.

See Also:
getType()
Method Detail

getChildren

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

Specified by:
getChildren in interface ExtendedDataElement
Returns:
the value of the 'Children' containment reference list.
See Also:
EventPackage.getExtendedDataElement_Children()
Generated

getChildren

public org.eclipse.emf.common.util.EList getChildren(java.lang.String newName)
Description copied from interface: ExtendedDataElement

Helper method to return a named child ExtendedDataElement from the list of children ExtendedDataElements.

Specified by:
getChildren in interface ExtendedDataElement
Parameters:
newName - the name of the child ExtendedDataElement
Returns:
a list of ExtendedDataElement objects.
See Also:
ExtendedDataElement.getChildren(String)

setHexValue

public void setHexValue(java.lang.String newHexValue)

Specified by:
setHexValue in interface ExtendedDataElement
Parameters:
newHexValue - the new value of the 'Hex Value' attribute.
See Also:
ExtendedDataElement.getHexValue()
Generated

getHexValue

public java.lang.String getHexValue()

Specified by:
getHexValue in interface ExtendedDataElement
Returns:
the value of the 'Hex Value' attribute.
See Also:
ExtendedDataElement.setHexValue(String), EventPackage.getExtendedDataElement_HexValue()
Generated

setHexValueAsByteArray

public void setHexValueAsByteArray(byte[] value)
Description copied from interface: ExtendedDataElement
Sets the hexValue of the extended data element as an array of bytes.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_HEX_BINARY.

Specified by:
setHexValueAsByteArray in interface ExtendedDataElement
Parameters:
value - the new hexValue for the extended data element.

setHexValueAsCharArray

public void setHexValueAsCharArray(char[] value)
Sets the hexValue of the extended data element as an array of chars.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_HEX_BINARY.

Specified by:
setHexValueAsCharArray in interface ExtendedDataElement
Parameters:
value - the new hexValue for the extended data element.

getHexValueAsByteArray

public byte[] getHexValueAsByteArray()
Description copied from interface: ExtendedDataElement

Returns the hexValue of the extended data element cast as byte array values.

Specified by:
getHexValueAsByteArray in interface ExtendedDataElement
Returns:
the hexValue of the extended data element.

getHexValueAsCharArray

public char[] getHexValueAsCharArray()

Returns the hexValue of the extended data element cast as char array values.

Specified by:
getHexValueAsCharArray in interface ExtendedDataElement
Returns:
the hexValue of the extended data element.
Throws:
java.lang.IllegalStateException - if the 'Type' attribute is not ExtendedDataElement.TYPE_HEX_BINARY.

setName

public void setName(java.lang.String newName)

Specified by:
setName in interface ExtendedDataElement
Parameters:
newName - the new value of the 'Name' attribute.
See Also:
ExtendedDataElement.getName()
Generated

getName

public java.lang.String getName()

Specified by:
getName in interface ExtendedDataElement
Returns:
the value of the 'Name' attribute.
See Also:
ExtendedDataElement.setName(String), EventPackage.getExtendedDataElement_Name()
Generated

setType

public void setType(java.lang.String newType)

Specified by:
setType in interface ExtendedDataElement
Parameters:
newType - the new value of the 'Type' attribute.
See Also:
ExtendedDataElement.getType()
Generated

getType

public java.lang.String getType()

Specified by:
getType in interface ExtendedDataElement
Returns:
the value of the 'Type' attribute.
See Also:
ExtendedDataElement.setType(String), EventPackage.getExtendedDataElement_Type()
Generated

setTypeAsInt

public void setTypeAsInt(int value)
Description copied from interface: ExtendedDataElement
Sets the value of the 'Type' attribute.

The value must be one of the ExtendedDataElement.TYPE_<type>_VALUE constants.

Specified by:
setTypeAsInt in interface ExtendedDataElement
Parameters:
value - the new value of the 'Type' attribute.
See Also:
ExtendedDataElement.setTypeAsInt(int)

getTypeAsInt

public int getTypeAsInt()
Description copied from interface: ExtendedDataElement
Returns the value of the 'Type' attribute.

The value is represented through one of the ExtendedDataElement.TYPE_<type>_VALUE constants.

Specified by:
getTypeAsInt in interface ExtendedDataElement
Returns:
the value of the 'Type' attribute.
See Also:
ExtendedDataElement.getTypeAsInt()

getValues

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

Specified by:
getValues in interface ExtendedDataElement
Returns:
the value of the 'Values' attribute list.
See Also:
EventPackage.getExtendedDataElement_Values()
Generated

setValues

public void setValues(java.lang.String[] values)
The array of values for this extended data element as a string representation of the type specified above, excluding hexBinary. hexBinary values MUST be defined using the hexValue property. This is an OPTIONAL property.

Specified by:
setValues in interface ExtendedDataElement
Parameters:
values - the values to set

clearValues

public void clearValues()
Removes all values that this event is referencing

Specified by:
clearValues in interface ExtendedDataElement

setValuesAsBoolean

public void setValuesAsBoolean(boolean value)
Description copied from interface: ExtendedDataElement
Sets the value of the extended data element as a boolean value.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_BOOLEAN.

Specified by:
setValuesAsBoolean in interface ExtendedDataElement
Parameters:
value - the new value for the extended data element.

getValuesAsBoolean

public boolean getValuesAsBoolean()
Description copied from interface: ExtendedDataElement

Returns the value of the extended data element cast as a boolean value.

Specified by:
getValuesAsBoolean in interface ExtendedDataElement
Returns:
the value of the extended data element.

setValuesAsBooleanArray

public void setValuesAsBooleanArray(boolean[] value)
Description copied from interface: ExtendedDataElement
Sets the value of the extended data element as an array of boolean values.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_BOOLEAN_ARRAY.

Specified by:
setValuesAsBooleanArray in interface ExtendedDataElement
Parameters:
value - the new value for the extended data element.
See Also:
ExtendedDataElement.setValuesAsBooleanArray(boolean[])

getValuesAsBooleanArray

public boolean[] getValuesAsBooleanArray()
Description copied from interface: ExtendedDataElement

Returns the values of the extended data element cast as boolean values.

Specified by:
getValuesAsBooleanArray in interface ExtendedDataElement
Returns:
the value of the extended data element.
See Also:
ExtendedDataElement.getValuesAsBooleanArray()

setValuesAsByte

public void setValuesAsByte(byte value)
Description copied from interface: ExtendedDataElement
Sets the value of the extended data element as a byte value.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_BYTE.

Specified by:
setValuesAsByte in interface ExtendedDataElement
Parameters:
value - the new value for the extended data element.

getValuesAsByte

public byte getValuesAsByte()
Description copied from interface: ExtendedDataElement

Returns the value of the extended data element cast as a byte value.

Specified by:
getValuesAsByte in interface ExtendedDataElement
Returns:
the value of the extended data element.

setValuesAsByteArray

public void setValuesAsByteArray(byte[] value)
Description copied from interface: ExtendedDataElement
Sets the value of the extended data element as an array of bytes.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_BYTE_ARRAY.

Specified by:
setValuesAsByteArray in interface ExtendedDataElement
Parameters:
value - the new value for the extended data element.
See Also:
ExtendedDataElement.setValuesAsByteArray(byte[])

getValuesAsByteArray

public byte[] getValuesAsByteArray()
Description copied from interface: ExtendedDataElement

Returns the values of the extended data element cast as byte values.

Specified by:
getValuesAsByteArray in interface ExtendedDataElement
Returns:
the value of the extended data element.
See Also:
ExtendedDataElement.getValuesAsByteArray()

setValuesAsDate

public void setValuesAsDate(java.lang.String value)
Description copied from interface: ExtendedDataElement
Sets the value of the extended data element as a date time value.

The values are represented according to the XML schema dateTime definition.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_DATE_TIME.

Specified by:
setValuesAsDate in interface ExtendedDataElement
Parameters:
value - the new value for the extended data element.
See Also:
ExtendedDataElement.setValuesAsDate(String)

getValuesAsDate

public java.lang.String getValuesAsDate()
Description copied from interface: ExtendedDataElement
Returns the value of the extended data element cast as a date/time value.

The value is represented according to the XML schema dateTime definition.

Specified by:
getValuesAsDate in interface ExtendedDataElement
Returns:
the value of the extended data element.
See Also:
ExtendedDataElement.getValuesAsDate()

setValuesAsDateArray

public void setValuesAsDateArray(java.lang.String[] value)
Description copied from interface: ExtendedDataElement
Sets the value of the extended data element as an array of date time values.

The values are represented according to the XML schema dateTime definition.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_DATE_TIME_ARRAY.

Specified by:
setValuesAsDateArray in interface ExtendedDataElement
Parameters:
value - the new value for the extended data element.
See Also:
ExtendedDataElement.setValuesAsDateArray(String[])

getValuesAsDateArray

public java.lang.String[] getValuesAsDateArray()
Description copied from interface: ExtendedDataElement
Returns the value of the extended data element cast as a date/time values.

The values are represented according to the XML schema dateTime definition.

Specified by:
getValuesAsDateArray in interface ExtendedDataElement
Returns:
the value of the extended data element.
See Also:
ExtendedDataElement.getValuesAsDateArray()

setValuesAsDateAsLong

public void setValuesAsDateAsLong(long value)
Sets the XSD dateTime 'values' attribute as a long (milliseconds) time stamp and sets the 'Type' attribute to ExtendedDataElement.TYPE_DATE_TIME.

See EventHelpers.dateToLong(String) for more information on the long (milliseconds) and XSD dateTime time stamp formats and the conversion from a long time stamp to an XSD dateTime time stamp.

Specified by:
setValuesAsDateAsLong in interface ExtendedDataElement
Parameters:
value - The long (milliseconds) time stamp to be converted to the XSD dateTime 'values' attribute.
See Also:
ExtendedDataElement.setValuesAsDateAsLong(long), EventHelpers.dateToLong(String)

getValuesAsDateAsLong

public long getValuesAsDateAsLong()
Resolves the XSD dateTime 'values' attribute as a long (milliseconds) time stamp.

See EventHelpers.dateToLong(String) for more information on the XSD dateTime and long (milliseconds) time stamp formats and the conversion from an XSD dateTime time stamp to a long time stamp.

Specified by:
getValuesAsDateAsLong in interface ExtendedDataElement
Returns:
The long (milliseconds) time stamp representation of the XSD dateTime 'values' attribute.
Throws:
java.lang.IllegalStateException - If the 'Type' attribute is not ExtendedDataElement.TYPE_DATE_TIME.
See Also:
ExtendedDataElement.getValuesAsDateAsLong(), EventHelpers.dateToLong(String)

setValuesAsDateAsLongArray

public void setValuesAsDateAsLongArray(long[] newValues)
Sets the XSD dateTime 'values' attribute as an array of long (milliseconds) time stamps and sets the 'Type' attribute to ExtendedDataElement.TYPE_DATE_TIME_ARRAY.

See EventHelpers.dateToLong(String) for more information on the long (milliseconds) and XSD dateTime time stamp formats and the conversion from a long time stamp to an XSD dateTime time stamp.

Specified by:
setValuesAsDateAsLongArray in interface ExtendedDataElement
Parameters:
newValues - The array of long (milliseconds) time stamps to be converted to the XSD dateTime 'values' attribute.
See Also:
ExtendedDataElement.setValuesAsDateAsLongArray(long[]), EventHelpers.dateToLong(String)

getValuesAsDateAsLongArray

public long[] getValuesAsDateAsLongArray()
Resolves the XSD dateTime 'values' attribute as an array of long (milliseconds) time stamps.

See EventHelpers.dateToLong(String) for more information on the XSD dateTime and long (milliseconds) time stamp formats and the conversion from an XSD dateTime time stamp to a long time stamp.

Specified by:
getValuesAsDateAsLongArray in interface ExtendedDataElement
Returns:
The array of long (milliseconds) time stamps representation of the XSD dateTime 'values' attribute.
Throws:
java.lang.IllegalStateException - If the 'Type' attribute is not ExtendedDataElement.TYPE_DATE_TIME_ARRAY.
See Also:
ExtendedDataElement.getValuesAsDateAsLongArray(), EventHelpers.dateToLong(String)

setValuesAsDouble

public void setValuesAsDouble(double value)
Description copied from interface: ExtendedDataElement
Sets the value of the extended data element as a double value.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_DOUBLE.

Specified by:
setValuesAsDouble in interface ExtendedDataElement
Parameters:
value - the new value for the extended data element.

getValuesAsDouble

public double getValuesAsDouble()
Description copied from interface: ExtendedDataElement

Returns the value of the extended data element cast as a double value.

Specified by:
getValuesAsDouble in interface ExtendedDataElement
Returns:
the value of the extended data element.

setValuesAsDoubleArray

public void setValuesAsDoubleArray(double[] value)
Description copied from interface: ExtendedDataElement
Sets the value of the extended data element as an array of double values.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_DOUBLE_ARRAY.

Specified by:
setValuesAsDoubleArray in interface ExtendedDataElement
Parameters:
value - the new value for the extended data element.
See Also:
ExtendedDataElement.setValuesAsDoubleArray(double[])

getValuesAsDoubleArray

public double[] getValuesAsDoubleArray()
Description copied from interface: ExtendedDataElement

Returns the values of the extended data element cast as double values.

Specified by:
getValuesAsDoubleArray in interface ExtendedDataElement
Returns:
the value of the extended data element.
See Also:
ExtendedDataElement.getValuesAsDoubleArray()

setValuesAsFloat

public void setValuesAsFloat(float value)
Description copied from interface: ExtendedDataElement
Sets the value of the extended data element as a float value.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_FLOAT.

Specified by:
setValuesAsFloat in interface ExtendedDataElement
Parameters:
value - the new value for the extended data element.

getValuesAsFloat

public float getValuesAsFloat()
Description copied from interface: ExtendedDataElement

Returns the value of the extended data element cast as a float value.

Specified by:
getValuesAsFloat in interface ExtendedDataElement
Returns:
the value of the extended data element.

setValuesAsFloatArray

public void setValuesAsFloatArray(float[] value)
Description copied from interface: ExtendedDataElement
Sets the value of the extended data element as an array of float values.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_FLOAT_ARRAY.

Specified by:
setValuesAsFloatArray in interface ExtendedDataElement
Parameters:
value - the new value for the extended data element.
See Also:
ExtendedDataElement.setValuesAsFloatArray(float[])

getValuesAsFloatArray

public float[] getValuesAsFloatArray()
Description copied from interface: ExtendedDataElement

Returns the values of the extended data element cast as float values.

Specified by:
getValuesAsFloatArray in interface ExtendedDataElement
Returns:
the value of the extended data element.
See Also:
ExtendedDataElement.getValuesAsFloatArray()

setValuesAsInt

public void setValuesAsInt(int value)
Description copied from interface: ExtendedDataElement
Sets the value of the extended data element as a int value.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_INT.

Specified by:
setValuesAsInt in interface ExtendedDataElement
Parameters:
value - the new value for the extended data element.

getValuesAsInt

public int getValuesAsInt()
Description copied from interface: ExtendedDataElement

Returns the value of the extended data element cast as an integer value.

Specified by:
getValuesAsInt in interface ExtendedDataElement
Returns:
the value of the extended data element.

setValuesAsIntArray

public void setValuesAsIntArray(int[] value)
Description copied from interface: ExtendedDataElement
Sets the value of the extended data element as an array of integer values.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_INT_ARRAY.

Specified by:
setValuesAsIntArray in interface ExtendedDataElement
Parameters:
value - the new value for the extended data element.
See Also:
ExtendedDataElement.setValuesAsIntArray(int[])

getValuesAsIntArray

public int[] getValuesAsIntArray()
Description copied from interface: ExtendedDataElement

Returns the values of the extended data element cast as integer values.

Specified by:
getValuesAsIntArray in interface ExtendedDataElement
Returns:
the value of the extended data element.
See Also:
ExtendedDataElement.getValuesAsIntArray()

setValuesAsLong

public void setValuesAsLong(long value)
Description copied from interface: ExtendedDataElement
Sets the value of the extended data element as a long value.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_LONG.

Specified by:
setValuesAsLong in interface ExtendedDataElement
Parameters:
value - the new value for the extended data element.

getValuesAsLong

public long getValuesAsLong()
Description copied from interface: ExtendedDataElement

Returns the value of the extended data element cast as a long value.

Specified by:
getValuesAsLong in interface ExtendedDataElement
Returns:
the value of the extended data element.

setValuesAsLongArray

public void setValuesAsLongArray(long[] value)
Description copied from interface: ExtendedDataElement
Sets the value of the extended data element as an array of long values.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_LONG_ARRAY.

Specified by:
setValuesAsLongArray in interface ExtendedDataElement
Parameters:
value - the new value for the extended data element.
See Also:
ExtendedDataElement.setValuesAsLongArray(long[])

getValuesAsLongArray

public long[] getValuesAsLongArray()
Description copied from interface: ExtendedDataElement

Returns the values of the extended data element cast as long values.

Specified by:
getValuesAsLongArray in interface ExtendedDataElement
Returns:
the value of the extended data element.
See Also:
ExtendedDataElement.getValuesAsLongArray()

setValuesAsShort

public void setValuesAsShort(short value)
Description copied from interface: ExtendedDataElement
Sets the value of the extended data element as a short value.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_SHORT.

Specified by:
setValuesAsShort in interface ExtendedDataElement
Parameters:
value - the new value for the extended data element.

getValuesAsShort

public short getValuesAsShort()
Description copied from interface: ExtendedDataElement

Returns the value of the extended data element cast as a short value.

Specified by:
getValuesAsShort in interface ExtendedDataElement
Returns:
the value of the extended data element.

setValuesAsShortArray

public void setValuesAsShortArray(short[] value)
Description copied from interface: ExtendedDataElement
Sets the value of the extended data element as an array of short values.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_SHORT_ARRAY.

Specified by:
setValuesAsShortArray in interface ExtendedDataElement
Parameters:
value - the new value for the extended data element.
See Also:
ExtendedDataElement.setValuesAsShortArray(short[])

getValuesAsShortArray

public short[] getValuesAsShortArray()
Description copied from interface: ExtendedDataElement

Returns the values of the extended data element cast as short values.

Specified by:
getValuesAsShortArray in interface ExtendedDataElement
Returns:
the value of the extended data element.
See Also:
ExtendedDataElement.getValuesAsShortArray()

setValuesAsString

public void setValuesAsString(java.lang.String value)
Description copied from interface: ExtendedDataElement
Sets the value of the extended data element as a string value.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_STRING.

Specified by:
setValuesAsString in interface ExtendedDataElement
Parameters:
value - the new value for the extended data element.

getValuesAsString

public java.lang.String getValuesAsString()
Description copied from interface: ExtendedDataElement

Returns the value of the extended data element cast as a string value.

Specified by:
getValuesAsString in interface ExtendedDataElement
Returns:
the value of the extended data element.

setValuesAsStringArray

public void setValuesAsStringArray(java.lang.String[] value)
Description copied from interface: ExtendedDataElement
Sets the value of the extended data element as an array of string values.

It also changes the 'Type' attribute to ExtendedDataElement.TYPE_STRING_ARRAY.

Specified by:
setValuesAsStringArray in interface ExtendedDataElement
Parameters:
value - the new value for the extended data element.
See Also:
ExtendedDataElement.setValuesAsStringArray(String[])

getValuesAsStringArray

public java.lang.String[] getValuesAsStringArray()
Description copied from interface: ExtendedDataElement

Returns the values of the extended data element cast as string values.

Specified by:
getValuesAsStringArray in interface ExtendedDataElement
Returns:
the value of the extended data element.
See Also:
ExtendedDataElement.getValuesAsStringArray()

addChild

public ExtendedDataElement addChild(ExtendedDataElement child)
Adds a new child ExtendedDataElement to this object.

Specified by:
addChild in interface ExtendedDataElement
Parameters:
child - the new child extended data element.
Returns:
a reference to the child extended data element added to this object.
See Also:
getChildren()

clearChildren

public void clearChildren()
Removes all child ExtenedDataElements that this event is referencing

Specified by:
clearChildren in interface ExtendedDataElement

removeChildren

public void removeChildren(java.lang.String name)
Remove a named child extended data element that this event is referencing

Specified by:
removeChildren in interface ExtendedDataElement
Parameters:
name - the name of the child element to be removed

addChild

public ExtendedDataElement addChild(java.lang.String newName)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object without any values adds it to the list of extended data elements for this object.

Specified by:
addChild in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChild(String)

addChild

public ExtendedDataElement addChild(java.lang.String newName,
                                    int newType,
                                    java.lang.String value)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object containing the value passed as parameter and adds it to the list of extended data elements for this object.

Specified by:
addChild in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
newType - represents the data type for the new extended data element. Refer to the ExtendedDataElement.TYPE_<type>_VALUE constants for valid types.
value - the value for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChild(String, int, String)

addChild

public ExtendedDataElement addChild(java.lang.String newName,
                                    int newType,
                                    java.lang.String[] newValues)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object with the values passed as parameters and adds it to the list of extended data elements for this object.

Specified by:
addChild in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
newType - represents the data type for the new extended data element. Refer to the ExtendedDataElement.TYPE_<type>_VALUE constants for valid types.
newValues - the array of values for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChild(String, int, String[])

addChild

public ExtendedDataElement addChild(java.lang.String newName,
                                    java.lang.String value)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object containing the value passed as parameter and adds it to the list of extended data elements for this object.

Specified by:
addChild in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
value - the value for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChild(String, String)

addChild

public ExtendedDataElement addChild(java.lang.String newName,
                                    java.lang.String[] newValues)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object with the values passed as parameters and adds it to the list of extended data elements for this object.

Specified by:
addChild in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
newValues - the array of String values for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChild(String, String[])

addChildWithBooleanArrayValue

public ExtendedDataElement addChildWithBooleanArrayValue(java.lang.String newName,
                                                         boolean[] newValues)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object with the values passed as parameters and adds it to the list of extended data elements for this object.

Specified by:
addChildWithBooleanArrayValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
newValues - the array of boolean values for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithByteArrayValue(String, byte[])

addChildWithBooleanValue

public ExtendedDataElement addChildWithBooleanValue(java.lang.String newName,
                                                    boolean value)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object containing the value passed as parameter and adds it to the list of extended data elements for this object.

Specified by:
addChildWithBooleanValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
value - the value for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithBooleanValue(String, boolean)

addChildWithNoValue

public ExtendedDataElement addChildWithNoValue(java.lang.String newName)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object object containing no value and adds it to the list of extended data elements for this object.

Specified by:
addChildWithNoValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithNoValue(String)

addChildWithByteArrayValue

public ExtendedDataElement addChildWithByteArrayValue(java.lang.String newName,
                                                      byte[] newValues)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object with the values passed as parameters and adds it to the list of extended data elements for this object.

Specified by:
addChildWithByteArrayValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
newValues - the array of byte values for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithByteArrayValue(String, byte[])

addChildWithByteValue

public ExtendedDataElement addChildWithByteValue(java.lang.String newName,
                                                 byte value)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object containing the value passed as parameter and adds it to the list of extended data elements for this object.

Specified by:
addChildWithByteValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
value - the value for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithByteValue(String, byte)

addChildWithDateArrayValue

public ExtendedDataElement addChildWithDateArrayValue(java.lang.String newName,
                                                      java.lang.String[] newValues)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object with the values passed as parameters and adds it to the list of extended data elements for this object.

The values correspond to a date time string according to the XML schema dateTime definition.

Specified by:
addChildWithDateArrayValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
newValues - the array of String instances representing the date time values for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithDateArrayValue(String, String[])

addChildWithDateAsLongValue

public ExtendedDataElement addChildWithDateAsLongValue(java.lang.String newName,
                                                       long value)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object containing the value passed as parameter and adds it to the list of extended data elements for this object.

Specified by:
addChildWithDateAsLongValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
value - number of milliseconds since January 1, 1970 UTC; representing the date time value for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithDateAsLongValue(String, long)

addChildWithDateValue

public ExtendedDataElement addChildWithDateValue(java.lang.String newName,
                                                 java.lang.String value)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object containing the value passed as parameter and adds it to the list of extended data elements for this object.

The value corresponds to a date time string according to the XML schema dateTime definition.

Specified by:
addChildWithDateValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
value - representation of the date time value for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithDateValue(String, String)

addChildWithDatesAsLongValue

public ExtendedDataElement addChildWithDatesAsLongValue(java.lang.String newName,
                                                        long[] newValues)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object with the values passed as parameters and adds it to the list of extended data elements for this object.

Specified by:
addChildWithDatesAsLongValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
newValues - the array of long values for the new extended data element. Each value corresponds to the number of milliseconds since January 1, 1970 UTC.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithDatesAsLongValue(String, long[])

addChildWithDoubleArrayValue

public ExtendedDataElement addChildWithDoubleArrayValue(java.lang.String newName,
                                                        double[] newValues)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object with the values passed as parameters and adds it to the list of extended data elements for this object.

Specified by:
addChildWithDoubleArrayValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
newValues - the array of double values for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithDoubleArrayValue(String, double[])

addChildWithDoubleValue

public ExtendedDataElement addChildWithDoubleValue(java.lang.String newName,
                                                   double value)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object containing the value passed as parameter and adds it to the list of extended data elements for this object.

Specified by:
addChildWithDoubleValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
value - the double value that the new ExtendedDataElement will contain.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithDoubleValue(String, double)

addChildWithFloatArrayValue

public ExtendedDataElement addChildWithFloatArrayValue(java.lang.String newName,
                                                       float[] newValues)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object with the values passed as parameters and adds it to the list of extended data elements for this object.

Specified by:
addChildWithFloatArrayValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
newValues - the array of float/code> values for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithFloatArrayValue(String, float[])

addChildWithFloatValue

public ExtendedDataElement addChildWithFloatValue(java.lang.String newName,
                                                  float value)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object containing the value passed as parameter and adds it to the list of extended data elements for this object.

Specified by:
addChildWithFloatValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
value - the value for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithFloatValue(String, float)

addChildWithHexValue

public ExtendedDataElement addChildWithHexValue(java.lang.String newName,
                                                java.lang.String value)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object containing the value passed as parameter and adds it to the list of extended data elements for this object.

Specified by:
addChildWithHexValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
value - the value for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChild(String, String)

addChildWithHexValueAsByteArray

public ExtendedDataElement addChildWithHexValueAsByteArray(java.lang.String newName,
                                                           byte[] value)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object containing the value passed as parameter and adds it to the list of extended data elements for this object.

Specified by:
addChildWithHexValueAsByteArray in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
value - the value for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChild(String, String)

addChildWithIntArrayValue

public ExtendedDataElement addChildWithIntArrayValue(java.lang.String newName,
                                                     int[] newValues)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object with the values passed as parameters and adds it to the list of extended data elements for this object.

Specified by:
addChildWithIntArrayValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
newValues - the array of int values for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithIntArrayValue(String, int[])

addChildWithIntValue

public ExtendedDataElement addChildWithIntValue(java.lang.String newName,
                                                int value)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object containing the value passed as parameter and adds it to the list of extended data elements for this object.

Specified by:
addChildWithIntValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
value - the value for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithIntValue(String, int)

addChildWithLongArrayValue

public ExtendedDataElement addChildWithLongArrayValue(java.lang.String newName,
                                                      long[] newValues)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object with the values passed as parameters and adds it to the list of extended data elements for this object.

Specified by:
addChildWithLongArrayValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
newValues - the array of long values for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithLongArrayValue(String, long[])

addChildWithLongValue

public ExtendedDataElement addChildWithLongValue(java.lang.String newName,
                                                 long value)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object containing the value passed as parameter and adds it to the list of extended data elements for this object.

Specified by:
addChildWithLongValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
value - the value for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithLongValue(String, long)

addChildWithShortArrayValue

public ExtendedDataElement addChildWithShortArrayValue(java.lang.String newName,
                                                       short[] newValues)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object with the values passed as parameters and adds it to the list of extended data elements for this object.

Specified by:
addChildWithShortArrayValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
newValues - the array of short values for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithShortArrayValue(String, short[])

addChildWithShortValue

public ExtendedDataElement addChildWithShortValue(java.lang.String newName,
                                                  short value)
Description copied from interface: ExtendedDataElement
Adds a new ExtendedDataElement to this object.

It creates an ExtendedDataElement object containing the value passed as parameter and adds it to the list of extended data elements for this object.

Specified by:
addChildWithShortValue in interface ExtendedDataElement
Parameters:
newName - the name for the new extended data element.
value - the value for the new extended data element.
Returns:
a reference to the extended data element added to this object.
See Also:
ExtendedDataElement.addChildWithShortValue(String, short)

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

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

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

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

equals

public boolean equals(java.lang.Object arg0)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()

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

isValid

public static boolean isValid(int type)

isValid

public static boolean isValid(java.lang.String type)

typeToString

public static java.lang.String typeToString(int type)

typeToInt

public static int typeToInt(java.lang.String type)

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 ExtendedDataElement
Throws:
ValidationException - If the event instance does not conform to the Common Base Event specification.

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 ExtendedDataElement

TPTP 4.5.0 Platform Project
Public API Specification