org.w3c.rdf.implementation.model
Class NodeFactoryImpl

java.lang.Object
  |
  +--org.w3c.rdf.implementation.model.NodeFactoryImpl

public class NodeFactoryImpl
extends java.lang.Object
implements NodeFactory


Constructor Summary
NodeFactoryImpl()
           
 
Method Summary
 Literal createLiteral(java.lang.String str)
          Creates a literal out of a string
 Resource createOrdinal(int i)
          Creates an ordinal property (rdf:li, rdf:_N)
 Resource createResource(java.lang.String str)
          Creates a resource out of a string
 Statement createStatement(Resource subject, Resource predicate, RDFNode object)
          Creates a triple
 Resource createUniqueResource()
          Creates a resource with a unique ID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeFactoryImpl

public NodeFactoryImpl()
Method Detail

createResource

public Resource createResource(java.lang.String str)
Creates a resource out of a string
Specified by:
createResource in interface NodeFactory

createLiteral

public Literal createLiteral(java.lang.String str)
Creates a literal out of a string
Specified by:
createLiteral in interface NodeFactory

createStatement

public Statement createStatement(Resource subject,
                                 Resource predicate,
                                 RDFNode object)
Creates a triple
Specified by:
createStatement in interface NodeFactory

createUniqueResource

public Resource createUniqueResource()
Creates a resource with a unique ID
Specified by:
createUniqueResource in interface NodeFactory

createOrdinal

public Resource createOrdinal(int i)
Creates an ordinal property (rdf:li, rdf:_N)
Specified by:
createOrdinal in interface NodeFactory