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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidvoidendElement(String uri, String localName, String name) voidendPrefixMapping(String prefix) voidignorableWhitespace(char[] ch, int start, int length) voidprocessingInstruction(String target, String data) voidsetDocumentLocator(Locator locator) voidsetUnmarshalRecord(UNMARSHAL_RECORD unmarshalRecord) Set the UnmarshalRecord which gives access to mechanisms used during the unmarshal process such as an Unmarshaller and a Session.voidskippedEntity(String name) voidvoidstartElement(String uri, String localName, String name, Attributes atts) voidstartPrefixMapping(String prefix, String uri) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
DefaultUnmappedContentHandler
public DefaultUnmappedContentHandler()
-
-
Method Details
-
setUnmarshalRecord
Description copied from interface:UnmappedContentHandlerSet the UnmarshalRecord which gives access to mechanisms used during the unmarshal process such as an Unmarshaller and a Session.- Specified by:
setUnmarshalRecordin interfaceUnmappedContentHandler<UNMARSHAL_RECORD extends UnmarshalRecord>
-
characters
- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String name, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-