i3.dragos.gm.core.id
Class IdentifierTool

java.lang.Object
  extended by i3.dragos.gm.core.id.IdentifierTool

public class IdentifierTool
extends java.lang.Object

Utility class for creating IDs for instances of GraphEntity, GraphEntityClass and Attribute.

Author:
Thomas Lettow <lettow@i3.informatik.rwth-aachen.de>

Constructor Summary
IdentifierTool()
           
 
Method Summary
static AttributeID createAttributeID(Attribute att)
          Creates a new AttributeID for the given Attribute instance.
static EdgeClassID createEdgeClassID(EdgeClass gec)
          Creates a new EdgeClassID for the given EdgeClass instance.
static EdgeID createEdgeID(Edge ge)
          Creates a new EdgeID for the given Edge instance.
static GraphClassID createGraphClassID(GraphClass gec)
          Creates a new GraphClassID for the given GraphClass instance.
static GraphEntityClassID createGraphEntityClassID(GraphEntityClass gec)
          Creates a new GraphEntityClassID for the given GraphEntityClass instance.
static GraphEntityID createGraphEntityID(GraphEntity ge)
          Creates a new GraphEntityClassID for the given GraphEntityClass instance.
static GraphID createGraphID(Graph ge)
          Creates a new GraphID for the given Graph instance.
static NodeClassID createNodeClassID(NodeClass gec)
          Creates a new NodeClassID for the given NodeClass instance.
static NodeID createNodeID(Node ge)
          Creates a new NodeID for the given Node instance.
static RelationClassID createRelationClassID(RelationClass gec)
          Creates a new RelationClassID for the given RelationClass instance.
static RelationEndClassID createRelationEndClassID(RelationEndClass gec)
          Creates a new RelationEndClassID for the given RelationEndClass instance.
static RelationEndID createRelationEndID(RelationEnd ge)
          Creates a new RelationEndID for the given RelationEnd instance.
static RelationID createRelationID(Relation ge)
          Creates a new RelationID for the given Relation instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentifierTool

public IdentifierTool()
Method Detail

createGraphEntityID

public static GraphEntityID createGraphEntityID(GraphEntity ge)
                                         throws DragosException
Creates a new GraphEntityClassID for the given GraphEntityClass instance.

Parameters:
ge - the graph entity class the ID is needed for.
Returns:
a new ID.
Throws:
DragosException - if something went wrong.

createGraphID

public static GraphID createGraphID(Graph ge)
                             throws DragosException
Creates a new GraphID for the given Graph instance.

Parameters:
ge - the graph the ID is needed for.
Returns:
a new ID.
Throws:
DragosException - if something went wrong.

createNodeID

public static NodeID createNodeID(Node ge)
                           throws DragosException
Creates a new NodeID for the given Node instance.

Parameters:
ge - the node the ID is needed for.
Returns:
a new ID.
Throws:
DragosException - if something went wrong.

createEdgeID

public static EdgeID createEdgeID(Edge ge)
                           throws DragosException
Creates a new EdgeID for the given Edge instance.

Parameters:
ge - the edge the ID is needed for.
Returns:
a new ID.
Throws:
DragosException - if something went wrong.

createRelationID

public static RelationID createRelationID(Relation ge)
                                   throws DragosException
Creates a new RelationID for the given Relation instance.

Parameters:
ge - the relation the ID is needed for.
Returns:
a new ID.
Throws:
DragosException - if something went wrong.

createRelationEndID

public static RelationEndID createRelationEndID(RelationEnd ge)
                                         throws DragosException
Creates a new RelationEndID for the given RelationEnd instance.

Parameters:
ge - the relation end the ID is needed for.
Returns:
a new ID.
Throws:
DragosException - if something went wrong.

createGraphEntityClassID

public static GraphEntityClassID createGraphEntityClassID(GraphEntityClass gec)
                                                   throws DragosException
Creates a new GraphEntityClassID for the given GraphEntityClass instance.

Parameters:
gec - the graph entity class the ID is needed for.
Returns:
a new ID.
Throws:
DragosException - if something went wrong.

createGraphClassID

public static GraphClassID createGraphClassID(GraphClass gec)
                                       throws DragosException
Creates a new GraphClassID for the given GraphClass instance.

Parameters:
gec - the graph class the ID is needed for.
Returns:
a new ID.
Throws:
DragosException - if something went wrong.

createNodeClassID

public static NodeClassID createNodeClassID(NodeClass gec)
                                     throws DragosException
Creates a new NodeClassID for the given NodeClass instance.

Parameters:
gec - the node class the ID is needed for.
Returns:
a new ID.
Throws:
DragosException - if something went wrong.

createEdgeClassID

public static EdgeClassID createEdgeClassID(EdgeClass gec)
                                     throws DragosException
Creates a new EdgeClassID for the given EdgeClass instance.

Parameters:
gec - the edge class the ID is needed for.
Returns:
a new ID.
Throws:
DragosException - if something went wrong.

createRelationClassID

public static RelationClassID createRelationClassID(RelationClass gec)
                                             throws DragosException
Creates a new RelationClassID for the given RelationClass instance.

Parameters:
gec - the relation class the ID is needed for.
Returns:
a new ID.
Throws:
DragosException - if something went wrong.

createRelationEndClassID

public static RelationEndClassID createRelationEndClassID(RelationEndClass gec)
                                                   throws DragosException
Creates a new RelationEndClassID for the given RelationEndClass instance.

Parameters:
gec - the relation end class the ID is needed for.
Returns:
a new ID.
Throws:
DragosException - if something went wrong.

createAttributeID

public static AttributeID createAttributeID(Attribute att)
                                     throws DragosException
Creates a new AttributeID for the given Attribute instance.

Parameters:
att - the attribute the ID is needed for.
Returns:
a new ID.
Throws:
DragosException - if something went wrong.


Copyright © 2002-2008 RWTH Aachen, Department of Computer Science 3 (Software Engineering). All Rights Reserved.