|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.datatypes.BaseDatatype
public class BaseDatatype
Base level implementation of datatype from which real implementations can inherit.
| Nested Class Summary | |
|---|---|
static class |
BaseDatatype.TypedValue
Pair object used to encode both lexical form and datatype for a typed literal with unknown datatype. |
| Constructor Summary | |
|---|---|
BaseDatatype(java.lang.String uri)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
cannonicalise(java.lang.Object value)
Cannonicalise a java Object value to a normal form. |
java.lang.Object |
extendedTypeDefinition()
Returns an object giving more details on the datatype. |
int |
getHashCode(com.hp.hpl.jena.graph.impl.LiteralLabel lit)
Default implementation of getHashCode() delegates to the default from the literal label. |
java.lang.Class |
getJavaClass()
Returns the java class which is used to represent value instances of this datatype. |
java.lang.String |
getURI()
Return the URI which is the label for this datatype |
boolean |
isEqual(com.hp.hpl.jena.graph.impl.LiteralLabel value1,
com.hp.hpl.jena.graph.impl.LiteralLabel value2)
Compares two instances of values of the given datatype. |
boolean |
isValid(java.lang.String lexicalForm)
Test whether the given string is a legal lexical form of this datatype. |
boolean |
isValidLiteral(com.hp.hpl.jena.graph.impl.LiteralLabel lit)
Test whether the given LiteralLabel is a valid instance of this datatype. |
boolean |
isValidValue(java.lang.Object valueForm)
Test whether the given object is a legal value form of this datatype. |
boolean |
langTagCompatible(com.hp.hpl.jena.graph.impl.LiteralLabel value1,
com.hp.hpl.jena.graph.impl.LiteralLabel value2)
Helper function to compare language tag values |
RDFDatatype |
normalizeSubType(java.lang.Object value,
RDFDatatype dt)
Normalization. |
java.lang.Object |
parse(java.lang.String lexicalForm)
Parse a lexical form of this datatype to a value |
java.lang.String |
toString()
Display format |
java.lang.String |
unparse(java.lang.Object value)
Convert a value of this datatype out to lexical form. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BaseDatatype(java.lang.String uri)
uri - the URI label to use for this datatype| Method Detail |
|---|
public java.lang.String getURI()
getURI in interface RDFDatatypepublic java.lang.String unparse(java.lang.Object value)
unparse in interface RDFDatatype
public java.lang.Object parse(java.lang.String lexicalForm)
throws DatatypeFormatException
parse in interface RDFDatatypeDatatypeFormatException - if the lexical form is not legalpublic boolean isValid(java.lang.String lexicalForm)
isValid in interface RDFDatatypepublic boolean isValidLiteral(com.hp.hpl.jena.graph.impl.LiteralLabel lit)
isValidLiteral in interface RDFDatatypepublic boolean isValidValue(java.lang.Object valueForm)
isValidValue in interface RDFDatatype
public boolean isEqual(com.hp.hpl.jena.graph.impl.LiteralLabel value1,
com.hp.hpl.jena.graph.impl.LiteralLabel value2)
isEqual in interface RDFDatatypepublic int getHashCode(com.hp.hpl.jena.graph.impl.LiteralLabel lit)
getHashCode in interface RDFDatatype
public boolean langTagCompatible(com.hp.hpl.jena.graph.impl.LiteralLabel value1,
com.hp.hpl.jena.graph.impl.LiteralLabel value2)
public java.lang.Class getJavaClass()
getJavaClass in interface RDFDatatypepublic java.lang.Object cannonicalise(java.lang.Object value)
cannonicalise in interface RDFDatatypepublic java.lang.Object extendedTypeDefinition()
org.apache.xerces.impl.xs.psvi.XSTypeDefinition.
extendedTypeDefinition in interface RDFDatatype
public RDFDatatype normalizeSubType(java.lang.Object value,
RDFDatatype dt)
normalizeSubType in interface RDFDatatypevalue - the current object valuedt - the currently set data type
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||