public class XOCRRelationImpl extends java.lang.Object implements XOCRRelation
| Constructor and Description |
|---|
XOCRRelationImpl(java.lang.String relationType) |
XOCRRelationImpl(java.lang.String relationType,
XOCEvent sourceEvent,
XOCObject targetObject) |
XOCRRelationImpl(XID ID,
XAttributeMap attributes,
java.lang.String relationType,
XOCEvent sourceEvent,
XOCObject targetObject) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clones this event, i.e.
|
boolean |
compareReferenceRelation(XOCRRelation referenceRelation) |
boolean |
equals(java.lang.Object o)
Tests for equality of IDs
|
XAttributeMap |
getAttributes()
Retrieves the attributes set for this element.
|
MyOriginalCell |
getCorrespondingCell() |
java.util.Set<XExtension> |
getExtensions()
Retrieves the extensions used by this element, i.e.
|
XID |
getID()
Returns the id of the event
|
java.lang.String |
getRelationType() |
XOCEvent |
getSourceEvent() |
XOCObject |
getTargetObject() |
boolean |
hasAttributes()
Checks for the existence of attributes.
|
int |
hashCode()
Returns the hashCode of the id
|
void |
setAttributes(XAttributeMap attributes)
Sets the map of attributes for this element.
|
void |
setCorrespondingCell(MyOriginalCell correspondingCell) |
void |
setRelationType(java.lang.String relationType) |
void |
setSourceEvent(XOCEvent sourceEvent) |
void |
setTargetObject(XOCObject targetObject) |
public XOCRRelationImpl(java.lang.String relationType)
public XOCRRelationImpl(java.lang.String relationType,
XOCEvent sourceEvent,
XOCObject targetObject)
public XOCRRelationImpl(XID ID, XAttributeMap attributes, java.lang.String relationType, XOCEvent sourceEvent, XOCObject targetObject)
public java.lang.String getRelationType()
getRelationType in interface XOCRRelationpublic XOCEvent getSourceEvent()
getSourceEvent in interface XOCRRelationpublic XOCObject getTargetObject()
getTargetObject in interface XOCRRelationpublic boolean hasAttributes()
XAttributableXAttributable.getAttributes() in certain situations.hasAttributes in interface XAttributablepublic java.lang.Object clone()
clone in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic XID getID()
XOCRRelationgetID in interface XOCRRelationpublic java.util.Set<XExtension> getExtensions()
XAttributablegetExtensions in interface XAttributablepublic XAttributeMap getAttributes()
XAttributablegetAttributes in interface XAttributablepublic void setAttributes(XAttributeMap attributes)
XAttributablesetAttributes in interface XAttributableattributes - A map of attributes.public void setRelationType(java.lang.String relationType)
setRelationType in interface XOCRRelationpublic void setSourceEvent(XOCEvent sourceEvent)
setSourceEvent in interface XOCRRelationpublic void setTargetObject(XOCObject targetObject)
setTargetObject in interface XOCRRelationpublic boolean compareReferenceRelation(XOCRRelation referenceRelation)
compareReferenceRelation in interface XOCRRelationpublic MyOriginalCell getCorrespondingCell()
getCorrespondingCell in interface MyOriginalElementpublic void setCorrespondingCell(MyOriginalCell correspondingCell)
setCorrespondingCell in interface MyOriginalElement