org.jboss.xb.binding
Class UnmarshallerImpl

java.lang.Object
  extended by org.jboss.xb.binding.UnmarshallerImpl
All Implemented Interfaces:
Unmarshaller

public class UnmarshallerImpl
extends Object
implements Unmarshaller

Unmarshaller implementation. WARNING: this implementation is not thread-safe.

Version:
$Revision: 1.1.2.5 $
Author:
Alexey Loubyansky

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
 void mapFactoryToNamespace(ObjectModelFactory factory, String namespaceUri)
           
 void setEntityResolver(EntityResolver entityResolver)
           
 void setErrorHandler(ErrorHandler errorHandler)
           
 void setNamespaceAware(boolean namespaces)
           
 void setValidation(boolean validation)
           
 Object unmarshal(InputStream is, ObjectModelFactory factory, Object root)
           
 Object unmarshal(InputStream xmlStream, SchemaBinding schemaBinding)
           
 Object unmarshal(InputStream xmlStream, SchemaBindingResolver schemaResolver)
           
 Object unmarshal(Reader xmlFile, ObjectModelFactory factory, DocumentBinding metadata)
           
 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 systemId, BindingCursor cursor, ObjectModelFactory factory)
           
 Object unmarshal(String xmlFile, JBossXBParser.ContentHandler handler)
           
 Object unmarshal(String xmlFile, ObjectModelFactory factory, DocumentBinding metadata)
           
 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

UnmarshallerImpl

public UnmarshallerImpl()
                 throws JBossXBException
The constructor for DTD and XSD client awareness.

Throws:
JBossXBException
Method Detail

setValidation

public void setValidation(boolean validation)
                   throws JBossXBException
Specified by:
setValidation in interface Unmarshaller
Throws:
JBossXBException

setNamespaceAware

public void setNamespaceAware(boolean namespaces)
                       throws JBossXBException
Specified by:
setNamespaceAware in interface Unmarshaller
Throws:
JBossXBException

setEntityResolver

public void setEntityResolver(EntityResolver entityResolver)
                       throws JBossXBException
Specified by:
setEntityResolver in interface Unmarshaller
Throws:
JBossXBException

setErrorHandler

public void setErrorHandler(ErrorHandler errorHandler)
Specified by:
setErrorHandler in interface Unmarshaller

mapFactoryToNamespace

public void mapFactoryToNamespace(ObjectModelFactory factory,
                                  String namespaceUri)
Specified by:
mapFactoryToNamespace in interface Unmarshaller

unmarshal

public Object unmarshal(String xmlFile)
                 throws JBossXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JBossXBException

unmarshal

public Object unmarshal(String xmlFile,
                        JBossXBParser.ContentHandler handler)
                 throws JBossXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JBossXBException

unmarshal

public Object unmarshal(String xml,
                        SchemaBinding schemaBinding)
                 throws JBossXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JBossXBException

unmarshal

public Object unmarshal(Reader xmlReader,
                        SchemaBinding schemaBinding)
                 throws JBossXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JBossXBException

unmarshal

public Object unmarshal(InputStream xmlStream,
                        SchemaBinding schemaBinding)
                 throws JBossXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JBossXBException

unmarshal

public Object unmarshal(String xml,
                        SchemaBindingResolver schemaResolver)
                 throws JBossXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JBossXBException

unmarshal

public Object unmarshal(Reader xmlReader,
                        SchemaBindingResolver schemaResolver)
                 throws JBossXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JBossXBException

unmarshal

public Object unmarshal(InputStream xmlStream,
                        SchemaBindingResolver schemaResolver)
                 throws JBossXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JBossXBException

unmarshal

public Object unmarshal(String xmlFile,
                        ObjectModelFactory factory,
                        DocumentBinding metadata)
                 throws JBossXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JBossXBException

unmarshal

public Object unmarshal(Reader xmlFile,
                        ObjectModelFactory factory,
                        DocumentBinding metadata)
                 throws JBossXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JBossXBException

unmarshal

public Object unmarshal(Reader reader,
                        ObjectModelFactory factory,
                        Object root)
                 throws JBossXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JBossXBException

unmarshal

public Object unmarshal(InputStream is,
                        ObjectModelFactory factory,
                        Object root)
                 throws JBossXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JBossXBException

unmarshal

public Object unmarshal(String systemId,
                        ObjectModelFactory factory,
                        Object root)
                 throws JBossXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JBossXBException

unmarshal

public Object unmarshal(String systemId,
                        BindingCursor cursor,
                        ObjectModelFactory factory)
                 throws JBossXBException
Specified by:
unmarshal in interface Unmarshaller
Throws:
JBossXBException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.