|
||||||||||
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.GraphID
public class GraphID
A GraphID
is used to uniquely identify a graph.
Extending GraphEntityID
, this class also stores a graph's name. Only
top-level graphs have a name, and null
is returned for all
other graphs.
Constructor Summary | |
---|---|
GraphID(DataSourceURL dataSourceURL,
java.io.Serializable internalIdentifier,
GraphClassID type,
java.lang.String name)
Constructs a new ID representing a graph. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Checks for equality with another object. |
Graph |
getGraph()
Returns the graph referenced by this ID. |
GraphClassID |
getGraphClassID()
Returns the type of the graph. |
java.lang.String |
getName()
Returns the name of the graph. |
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 GraphID(DataSourceURL dataSourceURL, java.io.Serializable internalIdentifier, GraphClassID type, java.lang.String name)
dataSourceURL
- The URL of the data source where this Graph is
stored.internalIdentifier
- Internal graph ID (given by the data source).type
- Type of the graph.name
- Name of this graph for top level graphs, otherwise
null
.Method Detail |
---|
public Graph getGraph() throws DragosException
DragosException
- in case of internal errors.public GraphClassID getGraphClassID()
Actually, this method is just a correctly typed wrapper for calling
GraphEntityID.getGraphEntityClassID()
.
public java.lang.String getName()
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 |