Module org.eclipse.persistence.core
Class DefaultUnmappedContentHandler<UNMARSHAL_RECORD extends UnmarshalRecord>
java.lang.Object
org.eclipse.persistence.internal.oxm.unmapped.DefaultUnmappedContentHandler<UNMARSHAL_RECORD>
- All Implemented Interfaces:
UnmappedContentHandler<UNMARSHAL_RECORD>
,ContentHandler
- Direct Known Subclasses:
DefaultUnmappedContentHandler
public class DefaultUnmappedContentHandler<UNMARSHAL_RECORD extends UnmarshalRecord>
extends Object
implements UnmappedContentHandler<UNMARSHAL_RECORD>
Purpose:Provide a default implementation of the UnmappedContentHandler
Responsibilities:
- This handler swallows all SAX events corresponding to unmapped content so when used unmapped content will not be processed.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
void
endElement
(String uri, String localName, String name) void
endPrefixMapping
(String prefix) void
ignorableWhitespace
(char[] ch, int start, int length) void
processingInstruction
(String target, String data) void
setDocumentLocator
(Locator locator) void
setUnmarshalRecord
(UNMARSHAL_RECORD unmarshalRecord) Set the UnmarshalRecord which gives access to mechanisms used during the unmarshal process such as an Unmarshaller and a Session.void
skippedEntity
(String name) void
void
startElement
(String uri, String localName, String name, Attributes atts) void
startPrefixMapping
(String prefix, String uri) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
DefaultUnmappedContentHandler
public DefaultUnmappedContentHandler()
-
-
Method Details
-
setUnmarshalRecord
Description copied from interface:UnmappedContentHandler
Set the UnmarshalRecord which gives access to mechanisms used during the unmarshal process such as an Unmarshaller and a Session.- Specified by:
setUnmarshalRecord
in interfaceUnmappedContentHandler<UNMARSHAL_RECORD extends UnmarshalRecord>
-
characters
- Specified by:
characters
in interfaceContentHandler
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
- Throws:
SAXException
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String name, Attributes atts) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-