Class XMLUnmarshaller

java.lang.Object
com.highdeal.hci.XMLUnmarshaller
All Implemented Interfaces:
ContentHandler

public class XMLUnmarshaller extends Object implements ContentHandler
This class supports the HCI infrastructure and should not be used directly in your code.
  • Constructor Summary

    Constructors
    Constructor
    Description
    This method supports the HCI infrastructure and should not be used directly in your code.
    This method supports the HCI infrastructure and should not be used directly in your code.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    characters(char[] ch, int start, int length)
    This method supports the HCI infrastructure and should not be used directly in your code.
    void
    This method supports the HCI infrastructure and should not be used directly in your code.
    void
    endElement(String nsUri, String localName, String qName)
    This method supports the HCI infrastructure and should not be used directly in your code.
    void
    This method supports the HCI infrastructure and should not be used directly in your code.
    This method supports the HCI infrastructure and should not be used directly in your code.
    This method supports the HCI infrastructure and should not be used directly in your code.
    void
    ignorableWhitespace(char[] ch, int start, int length)
    This method supports the HCI infrastructure and should not be used directly in your code.
    void
    This method supports the HCI infrastructure and should not be used directly in your code.
    void
    This method supports the HCI infrastructure and should not be used directly in your code.
    void
    This method supports the HCI infrastructure and should not be used directly in your code.
    void
    This method supports the HCI infrastructure and should not be used directly in your code.
    void
    startElement(String nsUri, String localName, String qName, Attributes atts)
    This method supports the HCI infrastructure and should not be used directly in your code.
    void
    This method supports the HCI infrastructure and should not be used directly in your code.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.xml.sax.ContentHandler

    declaration
  • Constructor Details

    • XMLUnmarshaller

      public XMLUnmarshaller(XMLMapping map)
      This method supports the HCI infrastructure and should not be used directly in your code. The UTF-8 encoding is the default encoding. On parse operation if the encoding is not supported a SAXException is throw.
      Parameters:
      map - the mapping between the tag and the classes
    • XMLUnmarshaller

      public XMLUnmarshaller(XMLMapping map, String encoding)
      This method supports the HCI infrastructure and should not be used directly in your code. On parse operation if the encoding is not supported a SAXException is throw.
      Parameters:
      map - the mapping between the tag and the classes
      encoding - the encoding supported, if it is null all encodings are supported.
  • Method Details

    • setDocumentLocator

      public void setDocumentLocator(Locator l)
      This method supports the HCI infrastructure and should not be used directly in your code.
      Specified by:
      setDocumentLocator in interface ContentHandler
      Parameters:
      l - the document locator
    • startDocument

      public void startDocument()
      This method supports the HCI infrastructure and should not be used directly in your code.
      Specified by:
      startDocument in interface ContentHandler
    • endDocument

      public void endDocument()
      This method supports the HCI infrastructure and should not be used directly in your code.
      Specified by:
      endDocument in interface ContentHandler
    • startPrefixMapping

      public void startPrefixMapping(String prefix, String uri)
      This method supports the HCI infrastructure and should not be used directly in your code.
      Specified by:
      startPrefixMapping in interface ContentHandler
      Parameters:
      prefix - the prefix
      uri - the uri
    • endPrefixMapping

      public void endPrefixMapping(String prefix)
      This method supports the HCI infrastructure and should not be used directly in your code.
      Specified by:
      endPrefixMapping in interface ContentHandler
      Parameters:
      prefix - the prefix
    • startElement

      public void startElement(String nsUri, String localName, String qName, Attributes atts) throws SAXException
      This method supports the HCI infrastructure and should not be used directly in your code.
      Specified by:
      startElement in interface ContentHandler
      Parameters:
      nsUri - the nsUri
      localName - the local name
      qName - the qName
      atts - the attributes
      Throws:
      SAXException - for invalid xml format
    • characters

      public void characters(char[] ch, int start, int length)
      This method supports the HCI infrastructure and should not be used directly in your code.
      Specified by:
      characters in interface ContentHandler
      Parameters:
      ch - the characters
      start - the start index
      length - the length
    • ignorableWhitespace

      public void ignorableWhitespace(char[] ch, int start, int length)
      This method supports the HCI infrastructure and should not be used directly in your code.
      Specified by:
      ignorableWhitespace in interface ContentHandler
      Parameters:
      ch - the characters
      start - the start index
      length - the length
    • endElement

      public void endElement(String nsUri, String localName, String qName)
      This method supports the HCI infrastructure and should not be used directly in your code.
      Specified by:
      endElement in interface ContentHandler
      Parameters:
      nsUri - the nsUri
      localName - the local name
      qName - the qName
    • processingInstruction

      public void processingInstruction(String pi, String pp)
      This method supports the HCI infrastructure and should not be used directly in your code.
      Specified by:
      processingInstruction in interface ContentHandler
      Parameters:
      pi - the pi
      pp - the pp
    • skippedEntity

      public void skippedEntity(String entity)
      This method supports the HCI infrastructure and should not be used directly in your code.
      Specified by:
      skippedEntity in interface ContentHandler
      Parameters:
      entity - the entity
    • getXMLMarshallable

      public XMLMarshallable getXMLMarshallable()
      This method supports the HCI infrastructure and should not be used directly in your code.
      Returns:
      the xml marshallable extracted from the xml stream
    • getResolver

      public ReferenceResolver getResolver()
      This method supports the HCI infrastructure and should not be used directly in your code.
      Returns:
      return the resolver