|
TPTP 4.4.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.CommonBaseEventImpl
Class representing an implementation of an CommonBaseEvent.
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 purpose of the Common Base Event is to facilitate the effective intercommunication among disparate enterprise components that support logging, management, problem determination, autonomic computing and e-business functions in an enterprise.
Common Base Event definition ensures completeness of the data by providing properties to publish the following information:
| Field Summary | |
|---|---|
protected java.util.List |
any
The cached value of the ' Any' attribute
list. |
protected java.util.List |
associatedEvents
The cached value of the ' Associated Events' containment
reference list. |
protected java.util.List |
contextDataElements
The cached value of the ' Context Data Elements'
containment reference list. |
protected java.lang.String |
creationTime
The cached value of the ' Creation Time' attribute.
|
protected boolean |
creationTimeESet
Deprecated. |
protected long |
elapsedTime
The cached value of the ' Elapsed Time'
attribute. |
protected boolean |
elapsedTimeESet
This is true if the Elapsed Time attribute has been set. |
protected java.util.List |
extendedDataElements
The cached value of the ' Extended Data Elements'
containment reference list. |
protected java.lang.String |
extensionName
The cached value of the ' Extension Name' attribute.
|
protected java.lang.String |
globalInstanceId
The cached value of the ' Global Instance Id' attribute. |
protected java.lang.String |
localInstanceId
The cached value of the ' Local Instance Id' attribute. |
protected java.lang.String |
msg
The cached value of the ' Msg' attribute. |
protected MsgDataElement |
msgDataElement
The cached value of the ' Msg Data Element' containment
reference. |
protected short |
priority
The cached value of the ' Priority'
attribute. |
protected boolean |
priorityESet
This is true if the Priority attribute has been set. |
protected short |
repeatCount
The cached value of the ' Repeat Count'
attribute. |
protected boolean |
repeatCountESet
This is true if the Repeat Count attribute has been set. |
protected ComponentIdentification |
reporterComponentId
The cached value of the ' Reporter Component Id'
containment reference. |
protected long |
sequenceNumber
The cached value of the ' Sequence Number' attribute.
|
protected boolean |
sequenceNumberESet
This is true if the Sequence Number attribute has been set. |
protected short |
severity
The cached value of the ' Severity'
attribute. |
protected boolean |
severityESet
This is true if the Severity attribute has been set. |
protected Situation |
situation
The cached value of the ' Situation'
containment reference. |
protected ComponentIdentification |
sourceComponentId
The cached value of the ' Source Component Id'
containment reference. |
protected java.lang.String |
version
The cached value of the ' Version'
attribute. |
| Fields inherited from interface org.eclipse.tptp.logging.events.cbe.CommonBaseEvent |
|---|
PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_MEDIUM, SEVERITY_CRITICAL, SEVERITY_FATAL, SEVERITY_HARMLESS, SEVERITY_INFORMATION, SEVERITY_MINOR, SEVERITY_UNKNOWN, SEVERITY_WARNING |
| Constructor Summary | |
|---|---|
protected |
CommonBaseEventImpl()
|
| Method Summary | |
|---|---|
void |
addAny(java.lang.String any)
Helper method for creating and setting an any element for this object. |
AssociatedEvent |
addAssociatedEvent(AssociatedEvent associatedEvent)
Adds a new AssociatedEvent to this object. |
AssociatedEvent |
addAssociatedEvent(java.lang.String associationEngineName,
java.lang.String associationEngineType,
java.lang.String associationEngineId,
java.lang.String[] resolvedEvents)
Helper method for creating and setting the associated events for this object. |
ContextDataElement |
addContextDataElement(ContextDataElement contextDataElement)
Adds a new ContextDataElement to this object. |
ContextDataElement |
addContextDataElementWithId(java.lang.String contextType,
java.lang.String contextName,
java.lang.String contextId)
Adds a new context data element to this object. |
ContextDataElement |
addContextDataElementWithValue(java.lang.String contextType,
java.lang.String contextName,
java.lang.String contextValue)
Adds a new context data element to this object. |
ExtendedDataElement |
addExtendedDataElement(ExtendedDataElement extendedDataElement)
Adds a new ExtendedDataElement to this object. |
ExtendedDataElement |
addExtendedDataElement(java.lang.String name)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElement(java.lang.String name,
int type,
java.lang.String value)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElement(java.lang.String name,
int type,
java.lang.String[] values)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElement(java.lang.String name,
java.lang.String value)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElement(java.lang.String name,
java.lang.String[] values)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithBooleanArrayValue(java.lang.String name,
boolean[] values)
An array of product specific extensions for extensibility where you can provide any other attributes not accounted for in the CommonBaseEventImpl. |
ExtendedDataElement |
addExtendedDataElementWithBooleanValue(java.lang.String name,
boolean value)
An array of product specific extensions for extensibility where you can provide any other attributes not accounted for in the CommonBaseEventImpl. |
ExtendedDataElement |
addExtendedDataElementWithByteArrayValue(java.lang.String name,
byte[] values)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithByteValue(java.lang.String name,
byte value)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithDateArrayValue(java.lang.String name,
java.lang.String[] values)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithDateAsLongValue(java.lang.String name,
long value)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithDatesAsLongValue(java.lang.String name,
long[] values)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithDateValue(java.lang.String name,
java.lang.String value)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithDoubleArrayValue(java.lang.String name,
double[] values)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithDoubleValue(java.lang.String name,
double value)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithFloatArrayValue(java.lang.String name,
float[] values)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithFloatValue(java.lang.String name,
float value)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithHexValue(java.lang.String name,
byte[] hexValue)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithHexValue(java.lang.String name,
java.lang.String hexValue)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithIntArrayValue(java.lang.String name,
int[] values)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithIntValue(java.lang.String name,
int value)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithLongArrayValue(java.lang.String name,
long[] values)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithLongValue(java.lang.String name,
long value)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithNoValue(java.lang.String name)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithShortArrayValue(java.lang.String name,
short[] values)
Adds a new ExtendedDataElement to this object.
|
ExtendedDataElement |
addExtendedDataElementWithShortValue(java.lang.String name,
short value)
Adds a new ExtendedDataElement to this object.
|
void |
clearAny()
Removes all any strings that this event is referencing |
void |
clearAssociatedEvents()
Removes all ExtenedDataElements that this event is referencing |
void |
clearContextDataElements()
Removes all ExtenedDataElements that this event is referencing |
void |
clearExtendedDataElements()
Removes all ExtenedDataElements that this event is referencing |
java.lang.Object |
clone()
Return a cloned (copy by value) object of this object. |
void |
complete()
Invokes the content handler associated, if any, with this event instance. |
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.lang.String |
externalizeCanonicalXmlDocString()
Serializes the content of the implementing java.lang.Object to an XML document. |
java.lang.String |
externalizeCanonicalXmlString()
Serializes the content of the implementing java.lang.Object to an XML fragment. |
java.util.List |
getAny()
Returns the value of the 'Any' attribute list. |
java.util.List |
getAssociatedEvents()
Returns the value of the 'Associated Events' containment reference list. |
ContentHandler |
getContentHandler()
Gets the ContentHandler associated with this event
instance.
|
java.util.List |
getContextDataElements()
Returns the value of the 'Context Data Elements' containment reference list. |
java.util.List |
getContextDataElements(java.lang.String name)
Get a named a context that this event is referencing. |
java.lang.String |
getCreationTime()
Returns the value of the 'Creation Time' attribute. |
long |
getCreationTimeAsLong()
Resolves the XSD dateTime 'Creation Time' attribute
as a long (milliseconds) time stamp.
|
long |
getElapsedTime()
Returns the value of the 'Elapsed Time' attribute. |
java.util.List |
getExtendedDataElements()
Returns the value of the 'Extended Data Elements' containment reference list. |
java.util.List |
getExtendedDataElements(java.lang.String name)
Returns a named ExtendedDataElement from the list of
ExtendedDataElement objects.
|
java.lang.String |
getExtensionName()
Returns the value of the 'Extension Name' attribute. |
java.lang.String |
getGlobalInstanceId()
Returns the value of the 'Global Instance ID' attribute. |
java.lang.String |
getLocalInstanceId()
Returns the value of the 'Local Instance ID' attribute. |
java.lang.String |
getMsg()
Returns the value of the 'Msg' attribute. |
MsgDataElement |
getMsgDataElement()
Returns the value of the 'Msg Data Element' containment reference. |
short |
getPriority()
Returns the value of the 'Priority' attribute. |
short |
getRepeatCount()
Returns the value of the 'Repeat Count' attribute. |
ComponentIdentification |
getReporterComponentId()
Returns the value of the 'Reporter Component ID' containment reference. |
long |
getSequenceNumber()
Returns the value of the 'Sequence Number' attribute. |
short |
getSeverity()
Returns the value of the 'Severity' attribute. |
Situation |
getSituation()
Returns the value of the 'Situation' containment reference. |
ComponentIdentification |
getSourceComponentId()
Returns the value of the 'Source Component ID' containment reference. |
java.lang.String |
getVersion()
Returns the value of the 'Version' attribute. |
void |
init()
Resets the object's properties to their initial (e.g. null) state. |
void |
internalizeCanonicalXmlDocString(java.lang.String value)
De-serializes an XML document to the content of the implementing java.lang.Object. |
void |
internalizeCanonicalXmlString(java.lang.String value)
De-serializes an XML fragment to the content of the implementing java.lang.Object. |
boolean |
isComplete()
Determines if the ContentHandler associated with this
event instance, if any, has been previously been invoked.
|
boolean |
isSetCreationTime()
Returns whether the value of the ' Creation Time'
attribute is set.
|
boolean |
isSetElapsedTime()
Returns whether the value of the ' Elapsed Time'
attribute is set.
|
boolean |
isSetPriority()
Returns whether the value of the ' Priority'
attribute is set. |
boolean |
isSetRepeatCount()
Returns whether the value of the ' Repeat Count'
attribute is set.
|
boolean |
isSetSequenceNumber()
Returns whether the value of the ' Sequence Number'
attribute is set.
|
boolean |
isSetSeverity()
Returns whether the value of the ' Severity'
attribute is set.
|
void |
removeContextDataElements(java.lang.String name)
Remove a named context data element that this event is referencing |
void |
removeExtendedDataElements(java.lang.String name)
Remove a named extended data element that this event is referencing |
void |
setContentHandler(ContentHandler contentHandler)
Sets the ContentHandler associated with this event
instance.
|
void |
setCreationTime(java.lang.String newCreationTime)
Sets the value of the ' Creation Time'
attribute.
|
void |
setCreationTimeAsLong(long inDateTime)
Sets the XSD dateTime 'Creation Time' attribute
as a long (milliseconds) time stamp.
|
void |
setElapsedTime(long newElapsedTime)
Sets the value of the ' Elapsed Time'
attribute.
|
void |
setExtensionName(java.lang.String newExtensionName)
Sets the value of the ' Extension Name'
attribute.
|
void |
setGlobalInstanceId(java.lang.String newGlobalInstanceId)
Sets the value of the ' Global Instance ID'
attribute.
|
void |
setLocalInstanceId(java.lang.String newLocalInstanceId)
Sets the value of the ' Local Instance ID'
attribute.
|
void |
setMsg(java.lang.String newMsg)
Sets the value of the ' Msg'
attribute.
|
void |
setMsgDataElement(MsgDataElement newMsgDataElement)
Sets the value of the ' Msg Data Element'
containment reference.
|
MsgDataElement |
setMsgDataElement(java.lang.String msgCatalog,
java.lang.String msgCatalogId,
MsgCatalogToken[] tokens,
java.lang.String msgCatalogType,
java.lang.String msgId,
java.lang.String msgIdType,
java.lang.String msgCatalogLocale)
Adds a new MsgDataElement to this object.
|
MsgDataElement |
setMsgDataElement(java.lang.String msgCatalog,
java.lang.String msgCatalogId,
java.lang.String[] tokens,
java.lang.String msgCatalogType,
java.lang.String msgId,
java.lang.String msgIdType,
java.lang.String msgCatalogLocale)
Adds a new MsgDataElement to this object.
|
void |
setPriority(short newPriority)
Sets the value of the ' Priority'
attribute.
|
void |
setRepeatCount(short newRepeatCount)
Sets the value of the ' Repeat Count'
attribute.
|
void |
setReporterComponentId(ComponentIdentification newReporterComponentId)
Sets the value of the ' Reporter Component ID'
containment reference.
|
void |
setReporterComponentId(java.lang.String application,
java.lang.String component,
java.lang.String subComponent,
java.lang.String componentType,
java.lang.String componentIdType,
java.lang.String location,
java.lang.String locationType)
Sets the reporter component identifier for this event. |
void |
setReporterComponentId(java.lang.String application,
java.lang.String component,
java.lang.String subComponent,
java.lang.String componentType,
java.lang.String componentIdType,
java.lang.String executionEnvironment,
java.lang.String instanceId,
java.lang.String location,
java.lang.String locationType,
java.lang.String processId,
java.lang.String threadId)
Helper method for creating and setting the reporter component ID for this object. |
void |
setSequenceNumber(long newSequenceNumber)
Sets the value of the ' Sequence Number'
attribute.
|
void |
setSeverity(short newSeverity)
Sets the value of the ' Severity'
attribute.
|
void |
setSituation(Situation newSituation)
Sets the value of the ' Situation'
containment reference.
|
void |
setSourceComponentId(ComponentIdentification newSourceComponentId)
Sets the value of the ' Source Component ID'
containment reference.
|
void |
setSourceComponentId(java.lang.String application,
java.lang.String component,
java.lang.String subComponent,
java.lang.String componentType,
java.lang.String componentIdType,
java.lang.String location,
java.lang.String locationType)
Sets the source component identifier for this event. |
void |
setSourceComponentId(java.lang.String application,
java.lang.String component,
java.lang.String subComponent,
java.lang.String componentType,
java.lang.String componentIdType,
java.lang.String executionEnvironment,
java.lang.String instanceId,
java.lang.String location,
java.lang.String locationType,
java.lang.String processId,
java.lang.String threadId)
Sets the source component identifier for this event. |
void |
setVersion(java.lang.String newVersion)
Sets the value of the ' Version'
attribute.
|
java.lang.String |
toString()
|
void |
unsetCreationTime()
Sets the value of the ' Creation Time'
attribute to null and turns off the isSet
flag.
|
void |
unsetElapsedTime()
Sets the value of the ' Elapsed Time'
attribute to 0 and turns off the isSet
flag. |
void |
unsetPriority()
Sets the value of the ' Priority'
attribute to 0 and turns off the isSet
flag.
|
void |
unsetRepeatCount()
Sets the value of the ' Repeat Count'
attribute to 0 and turns off the isSet
flag. |
void |
unsetSequenceNumber()
Sets the value of the ' Sequence Number'
attribute to 0 and turns off the isSet
flag. |
void |
unsetSeverity()
Sets the value of the ' Severity'
attribute to 0 and turns off the isSet
flag.
|
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 creationTime
Creation Time' attribute.
getCreationTime()protected boolean creationTimeESet
protected java.lang.String globalInstanceId
Global Instance Id' attribute.
getGlobalInstanceId()protected long elapsedTime
Elapsed Time'
attribute.
getElapsedTime()protected boolean elapsedTimeESet
protected java.lang.String extensionName
Extension Name' attribute.
getExtensionName()protected java.lang.String localInstanceId
Local Instance Id' attribute.
getLocalInstanceId()protected java.lang.String msg
Msg' attribute.
getMsg()protected short priority
Priority'
attribute.
getPriority()protected boolean priorityESet
protected short repeatCount
Repeat Count'
attribute.
getRepeatCount()protected boolean repeatCountESet
protected long sequenceNumber
Sequence Number' attribute.
getSequenceNumber()protected boolean sequenceNumberESet
protected short severity
Severity'
attribute.
getSeverity()protected boolean severityESet
protected java.lang.String version
Version'
attribute.
getVersion()protected java.util.List any
Any' attribute
list.
getAny()protected Situation situation
Situation'
containment reference.
getSituation()protected java.util.List associatedEvents
Associated Events' containment
reference list.
getAssociatedEvents()protected java.util.List contextDataElements
Context Data Elements'
containment reference list.
getContextDataElements()protected java.util.List extendedDataElements
Extended Data Elements'
containment reference list.
getExtendedDataElements()protected MsgDataElement msgDataElement
Msg Data Element' containment
reference.
getMsgDataElement()protected ComponentIdentification reporterComponentId
Reporter Component Id'
containment reference.
getReporterComponentId()protected ComponentIdentification sourceComponentId
Source Component Id'
containment reference.
getSourceComponentId()| Constructor Detail |
protected CommonBaseEventImpl()
| Method Detail |
public java.util.List getAny()
CommonBaseEventString.
The XML fragment found inside an <any> element of the XML representation of CBE event.
getAny in interface CommonBaseEventpublic java.util.List getAssociatedEvents()
CommonBaseEventAssociatedEvent.
This property allows events to be grouped. This property is a complex type that consists of globalInstanceIds that identify the associated events plus a type field that describes the type of association that is represented by the name of the association. This is an optional property.
getAssociatedEvents in interface CommonBaseEventpublic void setContentHandler(ContentHandler contentHandler)
CommonBaseEventContentHandler associated with this event
instance.
Invocations of this method cause the flag denoting if the
ContentHandler associated with this event instance has
been previously invoked to be false.
setContentHandler in interface CommonBaseEventcontentHandler - The new ContentHandler associated with this
event instance.CommonBaseEvent.setContentHandler(org.eclipse.tptp.logging.events.cbe.ContentHandler)public ContentHandler getContentHandler()
CommonBaseEventContentHandler associated with this event
instance.
getContentHandler in interface CommonBaseEventContentHandler associated with this event
instance.CommonBaseEvent.getContentHandler()public java.util.List getContextDataElements()
CommonBaseEventContextDataElement.
An array of contexts that this event is referencing. See the ContextDataElement definition for details. This is an optional property.
getContextDataElements in interface CommonBaseEventpublic java.util.List getContextDataElements(java.lang.String name)
CommonBaseEvent
getContextDataElements in interface CommonBaseEventname - the name of the element to be found
CommonBaseEvent.getContextDataElements(String)public void setCreationTime(java.lang.String newCreationTime)
CommonBaseEventCreation Time'
attribute.
The date-time when the event was issued. The value must be as defined by the XML Schema dateTime data type. The value must be as precise as the generating platform allows. This is a required property.
The parameter is represented in terms of the DateTime XML type as defined in the XML Schema specification.
setCreationTime in interface CommonBaseEventnewCreationTime - the new value of the 'Creation Time' attribute.CommonBaseEvent.isSetCreationTime(),
CommonBaseEvent.unsetCreationTime(),
CommonBaseEvent.getCreationTime()public java.lang.String getCreationTime()
CommonBaseEventReturns the value of the 'Creation Time' attribute.
getCreationTime in interface CommonBaseEventCommonBaseEvent.isSetCreationTime(),
CommonBaseEvent.unsetCreationTime(),
CommonBaseEvent.setCreationTime(String)public void setCreationTimeAsLong(long inDateTime)
dateTime 'Creation Time' attribute
as a long (milliseconds) time stamp.
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.
setCreationTimeAsLong in interface CommonBaseEventinDateTime - The long (milliseconds) time stamp to be converted to the XSD dateTime 'Creation Time' attribute.CommonBaseEvent.setCreationTimeAsLong(long),
EventHelpers.dateToLong(String)public long getCreationTimeAsLong()
dateTime 'Creation Time' 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.
getCreationTimeAsLong in interface CommonBaseEventdateTime 'Creation Time' attribute.CommonBaseEvent.getCreationTimeAsLong(),
EventHelpers.dateToLong(String)public void setElapsedTime(long newElapsedTime)
CommonBaseEventElapsed Time'
attribute.
This is the time interval or the elapsed time during which the number of
identical events occurred (as specified by the repeatCount property).
This property is expressed in microseconds. If no value (or zero) is
specified for repeatCount, then this is an optional property.
However, if repeatCount is specified (it has a non-zero value), then
elapsedTime is required. The default value is 0, which is a
valid value for this property. Use the '
isSetElapsedTime()'
to distinguish the default value from a value that has been set to 0.
setElapsedTime in interface CommonBaseEventnewElapsedTime - the new value of the 'Elapsed Time' attribute.CommonBaseEvent.isSetElapsedTime(),
CommonBaseEvent.unsetElapsedTime(),
CommonBaseEvent.getElapsedTime()public long getElapsedTime()
CommonBaseEventReturns the value of the 'Elapsed Time' attribute.
This is the time interval or the elapsed time for the number of occurrences of a given event type that is specified by the repeatCount property. This value indicates the duration of the time within which the repeated events were observed. This is an OPTIONAL property. However, if repeatCount is specified you MUST specify a value for elapsedTime. The default value is 0, which is a valid value for this property. For this reason the 'isSetElapsedTime()'
method should always be called before calling this method. This allows
the user to distinguish the default value from a value that has been set
to 0.
getElapsedTime in interface CommonBaseEventCommonBaseEvent.isSetElapsedTime(),
CommonBaseEvent.unsetElapsedTime(),
CommonBaseEvent.setElapsedTime(long)public java.util.List getExtendedDataElements()
CommonBaseEventExtendedDataElement.
An array of product specific extensions that allows any other attributes not defined by the CommonBaseEvent. Information placed here is assumed to be product specific data; its interpretation is not specified. This is an optional property.
getExtendedDataElements in interface CommonBaseEventpublic java.util.List getExtendedDataElements(java.lang.String name)
CommonBaseEvent
Returns a named ExtendedDataElement from the list of
ExtendedDataElement objects.
getExtendedDataElements in interface CommonBaseEventname - the name of the ExtendedDataElement
ExtendedDataElement objects.CommonBaseEvent.getExtendedDataElements(String)public void setExtensionName(java.lang.String newExtensionName)
CommonBaseEventExtension Name'
attribute.
The name of an event class (or element in XML) that this event represents (for example, CommonBaseEvent). The name indicates any additional elements that are expected to be present within the event.
This is an optional property. If the value specified is null,
then the value is assumed to be CommonBaseEvent. The
string length for extensionName must not exceed 64 characters.
setExtensionName in interface CommonBaseEventnewExtensionName - the new value of the 'Extension Name' attribute.CommonBaseEvent.getExtensionName()public java.lang.String getExtensionName()
CommonBaseEventReturns the value of the 'Extension Name' attribute.
getExtensionName in interface CommonBaseEventCommonBaseEvent.setExtensionName(String)public void setGlobalInstanceId(java.lang.String newGlobalInstanceId)
CommonBaseEventGlobal Instance ID'
attribute.
The primary identifier for the event. This property must be globally unique and may be used as the primary key for the event.
This is an optional property. However, once this value is set it must never be changed. The recommended value is either a 128 bit or 256 bit Globally Unique ID and must start with an alphabetic character (meaning, a-z and A-Z).
setGlobalInstanceId in interface CommonBaseEventnewGlobalInstanceId - the new value of the 'Global Instance ID'
attribute.CommonBaseEvent.getGlobalInstanceId()public java.lang.String getGlobalInstanceId()
CommonBaseEventReturns the value of the 'Global Instance ID' attribute.
getGlobalInstanceId in interface CommonBaseEventCommonBaseEvent.setGlobalInstanceId(String)public void setLocalInstanceId(java.lang.String newLocalInstanceId)
CommonBaseEventLocal Instance ID'
attribute.
A source supplied event identifier. There is no guarantee that this value is globally unique.
This is an optional property. The string length for localInstanceId must not exceed 128 characters.
setLocalInstanceId in interface CommonBaseEventnewLocalInstanceId - the new value of the 'Local Instance ID'
attribute.CommonBaseEvent.getLocalInstanceId()public java.lang.String getLocalInstanceId()
CommonBaseEvent
getLocalInstanceId in interface CommonBaseEventCommonBaseEvent.setLocalInstanceId(String)public void setMsg(java.lang.String newMsg)
CommonBaseEventMsg'
attribute.
The text accompanying the event. This is typically the resolved message string in human readable format rendered for a specific locale.
This is and optional property. The string length for msg must not exceed 1024 characters.
setMsg in interface CommonBaseEventnewMsg - the new value of the 'Msg' attribute.CommonBaseEvent.getMsg()public java.lang.String getMsg()
CommonBaseEventReturns the value of the 'Msg' attribute.
getMsg in interface CommonBaseEventCommonBaseEvent.setMsg(String)public void setMsgDataElement(MsgDataElement newMsgDataElement)
CommonBaseEventMsg Data Element'
containment reference.
Identification of the message that this event holds. See the MsgDataElement definition. This is an optional property.
setMsgDataElement in interface CommonBaseEventnewMsgDataElement - the new value of the 'Msg Data Element'
containment reference.CommonBaseEvent.getMsgDataElement()
public MsgDataElement setMsgDataElement(java.lang.String msgCatalog,
java.lang.String msgCatalogId,
MsgCatalogToken[] tokens,
java.lang.String msgCatalogType,
java.lang.String msgId,
java.lang.String msgIdType,
java.lang.String msgCatalogLocale)
CommonBaseEventMsgDataElement to this object.
It creates a MsgDataElement object and sets it in the
respective field of this object.
setMsgDataElement in interface CommonBaseEventmsgCatalog - the message catalog for this MsgDataElementmsgCatalogId - the message catalog ID for this MsgDataElementtokens - the message catalog tokens for this
MsgDataElementmsgCatalogType - the message catalog type for this MsgDataElementmsgId - the message ID for this MsgDataElementmsgIdType - the message ID type for this MsgDataElementmsgCatalogLocale - the locale for this MsgDataElement
CommonBaseEvent.setMsgDataElement(String,
String, MsgCatalogToken[], String, String, String, String)
public MsgDataElement setMsgDataElement(java.lang.String msgCatalog,
java.lang.String msgCatalogId,
java.lang.String[] tokens,
java.lang.String msgCatalogType,
java.lang.String msgId,
java.lang.String msgIdType,
java.lang.String msgCatalogLocale)
CommonBaseEventMsgDataElement to this object.
It creates a MsgDataElement object and sets it in the
respective field of this object.
setMsgDataElement in interface CommonBaseEventmsgCatalog - the message catalog for this MsgDataElementmsgCatalogId - the message catalog ID for this MsgDataElementtokens - the message catalog tokens for this
MsgDataElementmsgCatalogType - the message catalog type for this MsgDataElementmsgId - the message ID for this MsgDataElementmsgIdType - the message ID type for this MsgDataElementmsgCatalogLocale - the locale for this MsgDataElement
CommonBaseEvent.setMsgDataElement(String,
String, String[], String, String, String, String)public MsgDataElement getMsgDataElement()
CommonBaseEventReturns the value of the 'Msg Data Element' containment reference.
getMsgDataElement in interface CommonBaseEventCommonBaseEvent.setMsgDataElement(MsgDataElement)public void setPriority(short newPriority)
CommonBaseEvent
Sets the value of the '
Priority'
attribute.
Defines the importance of the event. The predefined priorities are:
isSetPriority()'
to distinguish the default value from a value that has been set to 0.
setPriority in interface CommonBaseEventnewPriority - the new value of the 'Priority' attribute.CommonBaseEvent.isSetPriority(),
CommonBaseEvent.unsetPriority(),
CommonBaseEvent.getPriority()public short getPriority()
CommonBaseEventReturns the value of the 'Priority' attribute.
The default value is 0, which is a valid value for this property. For this reason the 'isSetPriority()'
method should always be called before calling this method. This allows
the user to distinguish the default value from a value that has been set
to 0.
getPriority in interface CommonBaseEventCommonBaseEvent.isSetPriority(),
CommonBaseEvent.unsetPriority(),
CommonBaseEvent.setPriority(short)public void setRepeatCount(short newRepeatCount)
CommonBaseEventRepeat Count'
attribute.
The number of occurrences of an identical event within a specific time interval.
This is an optional property. A value of 0 or no value is
indicative of no repeat of the event detected. The default value is 0,
which is a valid value for this property. Use the '
isSetRepeatCount()'
to distinguish the default value from a value that has been set to 0.
setRepeatCount in interface CommonBaseEventnewRepeatCount - the new value of the 'Repeat Count' attribute.CommonBaseEvent.isSetRepeatCount(),
CommonBaseEvent.unsetRepeatCount(),
CommonBaseEvent.getRepeatCount()public short getRepeatCount()
CommonBaseEventReturns the value of the 'Repeat Count' attribute.
The number of occurrences of a given event for a specific time interval. This is an OPTIONAL property. A value of 0 or no value is indicative of no repeat of the event detected. The default value is 0, which is a valid value for this property. For this reason the 'isSetRepeatCount()'
method should always be called before calling this method. This allows
the user to distinguish the default value from a value that has been set
to 0.
getRepeatCount in interface CommonBaseEventCommonBaseEvent.isSetRepeatCount(),
CommonBaseEvent.unsetRepeatCount(),
CommonBaseEvent.setRepeatCount(short)public void setReporterComponentId(ComponentIdentification newReporterComponentId)
CommonBaseEventReporter Component ID'
containment reference.
Identification of the component that is the reporter of the event or the situation.
It is a required property if the reporting component is different than the source component. Otherwise this field must not be present.
setReporterComponentId in interface CommonBaseEventnewReporterComponentId - the new value of the 'Reporter Component ID'
containment reference.CommonBaseEvent.getReporterComponentId()
public void setReporterComponentId(java.lang.String application,
java.lang.String component,
java.lang.String subComponent,
java.lang.String componentType,
java.lang.String componentIdType,
java.lang.String executionEnvironment,
java.lang.String instanceId,
java.lang.String location,
java.lang.String locationType,
java.lang.String processId,
java.lang.String threadId)
CommonBaseEventHelper method for creating and setting the reporter component ID for this object.
It creates a ComponentIdentification object and sets it in
the respective field of this object.
setReporterComponentId in interface CommonBaseEventapplication - the name of the application for the reporting componentcomponent - the name of the component for the reporting componentcomponentType - the component type for the reporting componentcomponentIdType - the component ID type for the reporting componentexecutionEnvironment - the name of the execution environment for the reporting
componentinstanceId - the instance ID for the reporting componentlocation - the location for the reporting componentlocationType - the location type for the reporting componentprocessId - the process ID for the reporting componentsubComponent - the name of the subcomponent for the reporting componentthreadId - the thread ID for the reporting componentCommonBaseEvent.setReporterComponentId(String,
String, String, String, String, String, String, String, String,
String,String)
public void setReporterComponentId(java.lang.String application,
java.lang.String component,
java.lang.String subComponent,
java.lang.String componentType,
java.lang.String componentIdType,
java.lang.String location,
java.lang.String locationType)
CommonBaseEvent
It creates a ComponentIdentification object and sets it in
the respective field of this object.
setReporterComponentId in interface CommonBaseEventapplication - the name of the application for the source componentcomponent - the name of the component for the source componentsubComponent - the name of the subcomponent for the source componentcomponentType - the component type for the source componentcomponentIdType - the component ID type for the source componentlocation - the location for the source componentlocationType - the location type for the source componentCommonBaseEvent.setReporterComponentId(String,
String, String, String, String, String, String)public ComponentIdentification getReporterComponentId()
CommonBaseEventReturns the value of the 'Reporter Component ID' containment reference.
getReporterComponentId in interface CommonBaseEventCommonBaseEvent.setReporterComponentId(ComponentIdentification)public void setSequenceNumber(long newSequenceNumber)
CommonBaseEventSequence Number'
attribute.
A source-defined number that allows for multiple messages to be sent and processed in a logical order that is different than the order in which they arrived at the consumer location (for example, an event server or management tools). The sequence number helps consumers to sort arrived messages that may arrive out-of-order. This is with respect to the creation time and to the particular reporter of the messages.
This is an optional property. The default value is 0, which is
a valid value for this property. Use the '
isSetSequenceNumber()'
to distinguish the default value from a value that has been set to 0.
setSequenceNumber in interface CommonBaseEventnewSequenceNumber - the new value of the 'Sequence Number' attribute.CommonBaseEvent.isSetSequenceNumber(),
CommonBaseEvent.unsetSequenceNumber(),
CommonBaseEvent.getSequenceNumber()public long getSequenceNumber()
CommonBaseEventReturns the value of the 'Sequence Number' attribute.
A source defined number that allows for multiple messages to be sent and processed in logical order different from the order in which they arrived at consumer location (e.g., an event server or management tools). The sequence number helps consumers to sort arrived messages. This is with respect to the creation time and to the particular reporter of the messages. This is an OPTIONAL property. The default value is 0, which is a valid value for this property. For this reason the 'isSequenceNumber()'
method should always be called before calling this method. This allows
the user to distinguish the default value from a value that has been set
to 0.
getSequenceNumber in interface CommonBaseEventCommonBaseEvent.isSetSequenceNumber(),
CommonBaseEvent.unsetSequenceNumber(),
CommonBaseEvent.setSequenceNumber(long)public boolean isSetCreationTime()
CommonBaseEvent
Returns whether the value of the '
Creation Time'
attribute is set.
isSetCreationTime in interface CommonBaseEventCommonBaseEvent.unsetCreationTime(),
CommonBaseEvent.getCreationTime(),
CommonBaseEvent.setCreationTime(String)public boolean isSetElapsedTime()
CommonBaseEvent
Returns whether the value of the '
Elapsed Time'
attribute is set.
isSetElapsedTime in interface CommonBaseEventCommonBaseEvent.unsetElapsedTime(),
CommonBaseEvent.getElapsedTime(),
CommonBaseEvent.setElapsedTime(long)public boolean isSetPriority()
CommonBaseEventPriority'
attribute is set.
isSetPriority in interface CommonBaseEventCommonBaseEvent.unsetPriority(),
CommonBaseEvent.getPriority(),
CommonBaseEvent.setPriority(short)public boolean isSetRepeatCount()
CommonBaseEvent
Returns whether the value of the '
Repeat Count'
attribute is set.
isSetRepeatCount in interface CommonBaseEventCommonBaseEvent.unsetRepeatCount(),
CommonBaseEvent.getRepeatCount(),
CommonBaseEvent.setRepeatCount(short)public boolean isSetSequenceNumber()
CommonBaseEvent
Returns whether the value of the '
Sequence Number'
attribute is set.
isSetSequenceNumber in interface CommonBaseEventCommonBaseEvent.unsetSequenceNumber(),
CommonBaseEvent.getSequenceNumber(),
CommonBaseEvent.setSequenceNumber(long)public boolean isSetSeverity()
CommonBaseEvent
Returns whether the value of the '
Severity'
attribute is set.
isSetSeverity in interface CommonBaseEventCommonBaseEvent.unsetSeverity(),
CommonBaseEvent.getSeverity(),
CommonBaseEvent.setSeverity(short)public void setSeverity(short newSeverity)
CommonBaseEventSeverity'
attribute.
The perceived severity of the status the event is describing with respect to the application that reports the event. The predefined severity levels, in order of increasing severity, are as follows:
isSetSeverity()'
to distinguish the default value from a value that has been set to 0.
setSeverity in interface CommonBaseEventnewSeverity - the new value of the 'Severity' attribute.CommonBaseEvent.isSetSeverity(),
CommonBaseEvent.unsetSeverity(),
CommonBaseEvent.getSeverity()public short getSeverity()
CommonBaseEventReturns the value of the 'Severity' attribute.
The values are 0 to 70. The reserved values start at 0 for Unknown and increase by increments of 10 to 60 for Fatal. Other severities MAY be added but MUST not exceed 70. This is an OPTIONAL property. The default value is 0, which is a valid value for this property. For this reason the 'isSetSeverity()'
method should always be called before calling this method. This allows
the user to distinguish the default value from a value that has been set
to 0.
getSeverity in interface CommonBaseEventCommonBaseEvent.isSetSeverity(),
CommonBaseEvent.unsetSeverity(),
CommonBaseEvent.setSeverity(short)public void setSituation(Situation newSituation)
CommonBaseEventSituation'
containment reference.
The situation specifies the type of the situation that caused the event to be reported. See the Situation definition for details. This is a required property.
setSituation in interface CommonBaseEventnewSituation - the new value of the 'Situation' containment
reference.CommonBaseEvent.getSituation()public Situation getSituation()
CommonBaseEvent
getSituation in interface CommonBaseEventCommonBaseEvent.setSituation(Situation)public void setSourceComponentId(ComponentIdentification newSourceComponentId)
CommonBaseEventSource Component ID'
containment reference.
Identification of the component that is affected or was impacted by the event or the situation.
This is a required property for the component that is affected by the situation.
setSourceComponentId in interface CommonBaseEventnewSourceComponentId - the new value of the 'Source Component ID'
containment reference.CommonBaseEvent.getSourceComponentId()
public void setSourceComponentId(java.lang.String application,
java.lang.String component,
java.lang.String subComponent,
java.lang.String componentType,
java.lang.String componentIdType,
java.lang.String executionEnvironment,
java.lang.String instanceId,
java.lang.String location,
java.lang.String locationType,
java.lang.String processId,
java.lang.String threadId)
CommonBaseEvent
It creates a ComponentIdentification object and sets it in
the respective field of this object.
setSourceComponentId in interface CommonBaseEventapplication - the name of the application for the source componentcomponent - the name of the component for the source componentcomponentType - the component type for the source componentcomponentIdType - the component ID type for the source componentexecutionEnvironment - the name of the execution environment for the source componentinstanceId - the instance ID for the source componentlocation - the location for the source componentlocationType - the location type for the source componentprocessId - the process ID for the source componentsubComponent - the name of the subcomponent for the source componentthreadId - the thread ID for the source componentCommonBaseEvent.setSourceComponentId(String,
String, String, String, String, String, String, String, String,
String,String)
public void setSourceComponentId(java.lang.String application,
java.lang.String component,
java.lang.String subComponent,
java.lang.String componentType,
java.lang.String componentIdType,
java.lang.String location,
java.lang.String locationType)
CommonBaseEvent
It creates a ComponentIdentification object and sets it in
the respective field of this object.
setSourceComponentId in interface CommonBaseEventapplication - the name of the application for the source componentcomponent - the name of the component for the source componentsubComponent - the name of the subcomponent for the source componentcomponentType - the component type for the source componentcomponentIdType - the component ID type for the source componentlocation - the location for the source componentlocationType - the location type for the source componentCommonBaseEvent.setSourceComponentId(String,
String, String, String, String, String,String)public ComponentIdentification getSourceComponentId()
CommonBaseEventReturns the value of the 'Source Component ID' containment reference.
getSourceComponentId in interface CommonBaseEventCommonBaseEvent.setSourceComponentId(ComponentIdentification)public void setVersion(java.lang.String newVersion)
CommonBaseEventVersion'
attribute.
A string identifying the version of this event.
This field is optional in that if it isn't specified, the
version of the CBE is said to be 1.0. Otherwise this field must
be filled in and must be consistent with the version specified
in the schema header. The string length for version must not
exceed 16 characters. When an application is creating an event following
this version of the specification this field should be set to
1.0.1
setVersion in interface CommonBaseEventnewVersion - the new value of the 'Version' attribute.CommonBaseEvent.getVersion()public java.lang.String getVersion()
CommonBaseEvent
Returns the value of the 'Version' attribute. The
default value is "1.0.1".
getVersion in interface CommonBaseEventCommonBaseEvent.setVersion(String)public void addAny(java.lang.String any)
CommonBaseEventIt creates an object and sets it in the respective field of this object.
addAny in interface CommonBaseEventany - A string representing an XML element.CommonBaseEvent.addAny(String)public void clearAny()
clearAny in interface CommonBaseEvent
public AssociatedEvent addAssociatedEvent(java.lang.String associationEngineName,
java.lang.String associationEngineType,
java.lang.String associationEngineId,
java.lang.String[] resolvedEvents)
CommonBaseEvent
It creates an AssociatedEvent object and sets it in the
respective field of this object.
addAssociatedEvent in interface CommonBaseEventassociationEngineName - name for the association engineassociationEngineType - type for the association engineassociationEngineId - identifier for the association engine.resolvedEvents - an array of globalInstanceIds that are associated to this
event
CommonBaseEvent.addAssociatedEvent(String,
String, String, String[])
public ContextDataElement addContextDataElementWithValue(java.lang.String contextType,
java.lang.String contextName,
java.lang.String contextValue)
CommonBaseEvent
It creates a ContextDataElement object and sets it in the
respective field of this object.
addContextDataElementWithValue in interface CommonBaseEventcontextType - type of the contextcontextName - name of the contextcontextValue - contextValue of the context
CommonBaseEvent.addContextDataElementWithValue(String,
String, String)
public ContextDataElement addContextDataElementWithId(java.lang.String contextType,
java.lang.String contextName,
java.lang.String contextId)
CommonBaseEvent
It creates a ContextDataElement object and sets it in the
respective field of this object.
addContextDataElementWithId in interface CommonBaseEventcontextType - type of the contextcontextName - name of the contextcontextId - contextId of the context
CommonBaseEvent.addContextDataElementWithId(String,
String,String)
public ExtendedDataElement addExtendedDataElement(java.lang.String name,
int type,
java.lang.String value)
CommonBaseEventExtendedDataElement 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.
addExtendedDataElement in interface CommonBaseEventname - the name for the new extended data element.type - 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.
CommonBaseEvent.addExtendedDataElement(String,
int, String)
public ExtendedDataElement addExtendedDataElement(java.lang.String name,
int type,
java.lang.String[] values)
CommonBaseEventExtendedDataElement 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.
addExtendedDataElement in interface CommonBaseEventname - the name for the new extended data element.type - represents the data type for the new extended data element.
Refer to the
ExtendedDataElement.TYPE_<type>_VALUE
constants for valid types.values - the array of values for the new extended data element.
CommonBaseEvent.addExtendedDataElement(String,
int, String[])
public ExtendedDataElement addExtendedDataElement(java.lang.String name,
java.lang.String value)
CommonBaseEventExtendedDataElement 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.
addExtendedDataElement in interface CommonBaseEventname - the name for the new extended data element.value - the value for the new extended data element.
CommonBaseEvent.addExtendedDataElement(String,
String)
public ExtendedDataElement addExtendedDataElement(java.lang.String name,
java.lang.String[] values)
CommonBaseEventExtendedDataElement 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.
addExtendedDataElement in interface CommonBaseEventname - the name for the new extended data element.values - the array of String values for the new extended
data element.
CommonBaseEvent.addExtendedDataElement(String,
String[])public ExtendedDataElement addExtendedDataElement(ExtendedDataElement extendedDataElement)
ExtendedDataElement to this object.
addExtendedDataElement in interface CommonBaseEventextendedDataElement - the new extended data element.
getExtendedDataElements()public ExtendedDataElement addExtendedDataElement(java.lang.String name)
CommonBaseEventExtendedDataElement to this object.
It creates an ExtendedDataElement object without any
values adds it to the list of extended data elements for this object.
addExtendedDataElement in interface CommonBaseEventname - the name for the new extended data element.
CommonBaseEvent.addExtendedDataElement(String)
public ExtendedDataElement addExtendedDataElementWithByteArrayValue(java.lang.String name,
byte[] values)
CommonBaseEventExtendedDataElement 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.
addExtendedDataElementWithByteArrayValue in interface CommonBaseEventname - the name for the new extended data element.values - the array of byte values for the new extended
data element.
CommonBaseEvent.addExtendedDataElementWithByteArrayValue(String,
byte[])
public ExtendedDataElement addExtendedDataElementWithByteValue(java.lang.String name,
byte value)
CommonBaseEventExtendedDataElement 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.
addExtendedDataElementWithByteValue in interface CommonBaseEventname - the name for the new extended data element.value - the value for the new extended data element.
CommonBaseEvent.addExtendedDataElementWithByteValue(String,
byte)public ExtendedDataElement addExtendedDataElementWithNoValue(java.lang.String name)
CommonBaseEventExtendedDataElement to this object.
It creates an ExtendedDataElement object containing no
value and adds it to the list of extended data elements for this object.
addExtendedDataElementWithNoValue in interface CommonBaseEventname - the name for the new extended data element.
CommonBaseEvent.addExtendedDataElementWithNoValue(String)
public ExtendedDataElement addExtendedDataElementWithBooleanArrayValue(java.lang.String name,
boolean[] values)
CommonBaseEvent
addExtendedDataElementWithBooleanArrayValue in interface CommonBaseEventCommonBaseEvent.addExtendedDataElementWithBooleanArrayValue(java.lang.String,
boolean[])
public ExtendedDataElement addExtendedDataElementWithBooleanValue(java.lang.String name,
boolean value)
CommonBaseEvent
addExtendedDataElementWithBooleanValue in interface CommonBaseEventCommonBaseEvent.addExtendedDataElementWithBooleanValue(java.lang.String,
boolean)
public ExtendedDataElement addExtendedDataElementWithDateArrayValue(java.lang.String name,
java.lang.String[] values)
CommonBaseEventExtendedDataElement 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 .
addExtendedDataElementWithDateArrayValue in interface CommonBaseEventname - the name for the new extended data element.values - the array of String instances representing the
date time values for the new extended data element.
CommonBaseEvent.addExtendedDataElementWithDateArrayValue(String,
String[])
public ExtendedDataElement addExtendedDataElementWithDateAsLongValue(java.lang.String name,
long value)
CommonBaseEventExtendedDataElement 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.
addExtendedDataElementWithDateAsLongValue in interface CommonBaseEventname - 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.
CommonBaseEvent.addExtendedDataElementWithDateAsLongValue(String,
long)
public ExtendedDataElement addExtendedDataElementWithDateValue(java.lang.String name,
java.lang.String value)
CommonBaseEventExtendedDataElement 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 .
addExtendedDataElementWithDateValue in interface CommonBaseEventname - the name for the new extended data element.value - representation of the date time value for the new extended
data element.
CommonBaseEvent.addExtendedDataElementWithDateValue(String,
String)
public ExtendedDataElement addExtendedDataElementWithDatesAsLongValue(java.lang.String name,
long[] values)
CommonBaseEventExtendedDataElement 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.
addExtendedDataElementWithDatesAsLongValue in interface CommonBaseEventname - the name for the new extended data element.values - the array of long values for the new extended
data element. Each value corresponds to the number of
milliseconds since January 1, 1970 UTC.
CommonBaseEvent.addExtendedDataElementWithDatesAsLongValue(String,
long[])
public ExtendedDataElement addExtendedDataElementWithDoubleArrayValue(java.lang.String name,
double[] values)
CommonBaseEventExtendedDataElement 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.
addExtendedDataElementWithDoubleArrayValue in interface CommonBaseEventname - the name for the new extended data element.values - the array of double values for the new extended
data element.
CommonBaseEvent.addExtendedDataElementWithDoubleArrayValue(String,
double[])
public ExtendedDataElement addExtendedDataElementWithDoubleValue(java.lang.String name,
double value)
CommonBaseEventExtendedDataElement 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.
addExtendedDataElementWithDoubleValue in interface CommonBaseEventname - the name for the new extended data element.value - the double value that the new
ExtendedDataElement will contain.
CommonBaseEvent.addExtendedDataElementWithDoubleValue(String,
double)
public ExtendedDataElement addExtendedDataElementWithFloatArrayValue(java.lang.String name,
float[] values)
CommonBaseEventExtendedDataElement 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.
addExtendedDataElementWithFloatArrayValue in interface CommonBaseEventname - the name for the new extended data element.values - 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:
CommonBaseEvent.addExtendedDataElementWithFloatArrayValue(String,
float[])
public ExtendedDataElement addExtendedDataElementWithFloatValue(java.lang.String name,
float value)
CommonBaseEventExtendedDataElement 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.
addExtendedDataElementWithFloatValue in interface CommonBaseEventname - the name for the new extended data element.value - the value for the new extended data element.
CommonBaseEvent.addExtendedDataElementWithFloatValue(String,
float)
public ExtendedDataElement addExtendedDataElementWithIntArrayValue(java.lang.String name,
int[] values)
CommonBaseEventExtendedDataElement 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.
addExtendedDataElementWithIntArrayValue in interface CommonBaseEventname - the name for the new extended data element.values - the array of int values for the new extended
data element.
CommonBaseEvent.addExtendedDataElementWithIntArrayValue(String,
int[])
public ExtendedDataElement addExtendedDataElementWithIntValue(java.lang.String name,
int value)
CommonBaseEventExtendedDataElement 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.
addExtendedDataElementWithIntValue in interface CommonBaseEventname - the name for the new extended data element.value - the value for the new extended data element.
CommonBaseEvent.addExtendedDataElementWithIntValue(String,
int)
public ExtendedDataElement addExtendedDataElementWithLongArrayValue(java.lang.String name,
long[] values)
CommonBaseEventExtendedDataElement 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.
addExtendedDataElementWithLongArrayValue in interface CommonBaseEventname - the name for the new extended data element.values - the array of long values for the new extended
data element.
CommonBaseEvent.addExtendedDataElementWithLongArrayValue(String,
long[])
public ExtendedDataElement addExtendedDataElementWithLongValue(java.lang.String name,
long value)
CommonBaseEventExtendedDataElement 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.
addExtendedDataElementWithLongValue in interface CommonBaseEventname - the name for the new extended data element.value - the value for the new extended data element.
CommonBaseEvent.addExtendedDataElementWithLongValue(String,
long)
public ExtendedDataElement addExtendedDataElementWithShortArrayValue(java.lang.String name,
short[] values)
CommonBaseEventExtendedDataElement 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.
addExtendedDataElementWithShortArrayValue in interface CommonBaseEventname - the name for the new extended data element.values - the array of short values for the new extended
data element.
CommonBaseEvent.addExtendedDataElementWithShortArrayValue(String,
short[])
public ExtendedDataElement addExtendedDataElementWithShortValue(java.lang.String name,
short value)
CommonBaseEventExtendedDataElement 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.
addExtendedDataElementWithShortValue in interface CommonBaseEventname - the name for the new extended data element.value - the value for the new extended data element.
CommonBaseEvent.addExtendedDataElementWithShortValue(String,
short)
public ExtendedDataElement addExtendedDataElementWithHexValue(java.lang.String name,
byte[] hexValue)
CommonBaseEventExtendedDataElement to this object.
It creates an ExtendedDataElement object with the hexValue
passed as parameter and adds it to the list of extended data elements for
this object.
addExtendedDataElementWithHexValue in interface CommonBaseEventname - the name for the new extended data element.hexValue - the array of bytes for the hexValue field of
the new extended data element.
CommonBaseEvent.getExtendedDataElements()
public ExtendedDataElement addExtendedDataElementWithHexValue(java.lang.String name,
java.lang.String hexValue)
CommonBaseEventExtendedDataElement to this object.
It creates an ExtendedDataElement object with the hexValue
passed as parameter and adds it to the list of extended data elements for
this object.
addExtendedDataElementWithHexValue in interface CommonBaseEventname - the name for the new extended data element.hexValue - the hexadecimal string for the hexValue field
of the new extended data element.
CommonBaseEvent.getExtendedDataElements()public void clearExtendedDataElements()
clearExtendedDataElements in interface CommonBaseEventpublic void removeExtendedDataElements(java.lang.String name)
removeExtendedDataElements in interface CommonBaseEventname - the name of the element to be removedpublic ContextDataElement addContextDataElement(ContextDataElement contextDataElement)
ContextDataElement to this object.
addContextDataElement in interface CommonBaseEventcontextDataElement - the new context data element.
getContextDataElements()public void clearContextDataElements()
clearContextDataElements in interface CommonBaseEventpublic void removeContextDataElements(java.lang.String name)
removeContextDataElements in interface CommonBaseEventname - the name of the element to be removedpublic AssociatedEvent addAssociatedEvent(AssociatedEvent associatedEvent)
AssociatedEvent to this object.
addAssociatedEvent in interface CommonBaseEventassociatedEvent - the new context data element.
getAssociatedEvents()public void clearAssociatedEvents()
clearAssociatedEvents in interface CommonBaseEvent
public void complete()
throws CompletionException
CommonBaseEvent
Invocations of this method cause the flag denoting if
ContentHandler associated with this event instance has
been previously been invoked to be true.
complete in interface CommonBaseEventCompletionException - if the event content cannot be completed for whatever reason.CommonBaseEvent.complete()public boolean isComplete()
CommonBaseEventContentHandler associated with this
event instance, if any, has been previously been invoked.
isComplete in interface CommonBaseEventContentHandler has been previously
been invoked, otherwise false.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 void unsetCreationTime()
CommonBaseEvent
Sets the value of the '
Creation Time'
attribute to null and turns off the isSet
flag.
unsetCreationTime in interface CommonBaseEventCommonBaseEvent.isSetCreationTime(),
CommonBaseEvent.getCreationTime(),
CommonBaseEvent.setCreationTime(String)public void unsetElapsedTime()
CommonBaseEventElapsed Time'
attribute to 0 and turns off the isSet
flag.
unsetElapsedTime in interface CommonBaseEventCommonBaseEvent.isSetElapsedTime(),
CommonBaseEvent.getElapsedTime(),
CommonBaseEvent.setElapsedTime(long)public void unsetPriority()
CommonBaseEvent
Sets the value of the '
Priority'
attribute to 0 and turns off the isSet
flag.
unsetPriority in interface CommonBaseEventCommonBaseEvent.isSetPriority(),
CommonBaseEvent.getPriority(),
CommonBaseEvent.setPriority(short)public void unsetRepeatCount()
CommonBaseEventRepeat Count'
attribute to 0 and turns off the isSet
flag.
unsetRepeatCount in interface CommonBaseEventCommonBaseEvent.isSetRepeatCount(),
CommonBaseEvent.getRepeatCount(),
CommonBaseEvent.setRepeatCount(short)public void unsetSequenceNumber()
CommonBaseEventSequence Number'
attribute to 0 and turns off the isSet
flag.
unsetSequenceNumber in interface CommonBaseEventCommonBaseEvent.isSetSequenceNumber(),
CommonBaseEvent.getSequenceNumber(),
CommonBaseEvent.setSequenceNumber(long)public void unsetSeverity()
CommonBaseEvent
Sets the value of the '
Severity'
attribute to 0 and turns off the isSet
flag.
unsetSeverity in interface CommonBaseEventCommonBaseEvent.isSetSeverity(),
CommonBaseEvent.getSeverity(),
CommonBaseEvent.setSeverity(short)
public void validate()
throws ValidationException
validate in interface CommonBaseEventValidationException - If the event instance does not conform to the Common Base Event specification.public java.lang.String externalizeCanonicalXmlString()
IExternalizableToXmljava.lang.Object to an XML fragment.
externalizeCanonicalXmlString in interface IExternalizableToXmljava.lang.Object.IExternalizableToXml.externalizeCanonicalXmlString()public java.lang.String externalizeCanonicalXmlDocString()
IExternalizableToXmljava.lang.Object to an XML document.
externalizeCanonicalXmlDocString in interface IExternalizableToXmljava.lang.Object.IExternalizableToXml.externalizeCanonicalXmlDocString()public void internalizeCanonicalXmlString(java.lang.String value)
IInternalizableFromXmljava.lang.Object.
internalizeCanonicalXmlString in interface IInternalizableFromXmlvalue - The XML fragment to be de-serialized.IInternalizableFromXml.internalizeCanonicalXmlString(java.lang.String)public void internalizeCanonicalXmlDocString(java.lang.String value)
IInternalizableFromXmljava.lang.Object.
internalizeCanonicalXmlDocString in interface IInternalizableFromXmlvalue - The XML document to be de-serialized.IInternalizableFromXml.internalizeCanonicalXmlDocString(java.lang.String)
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 CommonBaseEvent
|
TPTP 4.4.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||