org.jrdf.query.relation.mem
Class AttributeValuePairImpl

java.lang.Object
  extended by 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

Constructor Summary
AttributeValuePairImpl(Attribute newAttribute, Node newValue)
           
 
Method Summary
 boolean equals(Object obj)
           
 Attribute getAttribute()
          Returns the attribute.
 Node getValue()
          Returns the value of the attribute.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeValuePairImpl

public AttributeValuePairImpl(Attribute newAttribute,
                              Node newValue)
Method Detail

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