Module org.eclipse.persistence.core
Class SAXUnmarshaller
java.lang.Object
org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller
- All Implemented Interfaces:
PlatformUnmarshaller
INTERNAL:
Purpose:Provide an implementation of PlatformUnmarshaller that makes use of the SAX parser to build Java Objects from SAX Events.
Responsibilities:
- Implement the required unmarshal methods from PlatformUnmarshaller
- Check to see if document preservation is enabled, and if so, always unmarshal from a node
- See Also:
-
Constructor Summary
ConstructorDescriptionSAXUnmarshaller
(Unmarshaller xmlUnmarshaller, Map<String, Boolean> parserFeatures) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
final boolean
void
final void
setDisableSecureProcessing
(boolean disableSecureProcessing) void
setEntityResolver
(EntityResolver entityResolver) void
setErrorHandler
(ErrorHandler errorHandler) void
setResultAlwaysXMLRoot
(boolean alwaysReturnRoot) void
void
setSchemas
(Object[] schemas) void
setValidationMode
(int validationMode) void
setValidationMode
(XMLReader xmlReader, int validationMode) void
setWhitespacePreserving
(boolean isWhitespacePreserving) unmarshal
(InputStream inputStream) unmarshal
(InputStream inputStream, Class<?> clazz) unmarshal
(InputSource inputSource) unmarshal
(InputSource inputSource, Class<?> clazz) unmarshal
(InputSource inputSource, Class<?> clazz, XMLReader xmlReader) unmarshal
(InputSource inputSource, XMLReader xmlReader) unmarshal
(XMLReader xmlReader, InputSource inputSource) unmarshal
(XMLReader xmlReader, InputSource inputSource, Class<?> clazz)
-
Constructor Details
-
SAXUnmarshaller
public SAXUnmarshaller(Unmarshaller xmlUnmarshaller, Map<String, Boolean> parserFeatures) throws XMLMarshalException- Throws:
XMLMarshalException
-
-
Method Details
-
getEntityResolver
- Specified by:
getEntityResolver
in interfacePlatformUnmarshaller
-
setEntityResolver
- Specified by:
setEntityResolver
in interfacePlatformUnmarshaller
-
getErrorHandler
- Specified by:
getErrorHandler
in interfacePlatformUnmarshaller
-
setErrorHandler
- Specified by:
setErrorHandler
in interfacePlatformUnmarshaller
-
getValidationMode
public int getValidationMode()- Specified by:
getValidationMode
in interfacePlatformUnmarshaller
-
setValidationMode
public void setValidationMode(int validationMode) - Specified by:
setValidationMode
in interfacePlatformUnmarshaller
-
setValidationMode
-
setWhitespacePreserving
public void setWhitespacePreserving(boolean isWhitespacePreserving) - Specified by:
setWhitespacePreserving
in interfacePlatformUnmarshaller
-
setSchemas
- Specified by:
setSchemas
in interfacePlatformUnmarshaller
-
setSchema
- Specified by:
setSchema
in interfacePlatformUnmarshaller
-
getSchema
- Specified by:
getSchema
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
-
unmarshal
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
isResultAlwaysXMLRoot
public boolean isResultAlwaysXMLRoot()- Specified by:
isResultAlwaysXMLRoot
in interfacePlatformUnmarshaller
-
setResultAlwaysXMLRoot
public void setResultAlwaysXMLRoot(boolean alwaysReturnRoot) - Specified by:
setResultAlwaysXMLRoot
in interfacePlatformUnmarshaller
-
mediaTypeChanged
public void mediaTypeChanged()- Specified by:
mediaTypeChanged
in interfacePlatformUnmarshaller
-
isSecureProcessingDisabled
public final boolean isSecureProcessingDisabled()- Specified by:
isSecureProcessingDisabled
in interfacePlatformUnmarshaller
-
setDisableSecureProcessing
public final void setDisableSecureProcessing(boolean disableSecureProcessing) - Specified by:
setDisableSecureProcessing
in interfacePlatformUnmarshaller
-