public class XOCCRelationImpl extends java.lang.Object implements XOCCRelation
Constructor and Description |
---|
XOCCRelationImpl(java.lang.String relationType,
XOCClass sourceClass,
XOCClass targetClass) |
XOCCRelationImpl(XID ID,
XAttributeMap attributes,
java.lang.String relationType,
XOCClass sourceClass,
XOCClass targetClass) |
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
|
XAttributeMap |
getAttributes()
Retrieves the attributes set for this element.
|
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() |
XOCClass |
getSourceClass() |
XOCClass |
getTargetClass() |
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 |
setID(XID ID)
Sets the ID.
|
void |
setRelationType(java.lang.String relationType) |
void |
setSourceClass(XOCClass sourceClass) |
void |
setTargetClass(XOCClass targetClass) |
public XOCCRelationImpl(java.lang.String relationType, XOCClass sourceClass, XOCClass targetClass)
public XOCCRelationImpl(XID ID, XAttributeMap attributes, java.lang.String relationType, XOCClass sourceClass, XOCClass targetClass)
public XAttributeMap getAttributes()
XAttributable
getAttributes
in interface XAttributable
public void setAttributes(XAttributeMap attributes)
XAttributable
setAttributes
in interface XAttributable
attributes
- A map of attributes.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()
XOCCRelation
getID
in interface XOCCRelation
public void setID(XID ID)
id
- the new id.public java.util.Set<XExtension> getExtensions()
XAttributable
getExtensions
in interface XAttributable
public java.lang.String getRelationType()
getRelationType
in interface XOCCRelation
public XOCClass getSourceClass()
getSourceClass
in interface XOCCRelation
public XOCClass getTargetClass()
getTargetClass
in interface XOCCRelation
public void setRelationType(java.lang.String relationType)
setRelationType
in interface XOCCRelation
public void setSourceClass(XOCClass sourceClass)
setSourceClass
in interface XOCCRelation
public void setTargetClass(XOCClass targetClass)
setTargetClass
in interface XOCCRelation