|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface on a datatype representation. An instance of this interface is needed to convert typed literals between lexical and value forms.
Method Summary | |
java.lang.Object |
extendedTypeDefinition()
Returns an object giving more details on the datatype. |
java.lang.Class |
getJavaClass()
If this datatype is used as the cannonical representation for a particular java datatype then return that java type, otherwise returns null. |
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. |
java.lang.Object |
parse(java.lang.String lexicalForm)
Parse a lexical form of this datatype to a value |
java.lang.String |
unparse(java.lang.Object value)
Convert a value of this datatype out to lexical form. |
Method Detail |
public java.lang.String getURI()
public java.lang.String unparse(java.lang.Object value)
public java.lang.Object parse(java.lang.String lexicalForm) throws DatatypeFormatException
DatatypeFormatException
- if the lexical form is not legalpublic boolean isValid(java.lang.String lexicalForm)
public boolean isValidValue(java.lang.Object valueForm)
public boolean isValidLiteral(com.hp.hpl.jena.graph.impl.LiteralLabel lit)
public boolean isEqual(com.hp.hpl.jena.graph.impl.LiteralLabel value1, com.hp.hpl.jena.graph.impl.LiteralLabel value2)
public java.lang.Class getJavaClass()
public java.lang.Object extendedTypeDefinition()
org.apache.xerces.impl.xs.dv.XSSimpleType
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |