org.jrdf.query.relation.mem
Class AttributeImpl
java.lang.Object
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
AttributeImpl
public AttributeImpl(AttributeName newAttributeName,
NodeType newType)
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