org.w3c.rdf.model.impl
Class StatementImpl

java.lang.Object
  |
  +--org.w3c.rdf.model.impl.StatementImpl

public final class StatementImpl
extends java.lang.Object
implements Statement, Digestable


Constructor Summary
StatementImpl(Resource subj, Resource pred, RDFNode obj)
          The parameters to constructor are instances of classes and not just strings
 
Method Summary
 boolean equals(java.lang.Object that)
           
 Digest getDigest()
          Properties: digest can be constructed given the digests of the pred, subj, obj Permutations of the s, p, o return different digests
 java.lang.String getLabel()
           
 java.lang.String getURI()
           
 int hashCode()
           
static void main(java.lang.String[] args)
           
 RDFNode object()
           
 Resource predicate()
           
 Resource subject()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatementImpl

public StatementImpl(Resource subj,
                     Resource pred,
                     RDFNode obj)
The parameters to constructor are instances of classes and not just strings
Method Detail

predicate

public Resource predicate()
Specified by:
predicate in interface Statement

subject

public Resource subject()
Specified by:
subject in interface Statement

object

public RDFNode object()
Specified by:
object in interface Statement

hashCode

public int hashCode()
Returns:
four most significant bytes of the digest
Overrides:
hashCode in class java.lang.Object

getDigest

public Digest getDigest()
Properties: digest can be constructed given the digests of the pred, subj, obj Permutations of the s, p, o return different digests
Specified by:
getDigest in interface Digestable

getURI

public java.lang.String getURI()

getLabel

public java.lang.String getLabel()

toString

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

equals

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

main

public static void main(java.lang.String[] args)