|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.model.impl.LiteralFactoryImpl
org.openrdf.model.impl.ValueFactoryImpl
public class ValueFactoryImpl
Default implementation of the ValueFactory interface that uses the RDF model classes from this package.
| Constructor Summary | |
|---|---|
ValueFactoryImpl()
|
|
ValueFactoryImpl(BNodeFactory bnodes,
URIFactory uris,
LiteralFactory literals)
|
|
ValueFactoryImpl(BNodeFactory bnodes,
ValueFactory values)
|
|
ValueFactoryImpl(URIFactory uris,
LiteralFactory literals)
|
|
| Method Summary | |
|---|---|
BNode |
createBNode()
Creates a new bNode. |
BNode |
createBNode(String nodeID)
Creates a new blank node with the given node identifier. |
Literal |
createLiteral(boolean value)
Calls LiteralFactory.createLiteral(String, URI) with the
String-value of the supplied value and XMLSchema.BOOLEAN as
parameters. |
Literal |
createLiteral(byte value)
Calls #createIntegerLiteral(long, URI) with the supplied value and
XMLSchema.BYTE as parameters. |
Literal |
createLiteral(double value)
Calls LiteralFactoryImpl.createFPLiteral(Number, URI) with the supplied value and
XMLSchema.DOUBLE as parameters. |
Literal |
createLiteral(float value)
Calls LiteralFactoryImpl.createFPLiteral(Number, URI) with the supplied value and
XMLSchema.FLOAT as parameters. |
Literal |
createLiteral(int value)
Calls #createIntegerLiteral(long, URI) with the supplied value and
XMLSchema.INT as parameters. |
Literal |
createLiteral(long value)
Calls #createIntegerLiteral(long, URI) with the supplied value and
XMLSchema.LONG as parameters. |
Literal |
createLiteral(short value)
Calls #createIntegerLiteral(long, URI) with the supplied value and
XMLSchema.SHORT as parameters. |
Literal |
createLiteral(String label)
Creates a new literal with the supplied label. |
Literal |
createLiteral(String label,
String language)
Creates a new literal with the supplied label and language attribute. |
Literal |
createLiteral(String label,
URI datatype)
Creates a new literal with the supplied label and datatype. |
Literal |
createLiteral(XMLGregorianCalendar calendar)
Calls LiteralFactory.createLiteral(String, URI) with the
String-value of the supplied calendar and the appropriate datatype as
parameters. |
Statement |
createStatement(Resource subject,
URI predicate,
Value object)
Creates a new statement with the supplied subject, predicate and object. |
Statement |
createStatement(Resource subject,
URI predicate,
Value object,
Resource context)
Creates a new statement with the supplied subject, predicate and object and associated context. |
URI |
createURI(String uri)
Creates a new URI from the supplied string-representation. |
URI |
createURI(String namespace,
String localName)
Creates a new URI from the supplied namespace and local name. |
BNodeFactory |
getBNodeFactory()
|
static ValueFactoryImpl |
getInstance()
|
LiteralFactory |
getLiteralFactory()
|
URIFactory |
getURIFactory()
|
| Methods inherited from class org.openrdf.model.impl.LiteralFactoryImpl |
|---|
createFPLiteral, createIntegerLiteral, createLiteral, createLiteral, createLiteral, createNumericLiteral |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openrdf.model.LiteralFactory |
|---|
createLiteral, createLiteral, createLiteral |
| Constructor Detail |
|---|
public ValueFactoryImpl()
public ValueFactoryImpl(URIFactory uris,
LiteralFactory literals)
public ValueFactoryImpl(BNodeFactory bnodes,
ValueFactory values)
public ValueFactoryImpl(BNodeFactory bnodes,
URIFactory uris,
LiteralFactory literals)
| Method Detail |
|---|
public static ValueFactoryImpl getInstance()
public BNodeFactory getBNodeFactory()
public URIFactory getURIFactory()
public LiteralFactory getLiteralFactory()
public BNode createBNode()
BNodeFactory
createBNode in interface BNodeFactorypublic BNode createBNode(String nodeID)
BNodeFactory
createBNode in interface BNodeFactorynodeID - The blank node identifier.
public Statement createStatement(Resource subject,
URI predicate,
Value object)
ValueFactory
createStatement in interface ValueFactorysubject - The statement's subject.predicate - The statement's predicate.object - The statement's object.
public Statement createStatement(Resource subject,
URI predicate,
Value object,
Resource context)
ValueFactory
createStatement in interface ValueFactorysubject - The statement's subject.predicate - The statement's predicate.object - The statement's object.context - The statement's context.
public URI createURI(String uri)
URIFactory
createURI in interface URIFactoryuri - A string-representation of a URI.
public URI createURI(String namespace,
String localName)
URIFactorycreateURI(namespace+localName), but allows the
ValueFactory to reuse supplied namespace and local name strings whenever
possible. Note that the values returned by URI.getNamespace() and
URI.getLocalName() are not necessarily the same as the values that
are supplied to this method.
createURI in interface URIFactorynamespace - The URI's namespace.localName - The URI's local name.public Literal createLiteral(boolean value)
LiteralFactoryImplLiteralFactory.createLiteral(String, URI) with the
String-value of the supplied value and XMLSchema.BOOLEAN as
parameters.
createLiteral in interface LiteralFactorycreateLiteral in class LiteralFactoryImplvalue - The value for the literal.
public Literal createLiteral(byte value)
LiteralFactoryImpl#createIntegerLiteral(long, URI) with the supplied value and
XMLSchema.BYTE as parameters.
createLiteral in interface LiteralFactorycreateLiteral in class LiteralFactoryImplvalue - The value for the literal.
public Literal createLiteral(double value)
LiteralFactoryImplLiteralFactoryImpl.createFPLiteral(Number, URI) with the supplied value and
XMLSchema.DOUBLE as parameters.
createLiteral in interface LiteralFactorycreateLiteral in class LiteralFactoryImplvalue - The value for the literal.
public Literal createLiteral(float value)
LiteralFactoryImplLiteralFactoryImpl.createFPLiteral(Number, URI) with the supplied value and
XMLSchema.FLOAT as parameters.
createLiteral in interface LiteralFactorycreateLiteral in class LiteralFactoryImplvalue - The value for the literal.
public Literal createLiteral(int value)
LiteralFactoryImpl#createIntegerLiteral(long, URI) with the supplied value and
XMLSchema.INT as parameters.
createLiteral in interface LiteralFactorycreateLiteral in class LiteralFactoryImplvalue - The value for the literal.
public Literal createLiteral(long value)
LiteralFactoryImpl#createIntegerLiteral(long, URI) with the supplied value and
XMLSchema.LONG as parameters.
createLiteral in interface LiteralFactorycreateLiteral in class LiteralFactoryImplvalue - The value for the literal.
public Literal createLiteral(short value)
LiteralFactoryImpl#createIntegerLiteral(long, URI) with the supplied value and
XMLSchema.SHORT as parameters.
createLiteral in interface LiteralFactorycreateLiteral in class LiteralFactoryImplvalue - The value for the literal.
public Literal createLiteral(String label,
String language)
LiteralFactory
createLiteral in interface LiteralFactorycreateLiteral in class LiteralFactoryImpllabel - The literal's label.language - The literal's language attribute, or null if the literal
doesn't have a language.
public Literal createLiteral(String label,
URI datatype)
LiteralFactory
createLiteral in interface LiteralFactorycreateLiteral in class LiteralFactoryImpllabel - The literal's label.datatype - The literal's datatype, or null if the literal doesn't
have a datatype.public Literal createLiteral(String label)
LiteralFactory
createLiteral in interface LiteralFactorycreateLiteral in class LiteralFactoryImpllabel - The literal's label.public Literal createLiteral(XMLGregorianCalendar calendar)
LiteralFactoryImplLiteralFactory.createLiteral(String, URI) with the
String-value of the supplied calendar and the appropriate datatype as
parameters.
createLiteral in interface LiteralFactorycreateLiteral in class LiteralFactoryImplcalendar - The value for the literal.
XMLGregorianCalendar.toXMLFormat(),
XMLGregorianCalendar.getXMLSchemaType(),
XMLDatatypeUtil.qnameToURI(javax.xml.namespace.QName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||