|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.model.impl.ValueFactoryBase
public abstract class ValueFactoryBase
Abstract base class for ValueFactory implementations that implements
the utility methods for creating literals for basic types by calling the
generic ValueFactory.createLiteral(String, URI) with the appropriate
value and datatype.
| Constructor Summary | |
|---|---|
ValueFactoryBase()
|
|
| Method Summary | |
|---|---|
BNode |
createBNode()
Creates a new bNode. |
protected Literal |
createFPLiteral(Number value,
URI datatype)
Calls createNumericLiteral(Number, URI) with the supplied value
and datatype as parameters. |
protected Literal |
createIntegerLiteral(Number value,
URI datatype)
Calls createNumericLiteral(Number, URI) with the supplied value
and datatype as parameters. |
Literal |
createLiteral(boolean b)
Calls ValueFactory.createLiteral(String, URI) with the
String-value of the supplied value and XMLSchema.BOOLEAN as
parameters. |
Literal |
createLiteral(byte value)
Calls createIntegerLiteral(Number, URI) with the supplied value
and XMLSchema.BYTE as parameters. |
Literal |
createLiteral(double value)
Calls createFPLiteral(Number, URI) with the supplied value and
XMLSchema.DOUBLE as parameters. |
Literal |
createLiteral(float value)
Calls createFPLiteral(Number, URI) with the supplied value and
XMLSchema.FLOAT as parameters. |
Literal |
createLiteral(int value)
Calls createIntegerLiteral(Number, URI) with the supplied value
and XMLSchema.INT as parameters. |
Literal |
createLiteral(long value)
Calls createIntegerLiteral(Number, URI) with the supplied value
and XMLSchema.LONG as parameters. |
Literal |
createLiteral(short value)
Calls createIntegerLiteral(Number, URI) with the supplied value
and XMLSchema.SHORT as parameters. |
Literal |
createLiteral(XMLGregorianCalendar calendar)
Calls ValueFactory.createLiteral(String, URI) with the
String-value of the supplied calendar and the appropriate datatype as
parameters. |
protected Literal |
createNumericLiteral(Number number,
URI datatype)
Calls ValueFactory.createLiteral(String, URI) with the
String-value of the supplied number and the supplied datatype as
parameters. |
protected void |
initBNodeParams()
Generates a new bnode prefix and resets nextBNodeID to 1 . |
| 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.ValueFactory |
|---|
createBNode, createLiteral, createLiteral, createLiteral, createStatement, createStatement, createURI, createURI |
| Constructor Detail |
|---|
public ValueFactoryBase()
| Method Detail |
|---|
protected void initBNodeParams()
public BNode createBNode()
ValueFactory
createBNode in interface ValueFactorypublic Literal createLiteral(boolean b)
ValueFactory.createLiteral(String, URI) with the
String-value of the supplied value and XMLSchema.BOOLEAN as
parameters.
createLiteral in interface ValueFactoryb - The value for the literal.
public Literal createLiteral(byte value)
createIntegerLiteral(Number, URI) with the supplied value
and XMLSchema.BYTE as parameters.
createLiteral in interface ValueFactoryvalue - The value for the literal.
public Literal createLiteral(short value)
createIntegerLiteral(Number, URI) with the supplied value
and XMLSchema.SHORT as parameters.
createLiteral in interface ValueFactoryvalue - The value for the literal.
public Literal createLiteral(int value)
createIntegerLiteral(Number, URI) with the supplied value
and XMLSchema.INT as parameters.
createLiteral in interface ValueFactoryvalue - The value for the literal.
public Literal createLiteral(long value)
createIntegerLiteral(Number, URI) with the supplied value
and XMLSchema.LONG as parameters.
createLiteral in interface ValueFactoryvalue - The value for the literal.
protected Literal createIntegerLiteral(Number value,
URI datatype)
createNumericLiteral(Number, URI) with the supplied value
and datatype as parameters.
public Literal createLiteral(float value)
createFPLiteral(Number, URI) with the supplied value and
XMLSchema.FLOAT as parameters.
createLiteral in interface ValueFactoryvalue - The value for the literal.
public Literal createLiteral(double value)
createFPLiteral(Number, URI) with the supplied value and
XMLSchema.DOUBLE as parameters.
createLiteral in interface ValueFactoryvalue - The value for the literal.
protected Literal createFPLiteral(Number value,
URI datatype)
createNumericLiteral(Number, URI) with the supplied value
and datatype as parameters.
protected Literal createNumericLiteral(Number number,
URI datatype)
ValueFactory.createLiteral(String, URI) with the
String-value of the supplied number and the supplied datatype as
parameters.
public Literal createLiteral(XMLGregorianCalendar calendar)
ValueFactory.createLiteral(String, URI) with the
String-value of the supplied calendar and the appropriate datatype as
parameters.
createLiteral in interface ValueFactorycalendar - 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 | |||||||||