org.jrdf.query.relation.mem
Class AttributeImpl

java.lang.Object
  extended by org.jrdf.query.relation.mem.AttributeImpl
All Implemented Interfaces:
Serializable, Attribute

public final class AttributeImpl
extends Object
implements Attribute

Implementation of attribute-name:type-name combination.

Version:
$Id: AttributeImpl.java 1045 2007-01-05 04:56:09Z newmana $
Author:
Andrew Newman
See Also:
Serialized Form

Constructor Summary
AttributeImpl(AttributeName newAttributeName, NodeType newType)
           
 
Method Summary
 boolean equals(Object obj)
           
 AttributeName getAttributeName()
          The name of the attribute - either a variable name or some assigned name.
 NodeType getType()
          The type of the attribute - either subject, predicate, object or URI, Literal or bnode.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeImpl

public AttributeImpl(AttributeName newAttributeName,
                     NodeType newType)
Method Detail

getAttributeName

public AttributeName getAttributeName()
Description copied from interface: Attribute
The name of the attribute - either a variable name or some assigned name.

Specified by:
getAttributeName in interface Attribute
Returns:
the name of the attribute.

getType

public NodeType getType()
Description copied from interface: Attribute
The type of the attribute - either subject, predicate, object or URI, Literal or bnode. URIs, Literals and bnodes are disjoin whereas subject, predicates and objects have an type inheritance.

Specified by:
getType in interface Attribute
Returns:
the type of the attribute.

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object