|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.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'.
| 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 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()
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. 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 |
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 ExtendedDataElementEventPackage.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 ExtendedDataElements.
getChildren in interface ExtendedDataElementnewName - the name of the child ExtendedDataElement
ExtendedDataElement objects.ExtendedDataElement.getChildren(String)public void setHexValue(java.lang.String newHexValue)
setHexValue in interface ExtendedDataElementnewHexValue - the new value of the 'Hex Value' attribute.ExtendedDataElement.getHexValue()public java.lang.String getHexValue()
getHexValue in interface ExtendedDataElementExtendedDataElement.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 ExtendedDataElementvalue - 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 ExtendedDataElementvalue - the new hexValue for the extended data element.public byte[] getHexValueAsByteArray()
ExtendedDataElementReturns the hexValue of the extended data element cast as byte array values.
getHexValueAsByteArray in interface ExtendedDataElementpublic char[] getHexValueAsCharArray()
Returns the hexValue of the extended data element cast as char array values.
getHexValueAsCharArray in interface ExtendedDataElementjava.lang.IllegalStateException - if the 'Type' attribute is
not ExtendedDataElement.TYPE_HEX_BINARY.public void setName(java.lang.String newName)
setName in interface ExtendedDataElementnewName - the new value of the 'Name' attribute.ExtendedDataElement.getName()public java.lang.String getName()
getName in interface ExtendedDataElementExtendedDataElement.setName(String),
EventPackage.getExtendedDataElement_Name()public void setType(java.lang.String newType)
setType in interface ExtendedDataElementnewType - the new value of the 'Type' attribute.ExtendedDataElement.getType()public java.lang.String getType()
getType in interface ExtendedDataElementExtendedDataElement.setType(String),
EventPackage.getExtendedDataElement_Type()public void setTypeAsInt(int value)
ExtendedDataElementType' attribute.
The value must be one of the
ExtendedDataElement.TYPE_<type>_VALUE
constants.
setTypeAsInt in interface ExtendedDataElementvalue - 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 ExtendedDataElementExtendedDataElement.getTypeAsInt()public org.eclipse.emf.common.util.EList getValues()
getValues in interface ExtendedDataElementEventPackage.getExtendedDataElement_Values()public void setValues(java.lang.String[] values)
setValues in interface ExtendedDataElementpublic void setValuesAsBoolean(boolean value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_BOOLEAN.
setValuesAsBoolean in interface ExtendedDataElementvalue - the new value for the extended data element.public boolean getValuesAsBoolean()
ExtendedDataElementReturns the value of the extended data element cast as a boolean value.
getValuesAsBoolean in interface ExtendedDataElementpublic void setValuesAsBooleanArray(boolean[] value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_BOOLEAN_ARRAY.
setValuesAsBooleanArray in interface ExtendedDataElementvalue - the new value for the extended data element.ExtendedDataElement.setValuesAsBooleanArray(boolean[])public boolean[] getValuesAsBooleanArray()
ExtendedDataElementReturns the values of the extended data element cast as boolean values.
getValuesAsBooleanArray in interface ExtendedDataElementExtendedDataElement.getValuesAsBooleanArray()public void setValuesAsByte(byte value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_BYTE.
setValuesAsByte in interface ExtendedDataElementvalue - the new value for the extended data element.public byte getValuesAsByte()
ExtendedDataElementReturns the value of the extended data element cast as a byte value.
getValuesAsByte in interface ExtendedDataElementpublic void setValuesAsByteArray(byte[] value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_BYTE_ARRAY.
setValuesAsByteArray in interface ExtendedDataElementvalue - the new value for the extended data element.ExtendedDataElement.setValuesAsByteArray(byte[])public byte[] getValuesAsByteArray()
ExtendedDataElementReturns the values of the extended data element cast as byte values.
getValuesAsByteArray in interface ExtendedDataElementExtendedDataElement.getValuesAsByteArray()public void setValuesAsDate(java.lang.String value)
ExtendedDataElementThe values are represented according to the XML schema dateTime definition.
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_DATE_TIME.
setValuesAsDate in interface ExtendedDataElementvalue - the new value for the extended data element.ExtendedDataElement.setValuesAsDate(String)public java.lang.String getValuesAsDate()
ExtendedDataElementThe value is represented according to the XML schema dateTime definition.
getValuesAsDate in interface ExtendedDataElementExtendedDataElement.getValuesAsDate()public void setValuesAsDateArray(java.lang.String[] value)
ExtendedDataElementThe 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 ExtendedDataElementvalue - the new value for the extended data element.ExtendedDataElement.setValuesAsDateArray(String[])public java.lang.String[] getValuesAsDateArray()
ExtendedDataElementThe values are represented according to the XML schema dateTime definition.
getValuesAsDateArray in interface ExtendedDataElementExtendedDataElement.getValuesAsDateArray()public void setValuesAsDateAsLong(long value)
ExtendedDataElementThe values are represented according to the XML schema dateTime definition.
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_DATE_TIME.
setValuesAsDateAsLong in interface ExtendedDataElementvalue - the new value for the extended data element.public long getValuesAsDateAsLong()
ExtendedDataElementReturns the value of the extended data element cast as a date/time value.
getValuesAsDateAsLong in interface ExtendedDataElementExtendedDataElement.getValuesAsDateAsLong()public void setValuesAsDateAsLongArray(long[] newValues)
ExtendedDataElementThe 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 ExtendedDataElementnewValues - the new value for the extended data element.public long[] getValuesAsDateAsLongArray()
ExtendedDataElementReturns the values of the extended data element cast as date/time values.
getValuesAsDateAsLongArray in interface ExtendedDataElementExtendedDataElement.getValuesAsDateAsLongArray()public void setValuesAsDouble(double value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_DOUBLE.
setValuesAsDouble in interface ExtendedDataElementvalue - the new value for the extended data element.public double getValuesAsDouble()
ExtendedDataElementReturns the value of the extended data element cast as a double value.
getValuesAsDouble in interface ExtendedDataElementpublic void setValuesAsDoubleArray(double[] value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_DOUBLE_ARRAY.
setValuesAsDoubleArray in interface ExtendedDataElementvalue - the new value for the extended data element.ExtendedDataElement.setValuesAsDoubleArray(double[])public double[] getValuesAsDoubleArray()
ExtendedDataElementReturns the values of the extended data element cast as double values.
getValuesAsDoubleArray in interface ExtendedDataElementExtendedDataElement.getValuesAsDoubleArray()public void setValuesAsFloat(float value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_FLOAT.
setValuesAsFloat in interface ExtendedDataElementvalue - the new value for the extended data element.public float getValuesAsFloat()
ExtendedDataElementReturns the value of the extended data element cast as a float value.
getValuesAsFloat in interface ExtendedDataElementpublic void setValuesAsFloatArray(float[] value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_FLOAT_ARRAY.
setValuesAsFloatArray in interface ExtendedDataElementvalue - the new value for the extended data element.ExtendedDataElement.setValuesAsFloatArray(float[])public float[] getValuesAsFloatArray()
ExtendedDataElementReturns the values of the extended data element cast as float values.
getValuesAsFloatArray in interface ExtendedDataElementExtendedDataElement.getValuesAsFloatArray()public void setValuesAsInt(int value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_INT.
setValuesAsInt in interface ExtendedDataElementvalue - the new value for the extended data element.public int getValuesAsInt()
ExtendedDataElementReturns the value of the extended data element cast as an integer value.
getValuesAsInt in interface ExtendedDataElementpublic void setValuesAsIntArray(int[] value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_INT_ARRAY.
setValuesAsIntArray in interface ExtendedDataElementvalue - the new value for the extended data element.ExtendedDataElement.setValuesAsIntArray(int[])public int[] getValuesAsIntArray()
ExtendedDataElementReturns the values of the extended data element cast as integer values.
getValuesAsIntArray in interface ExtendedDataElementExtendedDataElement.getValuesAsIntArray()public void setValuesAsLong(long value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_LONG.
setValuesAsLong in interface ExtendedDataElementvalue - the new value for the extended data element.public long getValuesAsLong()
ExtendedDataElementReturns the value of the extended data element cast as a long value.
getValuesAsLong in interface ExtendedDataElementpublic void setValuesAsLongArray(long[] value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_LONG_ARRAY.
setValuesAsLongArray in interface ExtendedDataElementvalue - the new value for the extended data element.ExtendedDataElement.setValuesAsLongArray(long[])public long[] getValuesAsLongArray()
ExtendedDataElementReturns the values of the extended data element cast as long values.
getValuesAsLongArray in interface ExtendedDataElementExtendedDataElement.getValuesAsLongArray()public void setValuesAsShort(short value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_SHORT.
setValuesAsShort in interface ExtendedDataElementvalue - the new value for the extended data element.public short getValuesAsShort()
ExtendedDataElementReturns the value of the extended data element cast as a short value.
getValuesAsShort in interface ExtendedDataElementpublic void setValuesAsShortArray(short[] value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_SHORT_ARRAY.
setValuesAsShortArray in interface ExtendedDataElementvalue - the new value for the extended data element.ExtendedDataElement.setValuesAsShortArray(short[])public short[] getValuesAsShortArray()
ExtendedDataElementReturns the values of the extended data element cast as short values.
getValuesAsShortArray in interface ExtendedDataElementExtendedDataElement.getValuesAsShortArray()public void setValuesAsString(java.lang.String value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_STRING.
setValuesAsString in interface ExtendedDataElementvalue - the new value for the extended data element.public java.lang.String getValuesAsString()
ExtendedDataElementReturns the value of the extended data element cast as a string value.
getValuesAsString in interface ExtendedDataElementpublic void setValuesAsStringArray(java.lang.String[] value)
ExtendedDataElement
It also changes the 'Type' attribute to ExtendedDataElement.TYPE_STRING_ARRAY.
setValuesAsStringArray in interface ExtendedDataElementvalue - the new value for the extended data element.ExtendedDataElement.setValuesAsStringArray(String[])public java.lang.String[] getValuesAsStringArray()
ExtendedDataElementReturns the values of the extended data element cast as string values.
getValuesAsStringArray in interface ExtendedDataElementExtendedDataElement.getValuesAsStringArray()public ExtendedDataElement addChild(ExtendedDataElement child)
ExtendedDataElement to this object.
addChild in interface ExtendedDataElementgetChildren()public void clearChildren()
clearChildren in interface ExtendedDataElementpublic void removeChildren(java.lang.String name)
removeChildren in interface ExtendedDataElementname - the name of the child element to be removedpublic ExtendedDataElement addChild(java.lang.String newName)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - the name for the new extended data element.
ExtendedDataElement.addChild(String)
public ExtendedDataElement addChild(java.lang.String newName,
int newType,
java.lang.String value)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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)
ExtendedDataElementExtendedDataElement 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 ExtendedDataElementnewName - 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.EObjecteGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
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.InternalEObjecteInverseRemove in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)
eIsSet in interface org.eclipse.emf.ecore.EObjecteIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
java.lang.Object newValue)
eSet in interface org.eclipse.emf.ecore.EObjecteSet in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)
eUnset in interface org.eclipse.emf.ecore.EObjecteUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic boolean equals(java.lang.Object arg0)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class org.eclipse.emf.ecore.impl.BasicEObjectImplpublic static boolean isValid(int type)
public static boolean isValid(java.lang.String type)
public static java.lang.String typeToString(int type)
public static int typeToInt(java.lang.String type)
public void validate()
throws ValidationException
validate in interface ExtendedDataElementValidationException - 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 SerializableImplprotected org.eclipse.emf.common.util.EList resetValues()
public void clearValues()
clearValues in interface ExtendedDataElement
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic void init()
init in interface ExtendedDataElement
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||