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()
XAttributablegetAttributes in interface XAttributablepublic void setAttributes(XAttributeMap attributes)
XAttributablesetAttributes in interface XAttributableattributes - A map of attributes.public 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()
XOCCRelationgetID in interface XOCCRelationpublic void setID(XID ID)
id - the new id.public java.util.Set<XExtension> getExtensions()
XAttributablegetExtensions in interface XAttributablepublic java.lang.String getRelationType()
getRelationType in interface XOCCRelationpublic XOCClass getSourceClass()
getSourceClass in interface XOCCRelationpublic XOCClass getTargetClass()
getTargetClass in interface XOCCRelationpublic void setRelationType(java.lang.String relationType)
setRelationType in interface XOCCRelationpublic void setSourceClass(XOCClass sourceClass)
setSourceClass in interface XOCCRelationpublic void setTargetClass(XOCClass targetClass)
setTargetClass in interface XOCCRelation