public class SAXUnmarshallerHandler extends Object implements ExtendedContentHandler
Purpose:An implementation of ContentHandler used to handle the root element of an XML Document during unmarshal.
Responsibilities:
| Constructor and Description |
|---|
SAXUnmarshallerHandler(Context xmlContext) |
public SAXUnmarshallerHandler(Context xmlContext)
public XMLReader getXMLReader()
public void setXMLReader(XMLReader xmlReader)
public Object getObject()
public void setObject(Object object)
public void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerpublic UnmarshalNamespaceResolver getUnmarshalNamespaceResolver()
public void setUnmarshalNamespaceResolver(UnmarshalNamespaceResolver unmarshalNamespaceResolver)
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerSAXExceptionpublic void resolveReferences()
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerSAXExceptionpublic void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement in interface ContentHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlerSAXExceptionpublic void characters(CharSequence characters) throws SAXException
characters in interface ExtendedContentHandlerSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionpublic void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerSAXExceptionpublic void setUnmarshaller(Unmarshaller unmarshaller)
public Unmarshaller getUnmarshaller()
public void setKeepAsElementPolicy(UnmarshalKeepAsElementPolicy policy)
public UnmarshalKeepAsElementPolicy getKeepAsElementPolicy()
public void setNil(boolean isNil)
ExtendedContentHandlersetNil in interface ExtendedContentHandlerEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference