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 XOCRRelation
public XOCEvent getSourceEvent()
getSourceEvent
in interface XOCRRelation
public XOCObject getTargetObject()
getTargetObject
in interface XOCRRelation
public boolean hasAttributes()
XAttributable
XAttributable.getAttributes()
in certain situations.hasAttributes
in interface XAttributable
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public XID getID()
XOCRRelation
getID
in interface XOCRRelation
public java.util.Set<XExtension> getExtensions()
XAttributable
getExtensions
in interface XAttributable
public XAttributeMap getAttributes()
XAttributable
getAttributes
in interface XAttributable
public void setAttributes(XAttributeMap attributes)
XAttributable
setAttributes
in interface XAttributable
attributes
- A map of attributes.public void setRelationType(java.lang.String relationType)
setRelationType
in interface XOCRRelation
public void setSourceEvent(XOCEvent sourceEvent)
setSourceEvent
in interface XOCRRelation
public void setTargetObject(XOCObject targetObject)
setTargetObject
in interface XOCRRelation
public boolean compareReferenceRelation(XOCRRelation referenceRelation)
compareReferenceRelation
in interface XOCRRelation
public MyOriginalCell getCorrespondingCell()
getCorrespondingCell
in interface MyOriginalElement
public void setCorrespondingCell(MyOriginalCell correspondingCell)
setCorrespondingCell
in interface MyOriginalElement