Package org.apache.jena.graph.impl
Class AdhocDatatype
- java.lang.Object
-
- org.apache.jena.datatypes.BaseDatatype
-
- org.apache.jena.graph.impl.AdhocDatatype
-
- All Implemented Interfaces:
RDFDatatype
public class AdhocDatatype extends BaseDatatype
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jena.datatypes.BaseDatatype
BaseDatatype.TypedValue
-
-
Constructor Summary
Constructors Constructor Description AdhocDatatype(java.lang.Class<?> jc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getJavaClass()
Returns the java class which is used to represent value instances of this datatype.boolean
isValidValue(java.lang.Object value)
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 valuejava.lang.String
toString()
Display format-
Methods inherited from class org.apache.jena.datatypes.BaseDatatype
cannonicalise, extendedTypeDefinition, getHashCode, getURI, isEqual, isValid, isValidLiteral, langTagCompatible, normalizeSubType, unparse
-
-
-
-
Method Detail
-
isValidValue
public boolean isValidValue(java.lang.Object value)
Description copied from class:BaseDatatype
Test whether the given object is a legal value form of this datatype.- Specified by:
isValidValue
in interfaceRDFDatatype
- Overrides:
isValidValue
in classBaseDatatype
-
getJavaClass
public java.lang.Class<?> getJavaClass()
Description copied from class:BaseDatatype
Returns the java class which is used to represent value instances of this datatype.- Specified by:
getJavaClass
in interfaceRDFDatatype
- Overrides:
getJavaClass
in classBaseDatatype
-
parse
public java.lang.Object parse(java.lang.String lexicalForm)
Description copied from class:BaseDatatype
Parse a lexical form of this datatype to a value- Specified by:
parse
in interfaceRDFDatatype
- Overrides:
parse
in classBaseDatatype
-
toString
public java.lang.String toString()
Description copied from class:BaseDatatype
Display format- Overrides:
toString
in classBaseDatatype
-
-