Class XSDBaseStringType
- java.lang.Object
-
- org.apache.jena.datatypes.BaseDatatype
-
- org.apache.jena.datatypes.xsd.XSDDatatype
-
- org.apache.jena.datatypes.xsd.impl.XSDBaseStringType
-
- All Implemented Interfaces:
RDFDatatype
public class XSDBaseStringType extends XSDDatatype
Base implementation for all string datatypes derived from xsd:string. The only purpose of this place holder is to support the isValidLiteral tests across string types.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jena.datatypes.xsd.XSDDatatype
XSDDatatype.XSDGenericType
-
Nested classes/interfaces inherited from class org.apache.jena.datatypes.BaseDatatype
BaseDatatype.TypedValue
-
-
Field Summary
-
Fields inherited from class org.apache.jena.datatypes.xsd.XSDDatatype
XSD, XSDanyURI, XSDbase64Binary, XSDboolean, XSDbyte, XSDdate, XSDdateTime, XSDdateTimeStamp, XSDdayTimeDuration, XSDdecimal, XSDdouble, XSDduration, XSDENTITY, XSDfloat, XSDgDay, XSDgMonth, XSDgMonthDay, XSDgYear, XSDgYearMonth, XSDhexBinary, XSDID, XSDIDREF, XSDint, XSDinteger, XSDlanguage, XSDlong, XSDName, XSDNCName, XSDnegativeInteger, XSDNMTOKEN, XSDnonNegativeInteger, XSDnonPositiveInteger, XSDnormalizedString, XSDNOTATION, XSDpositiveInteger, XSDQName, XSDshort, XSDstring, XSDtime, XSDtoken, XSDunsignedByte, XSDunsignedInt, XSDunsignedLong, XSDunsignedShort, XSDyearMonthDuration
-
-
Constructor Summary
Constructors Constructor Description XSDBaseStringType(java.lang.String typeName)
Constructor.XSDBaseStringType(java.lang.String typeName, java.lang.Class<?> javaClass)
Constructor.
-
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.-
Methods inherited from class org.apache.jena.datatypes.xsd.XSDDatatype
extendedTypeDefinition, getJavaClass, isBaseTypeCompatible, isValidLiteral, loadXSDSimpleTypes, main, parse, parseValidated, trimPlus, unparse
-
Methods inherited from class org.apache.jena.datatypes.BaseDatatype
cannonicalise, getHashCode, getURI, isValid, isValidValue, langTagCompatible, normalizeSubType, toString
-
-
-
-
Constructor Detail
-
XSDBaseStringType
public XSDBaseStringType(java.lang.String typeName)
Constructor.- Parameters:
typeName
- the name of the XSD type to be instantiated, this is used to lookup a type definition from the Xerces schema factory.
-
XSDBaseStringType
public XSDBaseStringType(java.lang.String typeName, java.lang.Class<?> javaClass)
Constructor.- Parameters:
typeName
- the name of the XSD type to be instantiated, this is used to lookup a type definition from the Xerces schema factory.javaClass
- the java class for which this xsd type is to be treated as the cannonical representation
-
-
Method Detail
-
isEqual
public boolean isEqual(LiteralLabel value1, LiteralLabel value2)
Compares two instances of values of the given datatype. This ignores lang tags and optionally allows plain literals to equate to strings. The latter option is currently set by a static global flag in LiteralLabel.- Specified by:
isEqual
in interfaceRDFDatatype
- Overrides:
isEqual
in classXSDDatatype
-
-