|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.tptp.logging.events.cbe.impl.ExtendedDataElementImpl
Class representing an implementation of an ExtendedDataElement.
The following description is from the Common Base Event v1.0.1 specification entitled "Canonical Situation Data Format: The Common Base Event V1.0.1":
The ExtendedDataElement allows for application-supplied name-type-value collections to be specified for extensibility purposes. This is the mechanism by which other attributes not specified in the CommonBaseEvent data model can be added. Collections specified here are assumed to be product specific data.
The named properties can be filtered, searched or referenced by the correlation rules. The name is user defined, however, the nonexclusive reserved keywords are as follows:
| Field Summary | |
|---|---|
protected java.util.List |
children
The cached value of the ' Children'
containment reference list. |
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 java.lang.String |
type
The cached value of the ' Type' attribute. |
protected java.util.List |
values
The cached value of the ' Values'
attribute list. |
| 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 |
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 of this object. |
boolean |
equals(java.lang.Object object)
Overrides the java.lang.Object's equals() API to
determine if the parameter object is equal to this object.
|
java.util.List |
getChildren()
Returns the value of the 'Children' containment reference list. |
java.util.List |
getChildren(java.lang.String newName)
Helper method to return a named child ExtendedDataElement
from the list of children ExtendedDataElements.
|
java.lang.String |
getHexValue()
Returns the value of the 'Hex Value' attribute. |
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()
Returns the value of the 'Name' attribute. |
java.lang.String |
getType()
Returns the value of the 'Type' attribute. |
int |
getTypeAsInt()
Returns the value of the 'Type' attribute. |
java.util.List |
getValues()
Returns the value of the 'Values' attribute list. |
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)
Sets the value of the ' Hex Value'
attribute.
|
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)
Sets the value of the ' Name'
attribute.
|
void |
setType(java.lang.String newType)
Sets the value of the ' Type'
attribute.
|
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 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 java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String hexValue
Hex Value'
attribute.
getHexValue()protected java.lang.String name
Name' attribute.
getName()protected java.lang.String type
Type' attribute.
getType()protected java.util.List values
Values'
attribute list.
getValues()protected java.util.List children
Children'
containment reference list.
getChildren()| Constructor Detail |
protected ExtendedDataElementImpl()
| Method Detail |
public java.util.List getChildren()
ExtendedDataElementExtendedDataElement.
Contains other extendedDataElements to specify a structured list of extendedDataElements. This list allows a reporter to create a hierarchy of extendedDataElements for a specific CommonBaseEvent. This is an optional property.
getChildren in interface ExtendedDataElementpublic java.util.List 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)
ExtendedDataElementHex Value'
attribute.
The hexValue is an array of characters that holds the data for any other data type or complexType not in the supported types described above. The hexValue and the values properties are mutually exclusive. Only one of these properties shall be defined. This is an optional property.
The value is represented according to the XML schema hexBinary definition .
setHexValue in interface ExtendedDataElementnewHexValue - the new value of the 'Hex Value' attribute.ExtendedDataElement.getHexValue()public java.lang.String getHexValue()
ExtendedDataElementThe value is represented according to the XML schema hexBinary definition .
getHexValue in interface ExtendedDataElementExtendedDataElement.setHexValue(String)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.ExtendedDataElement.setHexValueAsByteArray(byte[])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 ExtendedDataElementExtendedDataElement.getHexValueAsByteArray()public 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)
ExtendedDataElementName'
attribute.
The name of the extended data element. This name must be unique with respect to all other fields at the same level of extendedDataElement hierarchy, however, there may exist a child with the same name at different level or hierarchy.
This is a required property. The string length for this property must not exceed 64 characters.
setName in interface ExtendedDataElementnewName - the new value of the 'Name' attribute.ExtendedDataElement.getName()public java.lang.String getName()
ExtendedDataElementReturns the value of the 'Name' attribute.
getName in interface ExtendedDataElementExtendedDataElement.setName(String)public void setType(java.lang.String newType)
ExtendedDataElementType'
attribute.
The data type of the values specified in the values property.
Valid types are as follows:
The default value is "string". This is a required property. The string length for this property must not exceed 64 characters.
setType in interface ExtendedDataElementnewType - the new value of the 'Type' attribute.ExtendedDataElement.getType()public java.lang.String getType()
ExtendedDataElementReturns the value of the 'Type' attribute.
getType in interface ExtendedDataElementExtendedDataElement.setType(String)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 java.util.List getValues()
ExtendedDataElementString.
The array of values for this extended data element represented as a string of the specified type, excluding hexBinary. hexBinary values must be defined using the hexValue property.
The hexValue and the values properties are mutually exclusive. Only one of these properties shall be defined. This is an optional property. The string length for a value must not exceed 1024 characters.
getValues in interface ExtendedDataElementpublic void setValues(java.lang.String[] values)
setValues in interface ExtendedDataElementvalues - the values to setpublic 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.ExtendedDataElement.setValuesAsBoolean(boolean)public boolean getValuesAsBoolean()
ExtendedDataElementReturns the value of the extended data element cast as a boolean value.
getValuesAsBoolean in interface ExtendedDataElementExtendedDataElement.getValuesAsBoolean()public 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.ExtendedDataElement.setValuesAsByte(byte)public byte getValuesAsByte()
ExtendedDataElementReturns the value of the extended data element cast as a byte value.
getValuesAsByte in interface ExtendedDataElementExtendedDataElement.getValuesAsByte()public 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)
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.
setValuesAsDateAsLong in interface ExtendedDataElementvalue - The long (milliseconds) time stamp to be converted to the XSD dateTime 'values' attribute.ExtendedDataElement.setValuesAsDateAsLong(long),
EventHelpers.dateToLong(String)public long getValuesAsDateAsLong()
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.
getValuesAsDateAsLong in interface ExtendedDataElementdateTime 'values' attribute.
java.lang.IllegalStateException - If the 'Type' attribute is not ExtendedDataElement.TYPE_DATE_TIME.ExtendedDataElement.getValuesAsDateAsLong(),
EventHelpers.dateToLong(String)public void setValuesAsDateAsLongArray(long[] newValues)
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.
setValuesAsDateAsLongArray in interface ExtendedDataElementnewValues - The array of long (milliseconds) time stamps to be converted to the XSD dateTime 'values' attribute.ExtendedDataElement.setValuesAsDateAsLongArray(long[]),
EventHelpers.dateToLong(String)public long[] getValuesAsDateAsLongArray()
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.
getValuesAsDateAsLongArray in interface ExtendedDataElementdateTime 'values' attribute.
java.lang.IllegalStateException - If the 'Type' attribute is not ExtendedDataElement.TYPE_DATE_TIME_ARRAY.ExtendedDataElement.getValuesAsDateAsLongArray(),
EventHelpers.dateToLong(String)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.ExtendedDataElement.setValuesAsDouble(double)public double getValuesAsDouble()
ExtendedDataElementReturns the value of the extended data element cast as a double value.
getValuesAsDouble in interface ExtendedDataElementExtendedDataElement.getValuesAsDouble()public 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.ExtendedDataElement.setValuesAsFloat(float)public float getValuesAsFloat()
ExtendedDataElementReturns the value of the extended data element cast as a float value.
getValuesAsFloat in interface ExtendedDataElementExtendedDataElement.getValuesAsFloat()public 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.ExtendedDataElement.setValuesAsInt(int)public int getValuesAsInt()
ExtendedDataElementReturns the value of the extended data element cast as an integer value.
getValuesAsInt in interface ExtendedDataElementExtendedDataElement.getValuesAsInt()public 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.ExtendedDataElement.setValuesAsLong(long)public long getValuesAsLong()
ExtendedDataElementReturns the value of the extended data element cast as a long value.
getValuesAsLong in interface ExtendedDataElementExtendedDataElement.getValuesAsLong()public 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.ExtendedDataElement.setValuesAsShort(short)public short getValuesAsShort()
ExtendedDataElementReturns the value of the extended data element cast as a short value.
getValuesAsShort in interface ExtendedDataElementExtendedDataElement.getValuesAsShort()public 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.ExtendedDataElement.setValuesAsString(java.lang.String)public java.lang.String getValuesAsString()
ExtendedDataElementReturns the value of the extended data element cast as a string value.
getValuesAsString in interface ExtendedDataElementExtendedDataElement.getValuesAsString()public 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 ExtendedDataElementchild - the new child extended data element.
getChildren()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 addChildWithNoValue(java.lang.String newName)
ExtendedDataElementExtendedDataElement 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.
addChildWithNoValue in interface ExtendedDataElementnewName - the name for the new extended data element.
ExtendedDataElement.addChildWithNoValue(String)
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 boolean equals(java.lang.Object object)
java.lang.Object's equals() API to
determine if the parameter object is equal to this object.
object - The java.lang.Object to be compared to this object.
object, otherwise false.Object.equals(java.lang.Object)public java.lang.String toString()
public 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 event instance does not conform to the Common Base Event specification.public void clearValues()
clearValues in interface ExtendedDataElement
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
This is a deep copy version, in which all the objects within this object will be copied by value.
java.lang.CloneNotSupportedException - If a instance variable of this object does not implement the Cloneable interface.public void init()
init in interface ExtendedDataElementprotected void setValues(java.lang.String value)
value - the new value for the extended data element
|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||