| Package | Description |
|---|---|
| org.openrdf.model |
RDF model interfaces.
|
| org.openrdf.model.impl |
Default implementations of the RDF model interfaces.
|
| org.openrdf.model.util |
| Modifier and Type | Method and Description |
|---|---|
Literal |
ValueFactory.createLiteral(boolean value)
Creates a new xsd:boolean-typed literal representing the
specified value.
|
Literal |
ValueFactory.createLiteral(byte value)
Creates a new xsd:byte-typed literal representing the specified
value.
|
Literal |
ValueFactory.createLiteral(Date date)
Creates a new literal representing the specified date that is typed using
the appropriate XML Schema date/time datatype.
|
Literal |
ValueFactory.createLiteral(double value)
Creates a new xsd:double-typed literal representing the specified
value.
|
Literal |
ValueFactory.createLiteral(float value)
Creates a new xsd:float-typed literal representing the specified
value.
|
Literal |
ValueFactory.createLiteral(int value)
Creates a new xsd:int-typed literal representing the specified
value.
|
Literal |
ValueFactory.createLiteral(long value)
Creates a new xsd:long-typed literal representing the specified
value.
|
Literal |
ValueFactory.createLiteral(short value)
Creates a new xsd:short-typed literal representing the specified
value.
|
Literal |
ValueFactory.createLiteral(String label)
Creates a new literal with the supplied label.
|
Literal |
ValueFactory.createLiteral(String label,
String language)
Creates a new literal with the supplied label and language attribute.
|
Literal |
ValueFactory.createLiteral(String label,
URI datatype)
Creates a new literal with the supplied label and datatype.
|
Literal |
ValueFactory.createLiteral(XMLGregorianCalendar calendar)
Creates a new literal representing the specified calendar that is typed
using the appropriate XML Schema date/time datatype.
|
Literal |
Model.objectLiteral()
Utility method that casts the return value of
Model.objectValue() to a
Literal, or throws a ModelUtilException if that value is not a Literal. |
| Modifier and Type | Class and Description |
|---|---|
class |
BooleanLiteralImpl
An extension of
LiteralImpl that stores a boolean value to avoid
parsing. |
class |
CalendarLiteralImpl
An extension of
LiteralImpl that stores a calendar value to avoid
parsing. |
class |
DecimalLiteralImpl
An extension of
LiteralImpl that stores an integer value using a
BigDecimal object. |
class |
IntegerLiteralImpl
An extension of
LiteralImpl that stores an integer value using a
BigInteger object. |
class |
LiteralImpl
An implementation of the
Literal interface. |
class |
NumericLiteralImpl
An extension of
LiteralImpl that stores a numeric value to avoid
parsing. |
| Modifier and Type | Method and Description |
|---|---|
protected Literal |
ValueFactoryBase.createFPLiteral(Number value,
URI datatype)
Calls
ValueFactoryBase.createNumericLiteral(Number, URI) with the supplied value
and datatype as parameters. |
protected Literal |
ValueFactoryBase.createIntegerLiteral(Number value,
URI datatype)
Calls
ValueFactoryBase.createNumericLiteral(Number, URI) with the supplied value
and datatype as parameters. |
Literal |
ValueFactoryBase.createLiteral(boolean b)
Calls
ValueFactory.createLiteral(String, URI) with the
String-value of the supplied value and XMLSchema.BOOLEAN as
parameters. |
Literal |
ValueFactoryBase.createLiteral(byte value)
Calls
ValueFactoryBase.createIntegerLiteral(Number, URI) with the supplied value
and XMLSchema.BYTE as parameters. |
Literal |
ValueFactoryBase.createLiteral(Date date)
Converts the supplied
Date to a XMLGregorianCalendar, then
calls ValueFactory.createLiteral(XMLGregorianCalendar). |
Literal |
ValueFactoryBase.createLiteral(double value)
Calls
ValueFactoryBase.createFPLiteral(Number, URI) with the supplied value and
XMLSchema.DOUBLE as parameters. |
Literal |
ValueFactoryBase.createLiteral(float value)
Calls
ValueFactoryBase.createFPLiteral(Number, URI) with the supplied value and
XMLSchema.FLOAT as parameters. |
Literal |
ValueFactoryBase.createLiteral(int value)
Calls
ValueFactoryBase.createIntegerLiteral(Number, URI) with the supplied value
and XMLSchema.INT as parameters. |
Literal |
ValueFactoryBase.createLiteral(long value)
Calls
ValueFactoryBase.createIntegerLiteral(Number, URI) with the supplied value
and XMLSchema.LONG as parameters. |
Literal |
ValueFactoryBase.createLiteral(short value)
Calls
ValueFactoryBase.createIntegerLiteral(Number, URI) with the supplied value
and XMLSchema.SHORT as parameters. |
Literal |
ValueFactoryImpl.createLiteral(String value) |
Literal |
ValueFactoryImpl.createLiteral(String value,
String language) |
Literal |
ValueFactoryImpl.createLiteral(String value,
URI datatype) |
Literal |
ValueFactoryBase.createLiteral(XMLGregorianCalendar calendar)
Calls
ValueFactory.createLiteral(String, URI) with the
String-value of the supplied calendar and the appropriate datatype as
parameters. |
protected Literal |
ValueFactoryBase.createNumericLiteral(Number number,
URI datatype)
Calls
ValueFactory.createLiteral(String, URI) with the
String-value of the supplied number and the supplied datatype as
parameters. |
Literal |
AbstractModel.objectLiteral() |
| Modifier and Type | Method and Description |
|---|---|
static Literal |
Literals.createLiteral(ValueFactory valueFactory,
Object object)
Creates a typed
Literal out of the supplied object, mapping the
runtime type of the object to the appropriate XML Schema type. |
static Literal |
Literals.createLiteralOrFail(ValueFactory valueFactory,
Object object)
Creates a typed
Literal out of the supplied object, mapping the
runtime type of the object to the appropriate XML Schema type. |
static Literal |
GraphUtil.getOptionalObjectLiteral(Graph graph,
Resource subj,
URI pred)
Utility method that casts the return value of
GraphUtil.getOptionalObject(Graph, Resource, URI, Resource[]) to a Literal,
or throws a GraphUtilException if that value is not a Literal. |
static Literal |
GraphUtil.getUniqueObjectLiteral(Graph graph,
Resource subj,
URI pred)
Utility method that casts the return value of
GraphUtil.getUniqueObject(Graph, Resource, URI, Resource[]) to a Literal,
or throws a GraphUtilException if that value is not a Literal. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Literals.getBooleanValue(Literal l,
boolean fallback)
Gets the boolean value of the supplied literal.
|
static byte |
Literals.getByteValue(Literal l,
byte fallback)
Gets the byte value of the supplied literal.
|
static XMLGregorianCalendar |
Literals.getCalendarValue(Literal l,
XMLGregorianCalendar fallback)
Gets the calendar value of the supplied literal.
|
static BigDecimal |
Literals.getDecimalValue(Literal l,
BigDecimal fallback)
Gets the decimal value of the supplied literal.
|
static double |
Literals.getDoubleValue(Literal l,
double fallback)
Gets the double value of the supplied literal.
|
static float |
Literals.getFloatValue(Literal l,
float fallback)
Gets the float value of the supplied literal.
|
static BigInteger |
Literals.getIntegerValue(Literal l,
BigInteger fallback)
Gets the integer value of the supplied literal.
|
static int |
Literals.getIntValue(Literal l,
int fallback)
Gets the int value of the supplied literal.
|
static String |
Literals.getLabel(Literal l,
String fallback)
Gets the label of the supplied literal.
|
static Locale |
Literals.getLocale(Literal l,
Locale fallback)
Determine the Locale from a literal's language tag, as specified by RFC
3166.
|
static long |
Literals.getLongValue(Literal l,
long fallback)
Gets the long value of the supplied literal.
|
static short |
Literals.getShortValue(Literal l,
short fallback)
Gets the short value of the supplied literal.
|
Copyright © 2001-2014 Aduna. All Rights Reserved.