|
JBoss XML Binding 2.0.3.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.xb.binding.UnmarshallerImpl
public class UnmarshallerImpl
Unmarshaller implementation. WARNING: this implementation is not thread-safe.
Field Summary |
---|
Fields inherited from interface org.jboss.xb.binding.Unmarshaller |
---|
DYNAMIC_VALIDATION, NAMESPACE_PREFIXES, NAMESPACES, SCHEMA_FULL_CHECKING, SCHEMA_VALIDATION, VALIDATION |
Constructor Summary | |
---|---|
UnmarshallerImpl()
The constructor for DTD and XSD client awareness. |
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)
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnmarshallerImpl() throws JBossXBException
JBossXBException
Method Detail |
---|
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 flag
JBossXBException
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
|
JBoss XML Binding 2.0.3.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |