Class XsdValueParser
java.lang.Object
fr.inria.rules.integraal.model.logicalElements.impl.literals.types.XsdValueParser
Central parser for XSD 1.1 built-in datatypes.
Conversion rules: - xsd:boolean => Boolean - All integer-derived => Long - decimal, float, double => Double - durations => javax.xml.datatype.Duration - date/time types => XMLGregorianCalendar - hexBinary, base64Binary => byte[] - anyURI => java.net.URI - QName, NOTATION => javax.xml.namespace.QName - NMTOKENS, IDREFS, ENTITIES => List<String> - Everything else => String
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectparseValue(String lexicalForm, XsdDataType dataType) Parses a lexical form according to anXsdDataType.static ObjectparseValue(String lexicalForm, String xsdType) Parses a lexical form according to an XSD type reference.
-
Method Details
-
parseValue
-
parseValue
Parses a lexical form according to anXsdDataType.- Parameters:
lexicalForm- the lexical value to parsedataType- the datatype to apply- Returns:
- the parsed Java value
-