public class AdhocDatatype extends BaseDatatype
BaseDatatype.TypedValue
Constructor and Description |
---|
AdhocDatatype(Class<?> jc) |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getJavaClass()
Returns the java class which is used to represent value
instances of this datatype.
|
boolean |
isValidValue(Object value)
Test whether the given object is a legal value form
of this datatype.
|
Object |
parse(String lexicalForm)
Parse a lexical form of this datatype to a value
|
String |
toString()
Display format
|
cannonicalise, extendedTypeDefinition, getHashCode, getURI, isEqual, isValid, isValidLiteral, langTagCompatible, normalizeSubType, unparse
public AdhocDatatype(Class<?> jc)
public boolean isValidValue(Object value)
BaseDatatype
isValidValue
in interface RDFDatatype
isValidValue
in class BaseDatatype
public Class<?> getJavaClass()
BaseDatatype
getJavaClass
in interface RDFDatatype
getJavaClass
in class BaseDatatype
public Object parse(String lexicalForm)
BaseDatatype
parse
in interface RDFDatatype
parse
in class BaseDatatype
public String toString()
BaseDatatype
toString
in class BaseDatatype
Licenced under the Apache License, Version 2.0