Interface ILcdXMLDatatypeUnmarshaller<T>


public interface ILcdXMLDatatypeUnmarshaller<T>
Converts lexical representations of XML values of the XML Schema datatype for which this parser was written to corresponding Java class instances representing these values.

If an XML value has multiple lexical representations, the parser should be capable of handling all representations. For more information on XML Schema datatypes, see the XML Schema specification.

Since:
9.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    unmarshal(String aLexicalValue, XMLStreamReader aReader, ILcdXMLDocumentContext aContext)
    Converts the lexical representation of an XML value to a corresponding Java class instance representing this value.
  • Method Details

    • unmarshal

      T unmarshal(String aLexicalValue, XMLStreamReader aReader, ILcdXMLDocumentContext aContext) throws XMLStreamException
      Converts the lexical representation of an XML value to a corresponding Java class instance representing this value.
      Parameters:
      aLexicalValue - the XML lexical representation of the XML value to be converted.
      aReader - the StAX reader where the lexical value was unmarshalled from
      aContext - an ILcdXMLDocumentContext which can be used to store and retrieve information which is shared between multiple unmarshallers. This context is unique per unmarshalled XML document.
      Returns:
      a Java class instance representing the XML value.
      Throws:
      IllegalArgumentException - if the specified object is not part of the lexical space of the XML Schema datatype for which this parser was written.
      XMLStreamException - if an exception occurs during retrieving the value from the XMLStreamReader.