public class AddExtendedDataElement extends java.lang.Object implements EventChangeRequest
The parent location path should be of the form CommonBaseEvent/extendedDataElement[@name='myElement']
If the add is for a top level element then the parent location path should be just CommonBaseEvent
ADD_CONTEXT_DATA_ELEMENT_CHANGE_REQUEST, ADD_EXTENDED_DATA_ELEMENT_CHANGE_REQUEST, CBE_XPATH_LOCATION_PREFIX, CHANGE_REQUEST_STRINGS, CREATE_EMPTY_EXTENDED_DATA_ELEMENT_CHANGE_REQUEST, UPDATE_ATTRIBUTE_CHANGE_REQUEST, UPDATE_EVENT_ASSOCIATION_CHANGE_REQUEST, UPDATE_EXTENDED_DATA_ELEMENT_CHANGE_REQUEST
Constructor and Description |
---|
AddExtendedDataElement(java.lang.String globalInstanceId,
java.lang.String parentLocationPath,
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement extendedDataElement)
Creates a new AddExtendedDataElement object.
|
Modifier and Type | Method and Description |
---|---|
int |
getChangeRequestType()
Get the type of change request this object represents.
|
org.eclipse.hyades.logging.events.cbe.ExtendedDataElement |
getExtendedDataElement()
Get the extended data element that this change request is representing.
|
java.lang.String |
getGlobalInstanceId()
Get the global instance ID of the event that this change request is
modifying.
|
java.lang.String |
getParentLocationPath()
Get the parent element XPath location.
|
java.lang.String |
toString() |
public AddExtendedDataElement(java.lang.String globalInstanceId, java.lang.String parentLocationPath, org.eclipse.hyades.logging.events.cbe.ExtendedDataElement extendedDataElement)
globalInstanceId
- The global instance ID of the event whose
attributes will be updated.parentLocationPath
- XPath location of the parent element for the
new extended data element.extendedDataElement
- The extended data element to be added.java.lang.IllegalArgumentException
- If one of the following conditions
occur public int getChangeRequestType()
EventChangeRequest
getChangeRequestType
in interface EventChangeRequest
EventChangeRequest.getChangeRequestType()
public org.eclipse.hyades.logging.events.cbe.ExtendedDataElement getExtendedDataElement()
public java.lang.String getGlobalInstanceId()
EventChangeRequest
getGlobalInstanceId
in interface EventChangeRequest
EventChangeRequest.getGlobalInstanceId()
public java.lang.String getParentLocationPath()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()