org.jrdf.query.relation.mem
Class AttributeValuePairImpl
java.lang.Object
org.jrdf.query.relation.mem.AttributeValuePairImpl
- All Implemented Interfaces:
- Serializable, AttributeValuePair
public final class AttributeValuePairImpl
- extends Object
- implements AttributeValuePair
Implementation of an attribute name/value consists of the name (SUBJECT, PREDICATE, etc.) and value.
- Version:
- $Id: AttributeValuePairImpl.java 1045 2007-01-05 04:56:09Z newmana $
- Author:
- Andrew Newman
- See Also:
- Serialized Form
AttributeValuePairImpl
public AttributeValuePairImpl(Attribute newAttribute,
Node newValue)
getAttribute
public Attribute getAttribute()
- Description copied from interface:
AttributeValuePair
- Returns the attribute.
- Specified by:
getAttribute
in interface AttributeValuePair
- Returns:
- the attribute.
getValue
public Node getValue()
- Description copied from interface:
AttributeValuePair
- Returns the value of the attribute.
- Specified by:
getValue
in interface AttributeValuePair
- Returns:
- the value 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