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 Constructor Description DefaultUnmappedContentHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)voidendDocument()voidendElement(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)voidstartDocument()voidstartElement(String uri, String localName, String name, Attributes atts)voidstartPrefixMapping(String prefix, String uri)
-
-
-
Method Detail
-
setUnmarshalRecord
public void setUnmarshalRecord(UNMARSHAL_RECORD unmarshalRecord)
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
public void characters(char[] ch, int start, int length) throws SAXException- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
endElement
public void endElement(String uri, String localName, String name) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
processingInstruction
public void processingInstruction(String target, String data) throws SAXException
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
skippedEntity
public void skippedEntity(String name) throws SAXException
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
startDocument
public void startDocument() throws SAXException- 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
public void startPrefixMapping(String prefix, String uri) throws SAXException
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
-