org.jboss.xb.binding
Interface Unmarshaller
- All Superinterfaces:
- FeatureAware
- All Known Implementing Classes:
- UnmarshallerImpl
public interface Unmarshaller
- extends FeatureAware
- Version:
- $Revision: 4874 $
- Author:
- Alexey Loubyansky
Method Summary |
boolean |
isWarnOnParserErrors()
This property controls whether the (underlying) parser errors should be
logged as warnings or should they terminate parsing with errors. |
void |
mapFactoryToNamespace(ObjectModelFactory factory,
String namespaceUri)
|
void |
setEntityResolver(EntityResolver entityResolver)
|
void |
setErrorHandler(ErrorHandler errorHandler)
Deprecated. |
void |
setNamespaceAware(boolean namespaces)
|
void |
setSchemaValidation(boolean validation)
|
void |
setValidation(boolean validation)
|
void |
setWarnOnParserErrors(boolean value)
This property controls whether the (underlying) parser errors should be
logged as warnings or should they terminate parsing with errors. |
Object |
unmarshal(InputSource source,
ObjectModelFactory factory,
Object root)
|
Object |
unmarshal(InputSource source,
SchemaBinding schemaBinding)
|
Object |
unmarshal(InputSource source,
SchemaBindingResolver schemaResolver)
|
Object |
unmarshal(InputStream is,
ObjectModelFactory factory,
Object root)
|
Object |
unmarshal(InputStream xmlStream,
SchemaBinding schemaBinding)
|
Object |
unmarshal(InputStream xmlStream,
SchemaBindingResolver schemaResolver)
|
Object |
unmarshal(Reader reader,
ObjectModelFactory factory,
DocumentBinding binding)
|
Object |
unmarshal(Reader reader,
ObjectModelFactory factory,
Object root)
|
Object |
unmarshal(Reader xmlReader,
SchemaBinding schemaBinding)
|
Object |
unmarshal(Reader xmlReader,
SchemaBindingResolver schemaResolver)
|
Object |
unmarshal(String xmlFile)
|
Object |
unmarshal(String xmlFile,
JBossXBParser.ContentHandler handler)
|
Object |
unmarshal(String systemId,
ObjectModelFactory factory,
DocumentBinding binding)
|
Object |
unmarshal(String systemId,
ObjectModelFactory factory,
Object root)
|
Object |
unmarshal(String xml,
SchemaBinding schemaBinding)
|
Object |
unmarshal(String xml,
SchemaBindingResolver schemaResolver)
|
VALIDATION
static final String VALIDATION
- See Also:
- Constant Field Values
NAMESPACES
static final String NAMESPACES
- See Also:
- Constant Field Values
NAMESPACE_PREFIXES
static final String NAMESPACE_PREFIXES
- See Also:
- Constant Field Values
DYNAMIC_VALIDATION
static final String DYNAMIC_VALIDATION
- See Also:
- Constant Field Values
SCHEMA_VALIDATION
static final String SCHEMA_VALIDATION
- See Also:
- Constant Field Values
SCHEMA_FULL_CHECKING
static final String SCHEMA_FULL_CHECKING
- See Also:
- Constant Field Values
setValidation
void setValidation(boolean validation)
throws JBossXBException
- Throws:
JBossXBException
setNamespaceAware
void setNamespaceAware(boolean namespaces)
throws JBossXBException
- Throws:
JBossXBException
setSchemaValidation
void setSchemaValidation(boolean validation)
throws JBossXBException
- Throws:
JBossXBException
setWarnOnParserErrors
void setWarnOnParserErrors(boolean value)
- This property controls whether the (underlying) parser errors should be
logged as warnings or should they terminate parsing with errors.
The default is to terminate parsing by re-throwing parser errors.
isWarnOnParserErrors
boolean isWarnOnParserErrors()
- This property controls whether the (underlying) parser errors should be
logged as warnings or should they terminate parsing with errors.
The default is to terminate parsing by re-throwing parser errors.
- Returns:
- false if parser errors should be logged as warnings, otherwise - true
setEntityResolver
void setEntityResolver(EntityResolver entityResolver)
throws JBossXBException
- Throws:
JBossXBException
setErrorHandler
void setErrorHandler(ErrorHandler errorHandler)
- Deprecated.
mapFactoryToNamespace
void mapFactoryToNamespace(ObjectModelFactory factory,
String namespaceUri)
unmarshal
Object unmarshal(String xmlFile,
JBossXBParser.ContentHandler handler)
throws JBossXBException
- Throws:
JBossXBException
unmarshal
Object unmarshal(String xmlFile)
throws JBossXBException
- Throws:
JBossXBException
unmarshal
Object unmarshal(String xml,
SchemaBinding schemaBinding)
throws JBossXBException
- Throws:
JBossXBException
unmarshal
Object unmarshal(Reader xmlReader,
SchemaBinding schemaBinding)
throws JBossXBException
- Throws:
JBossXBException
unmarshal
Object unmarshal(InputStream xmlStream,
SchemaBinding schemaBinding)
throws JBossXBException
- Throws:
JBossXBException
unmarshal
Object unmarshal(InputSource source,
SchemaBinding schemaBinding)
throws JBossXBException
- Throws:
JBossXBException
unmarshal
Object unmarshal(String xml,
SchemaBindingResolver schemaResolver)
throws JBossXBException
- Throws:
JBossXBException
unmarshal
Object unmarshal(Reader xmlReader,
SchemaBindingResolver schemaResolver)
throws JBossXBException
- Throws:
JBossXBException
unmarshal
Object unmarshal(InputStream xmlStream,
SchemaBindingResolver schemaResolver)
throws JBossXBException
- Throws:
JBossXBException
unmarshal
Object unmarshal(InputSource source,
SchemaBindingResolver schemaResolver)
throws JBossXBException
- Throws:
JBossXBException
unmarshal
Object unmarshal(Reader reader,
ObjectModelFactory factory,
Object root)
throws JBossXBException
- Throws:
JBossXBException
unmarshal
Object unmarshal(InputStream is,
ObjectModelFactory factory,
Object root)
throws JBossXBException
- Throws:
JBossXBException
unmarshal
Object unmarshal(InputSource source,
ObjectModelFactory factory,
Object root)
throws JBossXBException
- Throws:
JBossXBException
unmarshal
Object unmarshal(String systemId,
ObjectModelFactory factory,
Object root)
throws JBossXBException
- Throws:
JBossXBException
unmarshal
Object unmarshal(String systemId,
ObjectModelFactory factory,
DocumentBinding binding)
throws JBossXBException
- Throws:
JBossXBException
unmarshal
Object unmarshal(Reader reader,
ObjectModelFactory factory,
DocumentBinding binding)
throws JBossXBException
- Throws:
JBossXBException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.