public class UnmarshallerImpl extends Object implements Unmarshaller
DYNAMIC_VALIDATION, NAMESPACE_PREFIXES, NAMESPACES, SCHEMA_FULL_CHECKING, SCHEMA_VALIDATION, VALIDATION| Constructor and Description |
|---|
UnmarshallerImpl()
The constructor for DTD and XSD client awareness.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
void |
setFeature(String feature,
boolean value)
Apply feature.
|
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 is,
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) |
public UnmarshallerImpl()
throws JBossXBException
JBossXBExceptionpublic void setValidation(boolean validation)
throws JBossXBException
setValidation in interface UnmarshallerJBossXBExceptionpublic void setSchemaValidation(boolean validation)
throws JBossXBException
setSchemaValidation in interface UnmarshallerJBossXBExceptionpublic void setFeature(String feature, boolean value) throws JBossXBException
FeatureAwaresetFeature in interface FeatureAwarefeature - the feature namevalue - the feature flagJBossXBExceptionpublic void setNamespaceAware(boolean namespaces)
throws JBossXBException
setNamespaceAware in interface UnmarshallerJBossXBExceptionpublic void setEntityResolver(EntityResolver entityResolver) throws JBossXBException
setEntityResolver in interface UnmarshallerJBossXBExceptionpublic void setErrorHandler(ErrorHandler errorHandler)
setErrorHandler in interface Unmarshallerpublic void setWarnOnParserErrors(boolean value)
UnmarshallersetWarnOnParserErrors in interface Unmarshallerpublic boolean isWarnOnParserErrors()
UnmarshallerisWarnOnParserErrors in interface Unmarshallerpublic void mapFactoryToNamespace(ObjectModelFactory factory, String namespaceUri)
mapFactoryToNamespace in interface Unmarshallerpublic Object unmarshal(String xmlFile) throws JBossXBException
unmarshal in interface UnmarshallerJBossXBExceptionpublic Object unmarshal(String xmlFile, JBossXBParser.ContentHandler handler) throws JBossXBException
unmarshal in interface UnmarshallerJBossXBExceptionpublic Object unmarshal(String xml, SchemaBinding schemaBinding) throws JBossXBException
unmarshal in interface UnmarshallerJBossXBExceptionpublic Object unmarshal(Reader xmlReader, SchemaBinding schemaBinding) throws JBossXBException
unmarshal in interface UnmarshallerJBossXBExceptionpublic Object unmarshal(InputStream xmlStream, SchemaBinding schemaBinding) throws JBossXBException
unmarshal in interface UnmarshallerJBossXBExceptionpublic Object unmarshal(InputSource source, SchemaBinding schemaBinding) throws JBossXBException
unmarshal in interface UnmarshallerJBossXBExceptionpublic Object unmarshal(String xml, SchemaBindingResolver schemaResolver) throws JBossXBException
unmarshal in interface UnmarshallerJBossXBExceptionpublic Object unmarshal(Reader xmlReader, SchemaBindingResolver schemaResolver) throws JBossXBException
unmarshal in interface UnmarshallerJBossXBExceptionpublic Object unmarshal(InputStream xmlStream, SchemaBindingResolver schemaResolver) throws JBossXBException
unmarshal in interface UnmarshallerJBossXBExceptionpublic Object unmarshal(InputSource source, SchemaBindingResolver schemaResolver) throws JBossXBException
unmarshal in interface UnmarshallerJBossXBExceptionpublic Object unmarshal(Reader reader, ObjectModelFactory factory, Object root) throws JBossXBException
unmarshal in interface UnmarshallerJBossXBExceptionpublic Object unmarshal(InputStream is, ObjectModelFactory factory, Object root) throws JBossXBException
unmarshal in interface UnmarshallerJBossXBExceptionpublic Object unmarshal(String systemId, ObjectModelFactory factory, Object root) throws JBossXBException
unmarshal in interface UnmarshallerJBossXBExceptionpublic Object unmarshal(InputSource is, ObjectModelFactory factory, Object root) throws JBossXBException
unmarshal in interface UnmarshallerJBossXBExceptionpublic Object unmarshal(String systemId, ObjectModelFactory factory, DocumentBinding binding) throws JBossXBException
unmarshal in interface UnmarshallerJBossXBExceptionpublic Object unmarshal(Reader reader, ObjectModelFactory factory, DocumentBinding binding) throws JBossXBException
unmarshal in interface UnmarshallerJBossXBExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.