org.w3c.rdf.implementation.model
Class RDFNodeImpl

java.lang.Object
  |
  +--org.w3c.rdf.implementation.model.RDFNodeImpl
All Implemented Interfaces:
Digestable, RDFNode
Direct Known Subclasses:
LiteralImpl, ResourceImpl

public abstract class RDFNodeImpl
extends java.lang.Object
implements RDFNode, Digestable


Field Summary
protected  Digest digest
           
protected  java.lang.String label
           
 
Constructor Summary
protected RDFNodeImpl()
           
  RDFNodeImpl(java.lang.String label)
           
 
Method Summary
 boolean equals(java.lang.Object that)
           
 Digest getDigest()
           
 java.lang.String getLabel()
          The formal string label of the node.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

label

protected java.lang.String label

digest

protected Digest digest
Constructor Detail

RDFNodeImpl

protected RDFNodeImpl()

RDFNodeImpl

public RDFNodeImpl(java.lang.String label)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getLabel

public java.lang.String getLabel()
Description copied from interface: RDFNode
The formal string label of the node. URI in case of a resource, string in case of a literal.
Specified by:
getLabel in interface RDFNode

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getDigest

public Digest getDigest()
                 throws DigestException
Specified by:
getDigest in interface Digestable
Following copied from interface: org.w3c.tools.crypt.Digestable
Returns:
a Digest

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object