Class SAXUnmarshaller
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller
-
- All Implemented Interfaces:
PlatformUnmarshaller
public class SAXUnmarshaller extends Object implements 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
- Author:
- bdoughan
- See Also:
SAXPlatform
-
-
Constructor Summary
Constructors Constructor Description SAXUnmarshaller(Unmarshaller xmlUnmarshaller, Map<String,Boolean> parserFeatures)
-
Method Summary
-
-
-
Constructor Detail
-
SAXUnmarshaller
public SAXUnmarshaller(Unmarshaller xmlUnmarshaller, Map<String,Boolean> parserFeatures) throws XMLMarshalException
- Throws:
XMLMarshalException
-
-
Method Detail
-
getEntityResolver
public EntityResolver getEntityResolver()
- Specified by:
getEntityResolver
in interfacePlatformUnmarshaller
-
setEntityResolver
public void setEntityResolver(EntityResolver entityResolver)
- Specified by:
setEntityResolver
in interfacePlatformUnmarshaller
-
getErrorHandler
public ErrorHandler getErrorHandler()
- Specified by:
getErrorHandler
in interfacePlatformUnmarshaller
-
setErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)
- 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
public void setValidationMode(XMLReader xmlReader, int validationMode)
-
setWhitespacePreserving
public void setWhitespacePreserving(boolean isWhitespacePreserving)
- Specified by:
setWhitespacePreserving
in interfacePlatformUnmarshaller
-
setSchemas
public void setSchemas(Object[] schemas)
- Specified by:
setSchemas
in interfacePlatformUnmarshaller
-
setSchema
public void setSchema(Schema schema)
- Specified by:
setSchema
in interfacePlatformUnmarshaller
-
getSchema
public Schema getSchema()
- Specified by:
getSchema
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(File file)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(File file, Class clazz)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(InputStream inputStream)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(InputStream inputStream, Class clazz)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(InputSource inputSource)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(InputSource inputSource, XMLReader xmlReader)
-
unmarshal
public Object unmarshal(InputSource inputSource, Class clazz)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(InputSource inputSource, Class clazz, XMLReader xmlReader)
-
unmarshal
public Object unmarshal(Node node)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(Node node, Class clazz)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(Reader reader)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(Reader reader, Class clazz)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(Source source)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(Source source, Class clazz)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(URL url)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(URL url, Class clazz)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(XMLReader xmlReader, InputSource inputSource)
- Specified by:
unmarshal
in interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(XMLReader xmlReader, InputSource inputSource, Class clazz)
- 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
-
-