| java.lang.Object org.openrdf.model.impl.ValueFactoryBase
All known Subclasses: org.openrdf.sail.nativerdf.ValueStore, org.openrdf.model.impl.ValueFactoryImpl, org.openrdf.sail.rdbms.RdbmsValueFactory, org.openrdf.sail.memory.model.MemValueFactory,
ValueFactoryBase | abstract public class ValueFactoryBase implements ValueFactory(Code) | | Abstract base class for
ValueFactory implementations that implements
the utility methods for creating literals for basic types by calling the
generic
ValueFactory.createLiteral(StringURI) with the appropriate
value and datatype.
author: Arjohn Kampman |
Method Summary | |
public BNode | createBNode() | protected Literal | createFPLiteral(Number value, URI datatype) Calls
ValueFactoryBase.createNumericLiteral(Number,URI) with the supplied value
and datatype as parameters. | protected Literal | createIntegerLiteral(Number value, URI datatype) Calls
ValueFactoryBase.createNumericLiteral(Number,URI) with the supplied value
and datatype as parameters. | public Literal | createLiteral(boolean b) Calls
ValueFactory.createLiteral(StringURI) with the
String-value of the supplied value and
XMLSchema.BOOLEAN as
parameters. | public Literal | createLiteral(byte value) Calls
ValueFactoryBase.createIntegerLiteral(long,URI) with the supplied value and
XMLSchema.BYTE as parameters. | public Literal | createLiteral(short value) Calls
ValueFactoryBase.createIntegerLiteral(long,URI) with the supplied value and
XMLSchema.SHORT as parameters. | public Literal | createLiteral(int value) Calls
ValueFactoryBase.createIntegerLiteral(long,URI) with the supplied value and
XMLSchema.INT as parameters. | public Literal | createLiteral(long value) Calls
ValueFactoryBase.createIntegerLiteral(long,URI) with the supplied value and
XMLSchema.LONG as parameters. | public Literal | createLiteral(float value) Calls
ValueFactoryBase.createFPLiteral(Number,URI) with the supplied value and
XMLSchema.FLOAT as parameters. | public Literal | createLiteral(double value) Calls
ValueFactoryBase.createFPLiteral(Number,URI) with the supplied value and
XMLSchema.DOUBLE as parameters. | public Literal | createLiteral(XMLGregorianCalendar calendar) Calls
ValueFactory.createLiteral(StringURI) with the
String-value of the supplied calendar and the appropriate datatype as
parameters. | protected Literal | createNumericLiteral(Number number, URI datatype) Calls
ValueFactory.createLiteral(StringURI) with the
String-value of the supplied number and the supplied datatype as
parameters. | protected void | initBNodeParams() Generates a new bnode prefix based on currentTimeMillis() and
resets _nextBNodeID to 1. |
ValueFactoryBase | public ValueFactoryBase()(Code) | | |
initBNodeParams | protected void initBNodeParams()(Code) | | Generates a new bnode prefix based on currentTimeMillis() and
resets _nextBNodeID to 1.
|
|
|