public class XOCEventImpl extends java.lang.Object implements XOCEvent
| Constructor and Description |
|---|
XOCEventImpl() |
XOCEventImpl(java.lang.String activity)
(1)input the activity name for the event
(2)automatically create empty attributes, related object list and object model
|
XOCEventImpl(java.lang.String activity,
int orderNum) |
XOCEventImpl(java.lang.String activity,
int orderNum,
java.util.List<XOCObject> relatedObjects,
XOCObjectModel objectModel) |
XOCEventImpl(XID ID,
java.lang.String activity,
int orderNum) |
XOCEventImpl(XID ID,
XAttributeMap attributes)
Creates a new event with the given id and attributed
|
XOCEventImpl(XID ID,
XAttributeMap attributes,
java.lang.String activity,
int orderNum,
java.util.List<XOCObject> relatedObjects,
XOCObjectModel objectModel) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clones this event, i.e.
|
boolean |
equals(java.lang.Object o)
Tests for equality of IDs
|
java.lang.String |
getActivity()
Returns the id of the event
|
XAttributeMap |
getAttributes()
Retrieves the attributes set for this element.
|
MyOriginalCell |
getCorrespondingCell() |
java.util.Set<XExtension> |
getExtensions()
Returns the hashCode of the id
|
XOCObjectModel |
getMinimalObjectModel() |
XOCObjectModel |
getObjectModel() |
XOCObjectModel |
getObjectModelUpdate() |
int |
getOrderNum()
return the index of one event
note that the orderNum of the first event is 1; N+
|
XOCRRelation |
getReferenceRelation(XOCObject object)
Get the reference relation connecting the event and the input object.
|
java.util.List<XOCRRelation> |
getReferenceRelationList()
Get the list of reference relations of the event (e.g., used in the object model graph to refer to the corresponding cell of one reference relation)
|
java.util.List<java.lang.String> |
getRelatedObjectIdList() |
java.util.List<XOCObject> |
getRelatedObjects() |
java.util.List<XOCORelation> |
getRelevantObjectRelationsForOneObject(XOCObject object) |
java.util.List<XOCObject> |
getRelevantObjectsForOneObject(XOCObject object) |
java.util.List<XOCObject> |
getSimplifiedRelatedObjects() |
boolean |
hasAttributes()
Checks for the existence of attributes.
|
boolean |
objectModelContain(XOCObject object) |
boolean |
relatedObjectsContain(XOCObject object) |
void |
setActivity(java.lang.String activity) |
void |
setAttributes(XAttributeMap attributes)
Sets the map of attributes for this element.
|
void |
setCorrespondingCell(MyOriginalCell correspondingCell) |
void |
setMinimalObjectModel(XOCObjectModel minimalObjectModel) |
void |
setObjectModel(XOCObjectModel objectModel) |
void |
setObjectModelUpdate(XOCObjectModel objectModelUpdate) |
void |
setOrderNum(int orderNum) |
void |
setRelatedObjectIdList(java.util.List<java.lang.String> relatedObjectIdList) |
void |
setRelatedObjects(java.util.List<XOCObject> relatedObjects) |
void |
setSimplifiedRelatedObjects(java.util.List<XOCObject> relatedSimplifiedObjects) |
public XOCEventImpl()
public XOCEventImpl(java.lang.String activity)
public XOCEventImpl(java.lang.String activity,
int orderNum)
public XOCEventImpl(XID ID, java.lang.String activity, int orderNum)
public XOCEventImpl(XID ID, XAttributeMap attributes)
id - the id for this eventattributes - Map of attribute for the event.public XOCEventImpl(java.lang.String activity,
int orderNum,
java.util.List<XOCObject> relatedObjects,
XOCObjectModel objectModel)
public XOCEventImpl(XID ID, XAttributeMap attributes, java.lang.String activity, int orderNum, java.util.List<XOCObject> relatedObjects, XOCObjectModel objectModel)
public XAttributeMap getAttributes()
XAttributablegetAttributes in interface XAttributablegetAttributes in interface XOCEventpublic XOCObjectModel getObjectModel()
getObjectModel in interface XOCEventpublic XOCObjectModel getObjectModelUpdate()
getObjectModelUpdate in interface XOCEventpublic XOCObjectModel getMinimalObjectModel()
getMinimalObjectModel in interface XOCEventpublic void setAttributes(XAttributeMap attributes)
XAttributablesetAttributes in interface XAttributablesetAttributes in interface XOCEventattributes - A map of attributes.public void setObjectModel(XOCObjectModel objectModel)
setObjectModel in interface XOCEventpublic void setObjectModelUpdate(XOCObjectModel objectModelUpdate)
setObjectModelUpdate in interface XOCEventpublic void setMinimalObjectModel(XOCObjectModel minimalObjectModel)
setMinimalObjectModel in interface XOCEventpublic boolean hasAttributes()
XAttributableXAttributable.getAttributes() in certain situations.hasAttributes in interface XAttributablepublic java.lang.Object clone()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean relatedObjectsContain(XOCObject object)
relatedObjectsContain in interface XOCEventpublic boolean objectModelContain(XOCObject object)
objectModelContain in interface XOCEventpublic java.util.Set<XExtension> getExtensions()
getExtensions in interface XAttributablepublic java.lang.String getActivity()
XOCEventgetActivity in interface XOCEventpublic java.util.List<XOCObject> getRelatedObjects()
getRelatedObjects in interface XOCEventpublic java.util.List<XOCRRelation> getReferenceRelationList()
getReferenceRelationList in interface XOCEventpublic XOCRRelation getReferenceRelation(XOCObject object)
getReferenceRelation in interface XOCEventobject - public java.util.List<XOCObject> getSimplifiedRelatedObjects()
getSimplifiedRelatedObjects in interface XOCEventpublic java.util.List<java.lang.String> getRelatedObjectIdList()
public int getOrderNum()
getOrderNum in interface XOCEventpublic void setActivity(java.lang.String activity)
setActivity in interface XOCEventpublic void setRelatedObjects(java.util.List<XOCObject> relatedObjects)
setRelatedObjects in interface XOCEventpublic void setSimplifiedRelatedObjects(java.util.List<XOCObject> relatedSimplifiedObjects)
setSimplifiedRelatedObjects in interface XOCEventpublic void setRelatedObjectIdList(java.util.List<java.lang.String> relatedObjectIdList)
public void setOrderNum(int orderNum)
setOrderNum in interface XOCEventpublic MyOriginalCell getCorrespondingCell()
getCorrespondingCell in interface MyOriginalElementpublic void setCorrespondingCell(MyOriginalCell correspondingCell)
setCorrespondingCell in interface MyOriginalElementpublic java.util.List<XOCObject> getRelevantObjectsForOneObject(XOCObject object)
getRelevantObjectsForOneObject in interface XOCEventpublic java.util.List<XOCORelation> getRelevantObjectRelationsForOneObject(XOCObject object)
getRelevantObjectRelationsForOneObject in interface XOCEvent