Module org.eclipse.persistence.core
Class XMLReaderAdapter
java.lang.Object
org.eclipse.persistence.internal.oxm.record.XMLReader
org.eclipse.persistence.internal.oxm.record.XMLReaderAdapter
- All Implemented Interfaces:
XMLReader
- Direct Known Subclasses:
DOMReader
,JsonParserReader
,JsonStructureReader
,XMLEventReaderReader
,XMLStreamReaderReader
A common super class for all non SAX based XMLReaders.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
static class
Convert a ContentHandler to an ExtendedContentHandlerprotected static class
Nested classes/interfaces inherited from class org.eclipse.persistence.internal.oxm.record.XMLReader
XMLReader.ValidatingContentHandler
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.oxm.record.XMLReader
locator, NAMESPACE_PREFIXES_FEATURE, REPORT_IGNORED_ELEMENT_CONTENT_WHITESPACE_FEATURE, validatingContentHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getFeature
(String name) getProperty
(String name) void
void
setContentHandler
(ContentHandler contentHandler) void
setDTDHandler
(DTDHandler dtdHandler) void
setEntityResolver
(EntityResolver entityResolver) void
setErrorHandler
(ErrorHandler errorHandler) void
setFeature
(String name, boolean value) void
setLexicalHandler
(LexicalHandler lexicalHandler) void
setProperty
(String name, Object value) Methods inherited from class org.eclipse.persistence.internal.oxm.record.XMLReader
convertValueBasedOnSchemaType, getCurrentObject, getLocator, getMediaType, getNamespaceSeparator, getValidatorHandler, getValue, isInCollection, isNamespaceAware, isNullRecord, isNullRepresentedByXsiNil, newObjectEvent, parse, setLocator, setNamespaceAware, setNamespaceSeparator, setValidatorHandler
-
Field Details
-
contentHandler
-
lexicalHandler
-
-
Constructor Details
-
XMLReaderAdapter
protected XMLReaderAdapter() -
XMLReaderAdapter
-
-
Method Details
-
getContentHandler
- Specified by:
getContentHandler
in interfaceXMLReader
- Overrides:
getContentHandler
in classXMLReader
-
setContentHandler
- Specified by:
setContentHandler
in interfaceXMLReader
- Overrides:
setContentHandler
in classXMLReader
-
getDTDHandler
- Specified by:
getDTDHandler
in interfaceXMLReader
- Overrides:
getDTDHandler
in classXMLReader
-
setDTDHandler
- Specified by:
setDTDHandler
in interfaceXMLReader
- Overrides:
setDTDHandler
in classXMLReader
-
getEntityResolver
- Specified by:
getEntityResolver
in interfaceXMLReader
- Overrides:
getEntityResolver
in classXMLReader
-
setEntityResolver
- Specified by:
setEntityResolver
in interfaceXMLReader
- Overrides:
setEntityResolver
in classXMLReader
-
getErrorHandler
- Specified by:
getErrorHandler
in interfaceXMLReader
- Overrides:
getErrorHandler
in classXMLReader
-
setErrorHandler
- Specified by:
setErrorHandler
in interfaceXMLReader
- Overrides:
setErrorHandler
in classXMLReader
-
getLexicalHandler
- Overrides:
getLexicalHandler
in classXMLReader
-
setLexicalHandler
- Overrides:
setLexicalHandler
in classXMLReader
-
getFeature
- Specified by:
getFeature
in interfaceXMLReader
- Overrides:
getFeature
in classXMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
setFeature
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException - Specified by:
setFeature
in interfaceXMLReader
- Overrides:
setFeature
in classXMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
getProperty
- Specified by:
getProperty
in interfaceXMLReader
- Overrides:
getProperty
in classXMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
setProperty
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException - Specified by:
setProperty
in interfaceXMLReader
- Overrides:
setProperty
in classXMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
parse
-