| java.lang.Object org.openrdf.model.impl.LiteralImpl
All known Subclasses: org.openrdf.sail.nativerdf.model.NativeLiteral, org.openrdf.model.impl.BooleanLiteralImpl, org.openrdf.model.impl.DecimalLiteralImpl, org.openrdf.model.impl.CalendarLiteralImpl, org.openrdf.sail.memory.model.MemLiteral, org.openrdf.model.impl.NumericLiteralImpl, org.openrdf.model.impl.IntegerLiteralImpl,
LiteralImpl | public class LiteralImpl implements Literal(Code) | | An implementation of the
Literal interface.
author: Arjohn Kampman author: David Huynh |
Constructor Summary | |
public | LiteralImpl(String label) Creates a new plain literal with the supplied label. | public | LiteralImpl(String label, String language) Creates a new plain literal with the supplied label and language tag. | public | LiteralImpl(String label, URI datatype) Creates a new datyped literal with the supplied label and datatype. |
LiteralImpl | public LiteralImpl(String label)(Code) | | Creates a new plain literal with the supplied label.
Parameters: label - The label for the literal, must not be null. |
LiteralImpl | public LiteralImpl(String label, String language)(Code) | | Creates a new plain literal with the supplied label and language tag.
Parameters: label - The label for the literal, must not be null. Parameters: language - The language tag for the literal. |
LiteralImpl | public LiteralImpl(String label, URI datatype)(Code) | | Creates a new datyped literal with the supplied label and datatype.
Parameters: label - The label for the literal, must not be null. Parameters: datatype - The datatype for the literal. |
booleanValue | public boolean booleanValue()(Code) | | |
byteValue | public byte byteValue()(Code) | | |
doubleValue | public double doubleValue()(Code) | | |
floatValue | public float floatValue()(Code) | | |
hashCode | public int hashCode()(Code) | | |
intValue | public int intValue()(Code) | | |
longValue | public long longValue()(Code) | | |
shortValue | public short shortValue()(Code) | | |
toString | public String toString()(Code) | | Returns the label of the literal.
|
|
|