com.highdeal.hci
Class XMLUnmarshaller

java.lang.Object
  extended by com.highdeal.hci.XMLUnmarshaller
All Implemented Interfaces:
org.xml.sax.ContentHandler

public class XMLUnmarshaller
extends java.lang.Object
implements org.xml.sax.ContentHandler

This class supports the HCI infrastructure and should not be used directly in your code.


Constructor Summary
XMLUnmarshaller(XMLMapping map)
          This method supports the HCI infrastructure and should not be used directly in your code.
XMLUnmarshaller(XMLMapping map, java.lang.String encoding)
          This method supports the HCI infrastructure and should not be used directly in your code.
 
Method Summary
 void characters(char[] ch, int start, int length)
          This method supports the HCI infrastructure and should not be used directly in your code.
 void endDocument()
          This method supports the HCI infrastructure and should not be used directly in your code.
 void endElement(java.lang.String nsUri, java.lang.String localName, java.lang.String qName)
          This method supports the HCI infrastructure and should not be used directly in your code.
 void endPrefixMapping(java.lang.String prefix)
          This method supports the HCI infrastructure and should not be used directly in your code.
 ReferenceResolver getResolver()
          This method supports the HCI infrastructure and should not be used directly in your code.
protected  java.lang.String getTagName(java.lang.String nsUri, java.lang.String localName, java.lang.String qName)
           
 XMLMarshallable getXMLMarshallable()
          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 processingInstruction(java.lang.String pi, java.lang.String pp)
          This method supports the HCI infrastructure and should not be used directly in your code.
 void setDocumentLocator(org.xml.sax.Locator l)
          This method supports the HCI infrastructure and should not be used directly in your code.
 void skippedEntity(java.lang.String entity)
          This method supports the HCI infrastructure and should not be used directly in your code.
 void startDocument()
          This method supports the HCI infrastructure and should not be used directly in your code.
 void startElement(java.lang.String nsUri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
          This method supports the HCI infrastructure and should not be used directly in your code.
 void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
          This method supports the HCI infrastructure and should not be used directly in your code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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,
                       java.lang.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 Detail

setDocumentLocator

public void setDocumentLocator(org.xml.sax.Locator l)
This method supports the HCI infrastructure and should not be used directly in your code.

Specified by:
setDocumentLocator in interface org.xml.sax.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 org.xml.sax.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 org.xml.sax.ContentHandler

startPrefixMapping

public void startPrefixMapping(java.lang.String prefix,
                               java.lang.String uri)
This method supports the HCI infrastructure and should not be used directly in your code.

Specified by:
startPrefixMapping in interface org.xml.sax.ContentHandler
Parameters:
prefix - the prefix
uri - the uri

endPrefixMapping

public void endPrefixMapping(java.lang.String prefix)
This method supports the HCI infrastructure and should not be used directly in your code.

Specified by:
endPrefixMapping in interface org.xml.sax.ContentHandler
Parameters:
prefix - the prefix

startElement

public void startElement(java.lang.String nsUri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
This method supports the HCI infrastructure and should not be used directly in your code.

Specified by:
startElement in interface org.xml.sax.ContentHandler
Parameters:
nsUri - the nsUri
localName - the local name
qName - the qName
atts - the attributes
Throws:
org.xml.sax.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 org.xml.sax.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 org.xml.sax.ContentHandler
Parameters:
ch - the characters
start - the start index
length - the length

endElement

public void endElement(java.lang.String nsUri,
                       java.lang.String localName,
                       java.lang.String qName)
This method supports the HCI infrastructure and should not be used directly in your code.

Specified by:
endElement in interface org.xml.sax.ContentHandler
Parameters:
nsUri - the nsUri
localName - the local name
qName - the qName

processingInstruction

public void processingInstruction(java.lang.String pi,
                                  java.lang.String pp)
This method supports the HCI infrastructure and should not be used directly in your code.

Specified by:
processingInstruction in interface org.xml.sax.ContentHandler
Parameters:
pi - the pi
pp - the pp

skippedEntity

public void skippedEntity(java.lang.String entity)
This method supports the HCI infrastructure and should not be used directly in your code.

Specified by:
skippedEntity in interface org.xml.sax.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

getTagName

protected java.lang.String getTagName(java.lang.String nsUri,
                                      java.lang.String localName,
                                      java.lang.String qName)

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)