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
JBossXBException
public void setValidation(boolean validation) throws JBossXBException
setValidation
in interface Unmarshaller
JBossXBException
public void setSchemaValidation(boolean validation) throws JBossXBException
setSchemaValidation
in interface Unmarshaller
JBossXBException
public void setFeature(String feature, boolean value) throws JBossXBException
FeatureAware
setFeature
in interface FeatureAware
feature
- the feature namevalue
- the feature flagJBossXBException
public void setNamespaceAware(boolean namespaces) throws JBossXBException
setNamespaceAware
in interface Unmarshaller
JBossXBException
public void setEntityResolver(EntityResolver entityResolver) throws JBossXBException
setEntityResolver
in interface Unmarshaller
JBossXBException
public void setErrorHandler(ErrorHandler errorHandler)
setErrorHandler
in interface Unmarshaller
public void setWarnOnParserErrors(boolean value)
Unmarshaller
setWarnOnParserErrors
in interface Unmarshaller
public boolean isWarnOnParserErrors()
Unmarshaller
isWarnOnParserErrors
in interface Unmarshaller
public void mapFactoryToNamespace(ObjectModelFactory factory, String namespaceUri)
mapFactoryToNamespace
in interface Unmarshaller
public Object unmarshal(String xmlFile) throws JBossXBException
unmarshal
in interface Unmarshaller
JBossXBException
public Object unmarshal(String xmlFile, JBossXBParser.ContentHandler handler) throws JBossXBException
unmarshal
in interface Unmarshaller
JBossXBException
public Object unmarshal(String xml, SchemaBinding schemaBinding) throws JBossXBException
unmarshal
in interface Unmarshaller
JBossXBException
public Object unmarshal(Reader xmlReader, SchemaBinding schemaBinding) throws JBossXBException
unmarshal
in interface Unmarshaller
JBossXBException
public Object unmarshal(InputStream xmlStream, SchemaBinding schemaBinding) throws JBossXBException
unmarshal
in interface Unmarshaller
JBossXBException
public Object unmarshal(InputSource source, SchemaBinding schemaBinding) throws JBossXBException
unmarshal
in interface Unmarshaller
JBossXBException
public Object unmarshal(String xml, SchemaBindingResolver schemaResolver) throws JBossXBException
unmarshal
in interface Unmarshaller
JBossXBException
public Object unmarshal(Reader xmlReader, SchemaBindingResolver schemaResolver) throws JBossXBException
unmarshal
in interface Unmarshaller
JBossXBException
public Object unmarshal(InputStream xmlStream, SchemaBindingResolver schemaResolver) throws JBossXBException
unmarshal
in interface Unmarshaller
JBossXBException
public Object unmarshal(InputSource source, SchemaBindingResolver schemaResolver) throws JBossXBException
unmarshal
in interface Unmarshaller
JBossXBException
public Object unmarshal(Reader reader, ObjectModelFactory factory, Object root) throws JBossXBException
unmarshal
in interface Unmarshaller
JBossXBException
public Object unmarshal(InputStream is, ObjectModelFactory factory, Object root) throws JBossXBException
unmarshal
in interface Unmarshaller
JBossXBException
public Object unmarshal(String systemId, ObjectModelFactory factory, Object root) throws JBossXBException
unmarshal
in interface Unmarshaller
JBossXBException
public Object unmarshal(InputSource is, ObjectModelFactory factory, Object root) throws JBossXBException
unmarshal
in interface Unmarshaller
JBossXBException
public Object unmarshal(String systemId, ObjectModelFactory factory, DocumentBinding binding) throws JBossXBException
unmarshal
in interface Unmarshaller
JBossXBException
public Object unmarshal(Reader reader, ObjectModelFactory factory, DocumentBinding binding) throws JBossXBException
unmarshal
in interface Unmarshaller
JBossXBException
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.