i3.dragos.gm.core.schema.id
Class AttributeID

java.lang.Object
  extended by i3.dragos.gm.core.schema.id.AttributeID
All Implemented Interfaces:
java.io.Serializable

public class AttributeID
extends java.lang.Object
implements java.io.Serializable

An AttributeID identifies an attribute in the schema.

Author:
Thomas Lettow <lettow@i3.informatik.rwth-aachen.de>
See Also:
Serialized Form

Constructor Summary
AttributeID(GraphEntityClassID gec, java.lang.String name)
          Creates a new ID for a graph entity class.
 
Method Summary
 boolean equals(java.lang.Object o)
          
 Attribute getAttribute()
          Returns the attribute referenced by this ID.
 DataSourceURL getDataSourceURL()
          Returns the URL to the data source that stores the attribute represented by this ID.
 GraphEntityClassID getGraphEntityClass()
          Returns the graph entity class the attribute is declared in.
 java.lang.String getName()
          Returns the name of the attribute.
 int hashCode()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeID

public AttributeID(GraphEntityClassID gec,
                   java.lang.String name)
Creates a new ID for a graph entity class.

Parameters:
gec - The ID of the graph entity class the attribute is declared in.
name - The name of the attribute
Method Detail

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class java.lang.Object

hashCode

public final int hashCode()

Overrides:
hashCode in class java.lang.Object

getAttribute

public Attribute getAttribute()
                       throws DragosException
Returns the attribute referenced by this ID.

Returns:
the attribute referenced by this ID.
Throws:
DragosException - in case of internal errors

getDataSourceURL

public DataSourceURL getDataSourceURL()
Returns the URL to the data source that stores the attribute represented by this ID. The returned value is guaranteed to not be null.

Returns:
the URL to the data source that stores the attribute.

getGraphEntityClass

public GraphEntityClassID getGraphEntityClass()
Returns the graph entity class the attribute is declared in. This is never null.

Returns:
the graph entity's type.

getName

public java.lang.String getName()
Returns the name of the attribute.

Returns:
the name of the attribute.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


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