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
ConstructorsConstructorDescriptionSAXUnmarshaller(Unmarshaller xmlUnmarshaller, Map<String, Boolean> parserFeatures) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanfinal booleanvoidfinal voidsetDisableSecureProcessing(boolean disableSecureProcessing) voidsetEntityResolver(EntityResolver entityResolver) voidsetErrorHandler(ErrorHandler errorHandler) voidsetResultAlwaysXMLRoot(boolean alwaysReturnRoot) voidvoidsetSchemas(Object[] schemas) voidsetValidationMode(int validationMode) voidsetValidationMode(XMLReader xmlReader, int validationMode) voidsetWhitespacePreserving(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:
getEntityResolverin interfacePlatformUnmarshaller
-
setEntityResolver
- Specified by:
setEntityResolverin interfacePlatformUnmarshaller
-
getErrorHandler
- Specified by:
getErrorHandlerin interfacePlatformUnmarshaller
-
setErrorHandler
- Specified by:
setErrorHandlerin interfacePlatformUnmarshaller
-
getValidationMode
public int getValidationMode()- Specified by:
getValidationModein interfacePlatformUnmarshaller
-
setValidationMode
public void setValidationMode(int validationMode) - Specified by:
setValidationModein interfacePlatformUnmarshaller
-
setValidationMode
-
setWhitespacePreserving
public void setWhitespacePreserving(boolean isWhitespacePreserving) - Specified by:
setWhitespacePreservingin interfacePlatformUnmarshaller
-
setSchemas
- Specified by:
setSchemasin interfacePlatformUnmarshaller
-
setSchema
- Specified by:
setSchemain interfacePlatformUnmarshaller
-
getSchema
- Specified by:
getSchemain interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
-
unmarshal
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
isResultAlwaysXMLRoot
public boolean isResultAlwaysXMLRoot()- Specified by:
isResultAlwaysXMLRootin interfacePlatformUnmarshaller
-
setResultAlwaysXMLRoot
public void setResultAlwaysXMLRoot(boolean alwaysReturnRoot) - Specified by:
setResultAlwaysXMLRootin interfacePlatformUnmarshaller
-
mediaTypeChanged
public void mediaTypeChanged()- Specified by:
mediaTypeChangedin interfacePlatformUnmarshaller
-
isSecureProcessingDisabled
public final boolean isSecureProcessingDisabled()- Specified by:
isSecureProcessingDisabledin interfacePlatformUnmarshaller
-
setDisableSecureProcessing
public final void setDisableSecureProcessing(boolean disableSecureProcessing) - Specified by:
setDisableSecureProcessingin interfacePlatformUnmarshaller
-