Package org.apache.jena.reasoner.rulesys
Class FunctorDatatype
- java.lang.Object
-
- org.apache.jena.datatypes.BaseDatatype
-
- org.apache.jena.reasoner.rulesys.FunctorDatatype
-
- All Implemented Interfaces:
RDFDatatype
public class FunctorDatatype extends BaseDatatype
Datatype definition for functor-valued literals.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jena.datatypes.BaseDatatype
BaseDatatype.TypedValue
-
-
Field Summary
Fields Modifier and Type Field Description static RDFDatatype
theFunctorDatatype
Used when print a functor as an RDF literal, and in parsing tests
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEqual(LiteralLabel value1, LiteralLabel value2)
Compares two instances of values of the given datatype.java.lang.Object
parse(java.lang.String lexicalForm)
Parse a lexical form of this datatype to a valuejava.lang.String
unparse(java.lang.Object value)
Convert a value of this datatype out to lexical form.-
Methods inherited from class org.apache.jena.datatypes.BaseDatatype
cannonicalise, extendedTypeDefinition, getHashCode, getJavaClass, getURI, isValid, isValidLiteral, isValidValue, langTagCompatible, normalizeSubType, toString
-
-
-
-
Field Detail
-
theFunctorDatatype
public static final RDFDatatype theFunctorDatatype
Used when print a functor as an RDF literal, and in parsing tests
-
-
Method Detail
-
isEqual
public boolean isEqual(LiteralLabel value1, LiteralLabel value2)
Compares two instances of values of the given datatype.- Specified by:
isEqual
in interfaceRDFDatatype
- Overrides:
isEqual
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
-
unparse
public java.lang.String unparse(java.lang.Object value)
Description copied from class:BaseDatatype
Convert a value of this datatype out to lexical form.- Specified by:
unparse
in interfaceRDFDatatype
- Overrides:
unparse
in classBaseDatatype
-
-