org.exolab.castor.xml.schema.reader

Class SchemaUnmarshaller

public class SchemaUnmarshaller extends ComponentReader

Version: $Revision: 1.8 $ $Date: 2004/10/01 13:25:24 $

Author: Keith Visco

Nested Class Summary
static classSchemaUnmarshaller.RemappedPrefixes
This class handles remapping of namespace prefixes for attributes of type QName.
Field Summary
booleanskipAll
static String[]UNSUPPORTED_NAMESPACES
static StringXSD_NAMESPACE
Resolver_resolver
The ID Resolver
Schema_schema
Constructor Summary
SchemaUnmarshaller()
SchemaUnmarshaller(SchemaUnmarshallerState state)
SchemaUnmarshaller(boolean include, SchemaUnmarshallerState state, URIResolver uriResolver)
SchemaUnmarshaller(AttributeSet atts, Resolver resolver)
SchemaUnmarshaller(AttributeSet atts, Resolver resolver, URIResolver uriResolver)
Method Summary
voidcharacters(char[] ch, int start, int length)
StringelementName()
Returns the name of the element that this ComponentReader handles
voidendElement(String name, String namespace)
Signals to end of the element with the given name.
ObjectgetObject()
Returns the Object created by this ComponentReader
SchemagetSchema()
voidsetResolver(Resolver resolver)
voidsetSchema(Schema schema)
voidstartElement(String name, String namespace, AttributeSet atts, Namespaces nsDecls)
Signals the start of an element with the given name.

Field Detail

skipAll

boolean skipAll

UNSUPPORTED_NAMESPACES

public static final String[] UNSUPPORTED_NAMESPACES

XSD_NAMESPACE

public static final String XSD_NAMESPACE

_resolver

Resolver _resolver
The ID Resolver

_schema

Schema _schema

Constructor Detail

SchemaUnmarshaller

public SchemaUnmarshaller()

SchemaUnmarshaller

public SchemaUnmarshaller(SchemaUnmarshallerState state)

SchemaUnmarshaller

public SchemaUnmarshaller(boolean include, SchemaUnmarshallerState state, URIResolver uriResolver)

SchemaUnmarshaller

public SchemaUnmarshaller(AttributeSet atts, Resolver resolver)

SchemaUnmarshaller

public SchemaUnmarshaller(AttributeSet atts, Resolver resolver, URIResolver uriResolver)

Method Detail

characters

public void characters(char[] ch, int start, int length)

elementName

public String elementName()
Returns the name of the element that this ComponentReader handles

Returns: the name of the element that this ComponentReader handles

endElement

public void endElement(String name, String namespace)
Signals to end of the element with the given name.

Parameters: name the NCName of the element. It is an error if the name is a QName (ie. contains a prefix). namespace the namespace of the element.

getObject

public Object getObject()
Returns the Object created by this ComponentReader

Returns: the Object created by this ComponentReader

getSchema

public Schema getSchema()

setResolver

public void setResolver(Resolver resolver)

setSchema

public void setSchema(Schema schema)

startElement

public void startElement(String name, String namespace, AttributeSet atts, Namespaces nsDecls)
Signals the start of an element with the given name.

Parameters: name the NCName of the element. It is an error if the name is a QName (ie. contains a prefix). namespace the namespace of the element. This may be null. Note: A null namespace is not the same as the default namespace unless the default namespace is also null. atts the AttributeSet containing the attributes associated with the element. nsDecls the namespace declarations being declared for this element. This may be null.

Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com