Module org.eclipse.persistence.core
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:
getEntityResolverin interfacePlatformUnmarshaller
-
setEntityResolver
public void setEntityResolver(EntityResolver entityResolver)
- Specified by:
setEntityResolverin interfacePlatformUnmarshaller
-
getErrorHandler
public ErrorHandler getErrorHandler()
- Specified by:
getErrorHandlerin interfacePlatformUnmarshaller
-
setErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)
- Specified by:
setErrorHandlerin interfacePlatformUnmarshaller
-
getValidationMode
public int getValidationMode()
- Specified by:
getValidationModein interfacePlatformUnmarshaller
-
setValidationMode
public void setValidationMode(int validationMode)
- Specified by:
setValidationModein interfacePlatformUnmarshaller
-
setValidationMode
public void setValidationMode(XMLReader xmlReader, int validationMode)
-
setWhitespacePreserving
public void setWhitespacePreserving(boolean isWhitespacePreserving)
- Specified by:
setWhitespacePreservingin interfacePlatformUnmarshaller
-
setSchemas
public void setSchemas(Object[] schemas)
- Specified by:
setSchemasin interfacePlatformUnmarshaller
-
setSchema
public void setSchema(Schema schema)
- Specified by:
setSchemain interfacePlatformUnmarshaller
-
getSchema
public Schema getSchema()
- Specified by:
getSchemain interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(File file)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(File file, Class<?> clazz)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(InputStream inputStream)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(InputStream inputStream, Class<?> clazz)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(InputSource inputSource)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(InputSource inputSource, XMLReader xmlReader)
-
unmarshal
public Object unmarshal(InputSource inputSource, Class<?> clazz)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(InputSource inputSource, Class<?> clazz, XMLReader xmlReader)
-
unmarshal
public Object unmarshal(Node node)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(Node node, Class<?> clazz)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(Reader reader)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(Reader reader, Class<?> clazz)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(Source source)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(Source source, Class<?> clazz)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(URL url)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(URL url, Class<?> clazz)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(XMLReader xmlReader, InputSource inputSource)
- Specified by:
unmarshalin interfacePlatformUnmarshaller
-
unmarshal
public Object unmarshal(XMLReader xmlReader, InputSource inputSource, Class<?> clazz)
- 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
-
-