|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object i3.dragos.gm.core.id.GraphEntityID i3.dragos.gm.core.id.RelationEndID
public class RelationEndID
A RelationEndID
is used to uniquely identify a relation end.
Constructor Summary | |
---|---|
RelationEndID(DataSourceURL dataSourceURL,
java.io.Serializable internalIdentifier,
RelationID relationID,
RelationEndClassID typeID)
Constructs a new ID representing a relation end. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Checks for equality with another object. |
RelationEnd |
getRelationEnd()
Returns the relation end referenced by this ID. |
RelationEndClassID |
getRelationEndClassID()
Returns the relation end's type. |
RelationID |
getRelationID()
Returns the relation this relation end participates in. |
Methods inherited from class i3.dragos.gm.core.id.GraphEntityID |
---|
getDataSourceURL, getGraphEntity, getGraphEntityClassID, getInternalIdentifier, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RelationEndID(DataSourceURL dataSourceURL, java.io.Serializable internalIdentifier, RelationID relationID, RelationEndClassID typeID)
dataSourceURL
- The DataSourceURL of the GraphPool containing this
entity.internalIdentifier
- Internal RelationEnd ID.relationID
- GraphID of the "parent" relation.typeID
- TypeID of this RelationEnd's type.Method Detail |
---|
public RelationEnd getRelationEnd() throws DragosException
DragosException
- in case of internal errors.public RelationID getRelationID()
public RelationEndClassID getRelationEndClassID()
public boolean equals(java.lang.Object o)
This object is considered equal if all of the following conditions are met:
o != null
o instanceof GraphEntityID
getDataSourceURL().equals(((GraphEntityID) o).getDataSourceURL())
getInternalIdentifier().equals(((GraphEntityID) o).getInternalIdentifier())
Subclasses and implementations might want to extend this list by adding
assertions comparing additional or internal data (e.g. the type of the
graph entity). However, equality must only be determined by the above
rules, preferably by using super.equals(o)
, and any
difference in the additional data for two equal IDs is an error.
equals
in class GraphEntityID
o
- The Object to compare to.
true
if o
is equal according to
above rules, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |