| java.lang.Object com.hp.hpl.jena.enhanced.Polymorphic com.hp.hpl.jena.enhanced.EnhNode com.hp.hpl.jena.rdf.model.impl.LiteralImpl
LiteralImpl | public class LiteralImpl extends EnhNode implements Literal(Code) | | An implementation of Literal.
author: bwm and der version: Release='$Name: $' Revision='$Revision: 1.27 $' Date='$Date: 2008/01/02 12:05:01 $' |
LiteralImpl | public LiteralImpl(boolean b)(Code) | | |
LiteralImpl | public LiteralImpl(long l)(Code) | | |
LiteralImpl | public LiteralImpl(char c)(Code) | | |
LiteralImpl | public LiteralImpl(float f)(Code) | | |
LiteralImpl | public LiteralImpl(double d)(Code) | | |
LiteralImpl | public LiteralImpl(String s, boolean wellFormed)(Code) | | |
getBoolean | public boolean getBoolean()(Code) | | |
getByte | public byte getByte()(Code) | | |
getChar | public char getChar()(Code) | | |
getDatatype | public RDFDatatype getDatatype()(Code) | | Return the datatype of the literal. This will be null in the
case of plain literals.
|
getDatatypeURI | public String getDatatypeURI()(Code) | | Return the uri of the datatype of the literal. This will be null in the
case of plain literals.
|
getDouble | public double getDouble()(Code) | | |
getFloat | public float getFloat()(Code) | | |
getInt | public int getInt()(Code) | | |
getLexicalForm | public String getLexicalForm()(Code) | | Return the lexical form of the literal.
|
getLong | public long getLong()(Code) | | |
getShort | public short getShort()(Code) | | |
getValue | public Object getValue()(Code) | | Return the value of the literal. In the case of plain literals
this will return the literal string. In the case of typed literals
it will return a java object representing the value. In the case
of typed literals representing a java primitive then the appropriate
java wrapper class (Integer etc) will be returned.
|
getWellFormed | public boolean getWellFormed()(Code) | | |
inModel | public RDFNode inModel(Model m)(Code) | | Literals are not in any particular model, and so inModel can return this.
Parameters: m - a model to move the literal into this |
isPlainLiteral | public boolean isPlainLiteral()(Code) | | Return true if this is a "plain" (i.e. old style, not typed) literal.
|
isWellFormedXML | public boolean isWellFormedXML()(Code) | | |
sameValueAs | public boolean sameValueAs(Literal other)(Code) | | Test that two literals are semantically equivalent.
In some cases this may be the sames as equals, in others
equals is stricter. For example, two xsd:int literals with
the same value but different language tag are semantically
equivalent but distinguished by the java equality function
in order to support round tripping.
|
|
|