|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.hyades.logging.events.cbe.impl.SerializableImpl
org.eclipse.hyades.logging.events.cbe.impl.ExtendedDataElementImpl
An implementation of the model object 'Extended Data Element'.
Nested Class Summary |
---|
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
---|
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl |
Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList |
Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject |
---|
org.eclipse.emf.ecore.InternalEObject.EStore |
Field Summary | |
---|---|
protected org.eclipse.emf.common.util.EList |
children
The cached value of the ' Children ' containment reference list. |
static java.lang.String[] |
EDE_TYPES
Array of types for the extended data element. |
static java.util.List |
EDE_TYPES_LIST
|
protected static java.lang.String |
HEX_VALUE_EDEFAULT
The default value of the ' Hex Value ' attribute. |
protected java.lang.String |
hexValue
The cached value of the ' Hex Value ' attribute. |
protected java.lang.String |
name
The cached value of the ' Name ' attribute. |
protected static java.lang.String |
NAME_EDEFAULT
The default value of the ' Name ' attribute. |
protected java.lang.String |
type
The cached value of the ' Type ' attribute. |
protected static java.lang.String |
TYPE_EDEFAULT
The default value of the ' Type ' attribute. |
protected org.eclipse.emf.common.util.EList |
values
The cached value of the ' Values ' attribute list. |
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
---|
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY |
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
---|
EOPPOSITE_FEATURE_BASE |
Constructor Summary | |
---|---|
protected |
ExtendedDataElementImpl()
|
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 |
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)
|
protected org.eclipse.emf.ecore.EClass |
eStaticClass()
|
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 ExtendedDataElement s. |
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()
Returns the value of the extended data element cast as a date/time value. |
long[] |
getValuesAsDateAsLongArray()
Returns the values of the extended data element cast as date/time values. |
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. |
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 |
protected org.eclipse.emf.common.util.EList |
resetValues()
Deprecated. Use clearValues(); |
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. |
protected void |
setValues(java.lang.String value)
Sets the value of the extended data element as String value. |
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 value of the extended data element as a date/time value. |
void |
setValuesAsDateAsLongArray(long[] newValues)
Sets the value of the extended data element as an array of date/time values. |
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 this object conforms to the CBE specification. |
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
---|
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI |
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
---|
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalResource, eInverseAdd, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount, eStore, eURIFragmentSegment |
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
eNotificationRequired, eNotify |
Methods inherited from class java.lang.Object |
---|
finalize, 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 |
public static final java.lang.String[] EDE_TYPES
getType()
public static final java.util.List EDE_TYPES_LIST
protected static final java.lang.String HEX_VALUE_EDEFAULT
Hex Value
' attribute.
getHexValue()
protected java.lang.String hexValue
Hex Value
' attribute.
getHexValue()
protected static final java.lang.String NAME_EDEFAULT
Name
' attribute.
getName()
protected java.lang.String name
Name
' attribute.
getName()
protected static final java.lang.String TYPE_EDEFAULT
Type
' attribute.
getType()
protected java.lang.String type
Type
' attribute.
getType()
protected org.eclipse.emf.common.util.EList values
Values
' attribute list.
getValues()
protected org.eclipse.emf.common.util.EList children
Children
' containment reference list.
getChildren()
Constructor Detail |
protected ExtendedDataElementImpl()
Method Detail |
public org.eclipse.emf.common.util.EList getChildren()
getChildren
in interface ExtendedDataElement
EventPackage.getExtendedDataElement_Children()
public org.eclipse.emf.common.util.EList getChildren(java.lang.String newName)
ExtendedDataElement
Helper method to return a named child ExtendedDataElement
from the list of children ExtendedDataElement
s.
getChildren
in interface ExtendedDataElement
newName
- the name of the child ExtendedDataElement
ExtendedDataElement
objects.ExtendedDataElement.getChildren(String)
public void setHexValue(java.lang.String newHexValue)
setHexValue
in interface ExtendedDataElement
newHexValue
- the new value of the 'Hex Value' attribute.ExtendedDataElement.getHexValue()
public java.lang.String getHexValue()
getHexValue
in interface ExtendedDataElement
ExtendedDataElement.setHexValue(String)
,
EventPackage.getExtendedDataElement_HexValue()
public void setHexValueAsByteArray(byte[] value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_HEX_BINARY
.
setHexValueAsByteArray
in interface ExtendedDataElement
value
- the new hexValue for the extended data element.public void setHexValueAsCharArray(char[] value)
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_HEX_BINARY
.
setHexValueAsCharArray
in interface ExtendedDataElement
value
- the new hexValue for the extended data element.public byte[] getHexValueAsByteArray()
ExtendedDataElement
Returns the hexValue of the extended data element cast as byte array values.
getHexValueAsByteArray
in interface ExtendedDataElement
public char[] getHexValueAsCharArray()
Returns the hexValue of the extended data element cast as char array values.
getHexValueAsCharArray
in interface ExtendedDataElement
java.lang.IllegalStateException
- if the 'Type' attribute is
not ExtendedDataElement.TYPE_HEX_BINARY
.public void setName(java.lang.String newName)
setName
in interface ExtendedDataElement
newName
- the new value of the 'Name' attribute.ExtendedDataElement.getName()
public java.lang.String getName()
getName
in interface ExtendedDataElement
ExtendedDataElement.setName(String)
,
EventPackage.getExtendedDataElement_Name()
public void setType(java.lang.String newType)
setType
in interface ExtendedDataElement
newType
- the new value of the 'Type' attribute.ExtendedDataElement.getType()
public java.lang.String getType()
getType
in interface ExtendedDataElement
ExtendedDataElement.setType(String)
,
EventPackage.getExtendedDataElement_Type()
public void setTypeAsInt(int value)
ExtendedDataElement
Type
' attribute.
The value must be one of the
ExtendedDataElement.TYPE_<type>_VALUE
constants.
setTypeAsInt
in interface ExtendedDataElement
value
- the new value of the 'Type' attribute.ExtendedDataElement.setTypeAsInt(int)
public int getTypeAsInt()
ExtendedDataElement
The value is represented through one of the
ExtendedDataElement.TYPE_<type>_VALUE
constants.
getTypeAsInt
in interface ExtendedDataElement
ExtendedDataElement.getTypeAsInt()
public org.eclipse.emf.common.util.EList getValues()
getValues
in interface ExtendedDataElement
EventPackage.getExtendedDataElement_Values()
public void setValues(java.lang.String[] values)
setValues
in interface ExtendedDataElement
InvalidExtendedDataElementTypeException
- if the extended data element is a hexBinary data type.public void setValuesAsBoolean(boolean value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_BOOLEAN
.
setValuesAsBoolean
in interface ExtendedDataElement
value
- the new value for the extended data element.public boolean getValuesAsBoolean()
ExtendedDataElement
Returns the value of the extended data element cast as a boolean value.
getValuesAsBoolean
in interface ExtendedDataElement
public void setValuesAsBooleanArray(boolean[] value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_BOOLEAN_ARRAY
.
setValuesAsBooleanArray
in interface ExtendedDataElement
value
- the new value for the extended data element.ExtendedDataElement.setValuesAsBooleanArray(boolean[])
public boolean[] getValuesAsBooleanArray()
ExtendedDataElement
Returns the values of the extended data element cast as boolean values.
getValuesAsBooleanArray
in interface ExtendedDataElement
ExtendedDataElement.getValuesAsBooleanArray()
public void setValuesAsByte(byte value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_BYTE
.
setValuesAsByte
in interface ExtendedDataElement
value
- the new value for the extended data element.public byte getValuesAsByte()
ExtendedDataElement
Returns the value of the extended data element cast as a byte value.
getValuesAsByte
in interface ExtendedDataElement
public void setValuesAsByteArray(byte[] value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_BYTE_ARRAY
.
setValuesAsByteArray
in interface ExtendedDataElement
value
- the new value for the extended data element.ExtendedDataElement.setValuesAsByteArray(byte[])
public byte[] getValuesAsByteArray()
ExtendedDataElement
Returns the values of the extended data element cast as byte values.
getValuesAsByteArray
in interface ExtendedDataElement
ExtendedDataElement.getValuesAsByteArray()
public void setValuesAsDate(java.lang.String value)
ExtendedDataElement
The values are represented according to the XML schema dateTime definition.
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_DATE_TIME
.
setValuesAsDate
in interface ExtendedDataElement
value
- the new value for the extended data element.ExtendedDataElement.setValuesAsDate(String)
public java.lang.String getValuesAsDate()
ExtendedDataElement
The value is represented according to the XML schema dateTime definition.
getValuesAsDate
in interface ExtendedDataElement
ExtendedDataElement.getValuesAsDate()
public void setValuesAsDateArray(java.lang.String[] value)
ExtendedDataElement
The values are represented according to the XML schema dateTime definition.
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_DATE_TIME_ARRAY
.
setValuesAsDateArray
in interface ExtendedDataElement
value
- the new value for the extended data element.ExtendedDataElement.setValuesAsDateArray(String[])
public java.lang.String[] getValuesAsDateArray()
ExtendedDataElement
The values are represented according to the XML schema dateTime definition.
getValuesAsDateArray
in interface ExtendedDataElement
ExtendedDataElement.getValuesAsDateArray()
public void setValuesAsDateAsLong(long value)
ExtendedDataElement
The values are represented according to the XML schema dateTime definition.
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_DATE_TIME
.
setValuesAsDateAsLong
in interface ExtendedDataElement
value
- the new value for the extended data element.public long getValuesAsDateAsLong()
ExtendedDataElement
Returns the value of the extended data element cast as a date/time value.
getValuesAsDateAsLong
in interface ExtendedDataElement
ExtendedDataElement.getValuesAsDateAsLong()
public void setValuesAsDateAsLongArray(long[] newValues)
ExtendedDataElement
The values are represented according to the XML schema dateTime definition.
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_DATE_TIME_ARRAY
.
setValuesAsDateAsLongArray
in interface ExtendedDataElement
newValues
- the new value for the extended data element.public long[] getValuesAsDateAsLongArray()
ExtendedDataElement
Returns the values of the extended data element cast as date/time values.
getValuesAsDateAsLongArray
in interface ExtendedDataElement
ExtendedDataElement.getValuesAsDateAsLongArray()
public void setValuesAsDouble(double value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_DOUBLE
.
setValuesAsDouble
in interface ExtendedDataElement
value
- the new value for the extended data element.public double getValuesAsDouble()
ExtendedDataElement
Returns the value of the extended data element cast as a double value.
getValuesAsDouble
in interface ExtendedDataElement
public void setValuesAsDoubleArray(double[] value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_DOUBLE_ARRAY
.
setValuesAsDoubleArray
in interface ExtendedDataElement
value
- the new value for the extended data element.ExtendedDataElement.setValuesAsDoubleArray(double[])
public double[] getValuesAsDoubleArray()
ExtendedDataElement
Returns the values of the extended data element cast as double values.
getValuesAsDoubleArray
in interface ExtendedDataElement
ExtendedDataElement.getValuesAsDoubleArray()
public void setValuesAsFloat(float value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_FLOAT
.
setValuesAsFloat
in interface ExtendedDataElement
value
- the new value for the extended data element.public float getValuesAsFloat()
ExtendedDataElement
Returns the value of the extended data element cast as a float value.
getValuesAsFloat
in interface ExtendedDataElement
public void setValuesAsFloatArray(float[] value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_FLOAT_ARRAY
.
setValuesAsFloatArray
in interface ExtendedDataElement
value
- the new value for the extended data element.ExtendedDataElement.setValuesAsFloatArray(float[])
public float[] getValuesAsFloatArray()
ExtendedDataElement
Returns the values of the extended data element cast as float values.
getValuesAsFloatArray
in interface ExtendedDataElement
ExtendedDataElement.getValuesAsFloatArray()
public void setValuesAsInt(int value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_INT
.
setValuesAsInt
in interface ExtendedDataElement
value
- the new value for the extended data element.public int getValuesAsInt()
ExtendedDataElement
Returns the value of the extended data element cast as an integer value.
getValuesAsInt
in interface ExtendedDataElement
public void setValuesAsIntArray(int[] value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_INT_ARRAY
.
setValuesAsIntArray
in interface ExtendedDataElement
value
- the new value for the extended data element.ExtendedDataElement.setValuesAsIntArray(int[])
public int[] getValuesAsIntArray()
ExtendedDataElement
Returns the values of the extended data element cast as integer values.
getValuesAsIntArray
in interface ExtendedDataElement
ExtendedDataElement.getValuesAsIntArray()
public void setValuesAsLong(long value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_LONG
.
setValuesAsLong
in interface ExtendedDataElement
value
- the new value for the extended data element.public long getValuesAsLong()
ExtendedDataElement
Returns the value of the extended data element cast as a long value.
getValuesAsLong
in interface ExtendedDataElement
public void setValuesAsLongArray(long[] value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_LONG_ARRAY
.
setValuesAsLongArray
in interface ExtendedDataElement
value
- the new value for the extended data element.ExtendedDataElement.setValuesAsLongArray(long[])
public long[] getValuesAsLongArray()
ExtendedDataElement
Returns the values of the extended data element cast as long values.
getValuesAsLongArray
in interface ExtendedDataElement
ExtendedDataElement.getValuesAsLongArray()
public void setValuesAsShort(short value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_SHORT
.
setValuesAsShort
in interface ExtendedDataElement
value
- the new value for the extended data element.public short getValuesAsShort()
ExtendedDataElement
Returns the value of the extended data element cast as a short value.
getValuesAsShort
in interface ExtendedDataElement
public void setValuesAsShortArray(short[] value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_SHORT_ARRAY
.
setValuesAsShortArray
in interface ExtendedDataElement
value
- the new value for the extended data element.ExtendedDataElement.setValuesAsShortArray(short[])
public short[] getValuesAsShortArray()
ExtendedDataElement
Returns the values of the extended data element cast as short values.
getValuesAsShortArray
in interface ExtendedDataElement
ExtendedDataElement.getValuesAsShortArray()
public void setValuesAsString(java.lang.String value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_STRING
.
setValuesAsString
in interface ExtendedDataElement
value
- the new value for the extended data element.public java.lang.String getValuesAsString()
ExtendedDataElement
Returns the value of the extended data element cast as a string value.
getValuesAsString
in interface ExtendedDataElement
public void setValuesAsStringArray(java.lang.String[] value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_STRING_ARRAY
.
setValuesAsStringArray
in interface ExtendedDataElement
value
- the new value for the extended data element.ExtendedDataElement.setValuesAsStringArray(String[])
public java.lang.String[] getValuesAsStringArray()
ExtendedDataElement
Returns the values of the extended data element cast as string values.
getValuesAsStringArray
in interface ExtendedDataElement
ExtendedDataElement.getValuesAsStringArray()
public ExtendedDataElement addChild(ExtendedDataElement child)
ExtendedDataElement
to this object.
addChild
in interface ExtendedDataElement
getChildren()
public void clearChildren()
clearChildren
in interface ExtendedDataElement
public void removeChildren(java.lang.String name)
removeChildren
in interface ExtendedDataElement
name
- the name of the child element to be removedpublic ExtendedDataElement addChild(java.lang.String newName)
ExtendedDataElement
ExtendedDataElement
to this object.
It creates an ExtendedDataElement
object without
any values adds it to the list of extended data elements for this
object.
addChild
in interface ExtendedDataElement
newName
- the name for the new extended data element.
ExtendedDataElement.addChild(String)
public ExtendedDataElement addChild(java.lang.String newName, int newType, java.lang.String value)
ExtendedDataElement
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.
addChild
in interface ExtendedDataElement
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.
ExtendedDataElement.addChild(String, int, String)
public ExtendedDataElement addChild(java.lang.String newName, int newType, java.lang.String[] newValues)
ExtendedDataElement
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.
addChild
in interface ExtendedDataElement
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.
ExtendedDataElement.addChild(String, int, String[])
public ExtendedDataElement addChild(java.lang.String newName, java.lang.String value)
ExtendedDataElement
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.
addChild
in interface ExtendedDataElement
newName
- the name for the new extended data element.value
- the value for the new extended data element.
ExtendedDataElement.addChild(String, String)
public ExtendedDataElement addChild(java.lang.String newName, java.lang.String[] newValues)
ExtendedDataElement
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.
addChild
in interface ExtendedDataElement
newName
- the name for the new extended data element.newValues
- the array of String
values for the
new extended data element.
ExtendedDataElement.addChild(String, String[])
public ExtendedDataElement addChildWithBooleanArrayValue(java.lang.String newName, boolean[] newValues)
ExtendedDataElement
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.
addChildWithBooleanArrayValue
in interface ExtendedDataElement
newName
- the name for the new extended data element.newValues
- the array of boolean
values for the new
extended data element.
ExtendedDataElement.addChildWithByteArrayValue(String, byte[])
public ExtendedDataElement addChildWithBooleanValue(java.lang.String newName, boolean value)
ExtendedDataElement
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.
addChildWithBooleanValue
in interface ExtendedDataElement
newName
- the name for the new extended data element.value
- the value for the new extended data element.
ExtendedDataElement.addChildWithByteValue(String, byte)
public ExtendedDataElement addChildWithByteArrayValue(java.lang.String newName, byte[] newValues)
ExtendedDataElement
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.
addChildWithByteArrayValue
in interface ExtendedDataElement
newName
- the name for the new extended data element.newValues
- the array of byte
values for the new
extended data element.
ExtendedDataElement.addChildWithByteArrayValue(String, byte[])
public ExtendedDataElement addChildWithByteValue(java.lang.String newName, byte value)
ExtendedDataElement
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.
addChildWithByteValue
in interface ExtendedDataElement
newName
- the name for the new extended data element.value
- the value for the new extended data element.
ExtendedDataElement.addChildWithByteValue(String, byte)
public ExtendedDataElement addChildWithDateArrayValue(java.lang.String newName, java.lang.String[] newValues)
ExtendedDataElement
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.
addChildWithDateArrayValue
in interface ExtendedDataElement
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.
ExtendedDataElement.addChildWithDateArrayValue(String, String[])
public ExtendedDataElement addChildWithDateAsLongValue(java.lang.String newName, long value)
ExtendedDataElement
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.
addChildWithDateAsLongValue
in interface ExtendedDataElement
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.
ExtendedDataElement.addChildWithDateAsLongValue(String, long)
public ExtendedDataElement addChildWithDateValue(java.lang.String newName, java.lang.String value)
ExtendedDataElement
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.
addChildWithDateValue
in interface ExtendedDataElement
newName
- the name for the new extended data element.value
- representation of the date time value for the new
extended data element.
ExtendedDataElement.addChildWithDateValue(String, String)
public ExtendedDataElement addChildWithDatesAsLongValue(java.lang.String newName, long[] newValues)
ExtendedDataElement
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.
addChildWithDatesAsLongValue
in interface ExtendedDataElement
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.
ExtendedDataElement.addChildWithDatesAsLongValue(String, long[])
public ExtendedDataElement addChildWithDoubleArrayValue(java.lang.String newName, double[] newValues)
ExtendedDataElement
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.
addChildWithDoubleArrayValue
in interface ExtendedDataElement
newName
- the name for the new extended data element.newValues
- the array of double
values for the new
extended data element.
ExtendedDataElement.addChildWithDoubleArrayValue(String, double[])
public ExtendedDataElement addChildWithDoubleValue(java.lang.String newName, double value)
ExtendedDataElement
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.
addChildWithDoubleValue
in interface ExtendedDataElement
newName
- the name for the new extended data element.value
- the double
value that the new
ExtendedDataElement
will contain.
ExtendedDataElement.addChildWithDoubleValue(String, double)
public ExtendedDataElement addChildWithFloatArrayValue(java.lang.String newName, float[] newValues)
ExtendedDataElement
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.
addChildWithFloatArrayValue
in interface ExtendedDataElement
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[])
public ExtendedDataElement addChildWithFloatValue(java.lang.String newName, float value)
ExtendedDataElement
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.
addChildWithFloatValue
in interface ExtendedDataElement
newName
- the name for the new extended data element.value
- the value for the new extended data element.
ExtendedDataElement.addChildWithFloatValue(String, float)
public ExtendedDataElement addChildWithHexValue(java.lang.String newName, java.lang.String value)
ExtendedDataElement
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.
addChildWithHexValue
in interface ExtendedDataElement
newName
- the name for the new extended data element.value
- the value for the new extended data element.
ExtendedDataElement.addChild(String, String)
public ExtendedDataElement addChildWithHexValueAsByteArray(java.lang.String newName, byte[] value)
ExtendedDataElement
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.
addChildWithHexValueAsByteArray
in interface ExtendedDataElement
newName
- the name for the new extended data element.value
- the value for the new extended data element.
ExtendedDataElement.addChild(String, String)
public ExtendedDataElement addChildWithIntArrayValue(java.lang.String newName, int[] newValues)
ExtendedDataElement
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.
addChildWithIntArrayValue
in interface ExtendedDataElement
newName
- the name for the new extended data element.newValues
- the array of int
values for the new
extended data element.
ExtendedDataElement.addChildWithIntArrayValue(String, int[])
public ExtendedDataElement addChildWithIntValue(java.lang.String newName, int value)
ExtendedDataElement
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.
addChildWithIntValue
in interface ExtendedDataElement
newName
- the name for the new extended data element.value
- the value for the new extended data element.
ExtendedDataElement.addChildWithIntValue(String, int)
public ExtendedDataElement addChildWithLongArrayValue(java.lang.String newName, long[] newValues)
ExtendedDataElement
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.
addChildWithLongArrayValue
in interface ExtendedDataElement
newName
- the name for the new extended data element.newValues
- the array of long
values for the new
extended data element.
ExtendedDataElement.addChildWithLongArrayValue(String, long[])
public ExtendedDataElement addChildWithLongValue(java.lang.String newName, long value)
ExtendedDataElement
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.
addChildWithLongValue
in interface ExtendedDataElement
newName
- the name for the new extended data element.value
- the value for the new extended data element.
ExtendedDataElement.addChildWithLongValue(String, long)
public ExtendedDataElement addChildWithShortArrayValue(java.lang.String newName, short[] newValues)
ExtendedDataElement
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.
addChildWithShortArrayValue
in interface ExtendedDataElement
newName
- the name for the new extended data element.newValues
- the array of short
values for the new
extended data element.
ExtendedDataElement.addChildWithShortArrayValue(String, short[])
public ExtendedDataElement addChildWithShortValue(java.lang.String newName, short value)
ExtendedDataElement
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.
addChildWithShortValue
in interface ExtendedDataElement
newName
- the name for the new extended data element.value
- the value for the new extended data element.
ExtendedDataElement.addChildWithShortValue(String, short)
public java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature eFeature, boolean resolve)
eGet
in interface org.eclipse.emf.ecore.EObject
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)
eInverseRemove
in interface org.eclipse.emf.ecore.InternalEObject
public boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)
eIsSet
in interface org.eclipse.emf.ecore.EObject
public void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.EObject
public void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)
eUnset
in interface org.eclipse.emf.ecore.EObject
public boolean equals(java.lang.Object arg0)
public java.lang.String toString()
public static boolean isValid(int type)
com.ibm.events.cbe.ExtendedDataElement#isValid(int)
public static boolean isValid(java.lang.String type)
com.ibm.events.cbe.ExtendedDataElement#isValid(String)
public static java.lang.String typeToString(int type)
com.ibm.events.cbe.ExtendedDataElement#typeToString(int)
public static int typeToInt(java.lang.String type)
com.ibm.events.cbe.ExtendedDataElement#typeToInt(String)
public void validate() throws ValidationException
validate
in interface ExtendedDataElement
ValidationException
- if the object does not follow the
CBE specification.protected void setValues(java.lang.String value)
value
- the new value for the extended data elementprotected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class SerializableImpl
protected org.eclipse.emf.common.util.EList resetValues()
public void clearValues()
clearValues
in interface ExtendedDataElement
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public void init()
init
in interface ExtendedDataElement
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |