org.w3c.rdf.model
Interface NodeFactory

All Known Implementing Classes:
NodeFactoryImpl, NodeFactoryImpl, Registry

public interface NodeFactory

Provides methods for creating resources, literals and statements.


Method Summary
 Literal createLiteral(boolean b)
          Creates a literal from a boolean
 Literal createLiteral(byte b)
          Creates a literal from a byte
 Literal createLiteral(char b)
          Creates a literal from a char
 Literal createLiteral(double b)
          Creates a literal from a double
 Literal createLiteral(float b)
          Creates a literal from a float
 Literal createLiteral(int b)
          Creates a literal from an int
 Literal createLiteral(long b)
          Creates a literal from a long
 Literal createLiteral(short b)
          Creates a literal from a short
 Literal createLiteral(java.lang.String str)
          Creates a literal from a string
 Resource createOrdinal(int i)
          Creates an ordinal
 Resource createResource(java.lang.String uri)
          Creates a resource out of a URI
 Resource createResource(java.lang.String namespace, java.lang.String localName)
          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
 

Method Detail

createResource

public Resource createResource(java.lang.String uri)
                        throws ModelException
Creates a resource out of a URI

createResource

public Resource createResource(java.lang.String namespace,
                               java.lang.String localName)
                        throws ModelException
Creates a resource out of a string
Since:
2000-10-21

createLiteral

public Literal createLiteral(java.lang.String str)
                      throws ModelException
Creates a literal from a string

createLiteral

public Literal createLiteral(boolean b)
                      throws ModelException
Creates a literal from a boolean

createLiteral

public Literal createLiteral(byte b)
                      throws ModelException
Creates a literal from a byte

createLiteral

public Literal createLiteral(char b)
                      throws ModelException
Creates a literal from a char

createLiteral

public Literal createLiteral(short b)
                      throws ModelException
Creates a literal from a short

createLiteral

public Literal createLiteral(int b)
                      throws ModelException
Creates a literal from an int

createLiteral

public Literal createLiteral(long b)
                      throws ModelException
Creates a literal from a long

createLiteral

public Literal createLiteral(float b)
                      throws ModelException
Creates a literal from a float

createLiteral

public Literal createLiteral(double b)
                      throws ModelException
Creates a literal from a double

createStatement

public Statement createStatement(Resource subject,
                                 Resource predicate,
                                 RDFNode object)
                          throws ModelException
Creates a triple

createUniqueResource

public Resource createUniqueResource()
                              throws ModelException
Creates a resource with a unique ID

createOrdinal

public Resource createOrdinal(int i)
                       throws ModelException
Creates an ordinal