Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Package Attributes

org.exolab.castor.xml.schema.reader.SchemaUnmarshaller Class Reference

Inheritance diagram for org.exolab.castor.xml.schema.reader.SchemaUnmarshaller:
org.exolab.castor.xml.schema.reader.ComponentReader

List of all members.

Classes

class  RemappedPrefixes

Public Member Functions

 SchemaUnmarshaller () throws XMLException
 SchemaUnmarshaller (SchemaUnmarshallerState state) throws XMLException
 SchemaUnmarshaller (boolean include, SchemaUnmarshallerState state, URIResolver uriResolver) throws XMLException
 SchemaUnmarshaller (AttributeSet atts, Resolver resolver) throws XMLException
 SchemaUnmarshaller (AttributeSet atts, Resolver resolver, URIResolver uriResolver) throws XMLException
Schema getSchema ()
void setSchema (Schema schema)
Object getObject ()
String elementName ()
void setResolver (Resolver resolver)
void startElement (String name, String namespace, AttributeSet atts, Namespaces nsDecls) throws XMLException
void endElement (String name, String namespace) throws XMLException
void characters (char[] ch, int start, int length) throws XMLException

Static Public Member Functions

static void setDefaultURIResolver (URIResolver defaultURIResolver)

Static Public Attributes

static final String XSD_NAMESPACE = "http://www.w3.org/2001/XMLSchema"
static final String[] UNSUPPORTED_NAMESPACES

Package Attributes

boolean skipAll = false
Resolver _resolver = null
Schema _schema = null

Detailed Description

Author:
Keith Visco
Version:
Revision:
1.8
Date:
2004/10/01 13:25:24

Constructor & Destructor Documentation

org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.SchemaUnmarshaller (  )  throws XMLException
org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.SchemaUnmarshaller ( SchemaUnmarshallerState  state  )  throws XMLException
org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.SchemaUnmarshaller ( boolean  include,
SchemaUnmarshallerState  state,
URIResolver  uriResolver 
) throws XMLException
org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.SchemaUnmarshaller ( AttributeSet  atts,
Resolver  resolver 
) throws XMLException

Member Function Documentation

void org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.characters ( char[]  chars,
int  start,
int  length 
) throws XMLException

Signals to recieve charactes

Parameters:
chars the character array containing the characters
start the starting index into the character array
length the number of characters to recieve

Reimplemented from org.exolab.castor.xml.schema.reader.ComponentReader.

References org.exolab.castor.xml.schema.reader.ComponentReader.characters().

String org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.elementName (  )  [virtual]

Returns the name of the element that this ComponentReader handles

Returns:
the name of the element that this ComponentReader handles

Implements org.exolab.castor.xml.schema.reader.ComponentReader.

void org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.endElement ( String  name,
String  namespace 
) throws XMLException

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.

Reimplemented from org.exolab.castor.xml.schema.reader.ComponentReader.

References org.exolab.castor.xml.schema.reader.SchemaUnmarshaller._resolver, org.exolab.castor.xml.schema.reader.SchemaUnmarshaller._schema, org.exolab.castor.xml.schema.Annotated.addAnnotation(), org.exolab.castor.xml.schema.Schema.addAttribute(), org.exolab.castor.xml.schema.Schema.addAttributeGroup(), org.exolab.castor.xml.schema.Schema.addComplexType(), org.exolab.castor.xml.schema.Schema.addElementDecl(), org.exolab.castor.xml.schema.Schema.addModelGroup(), org.exolab.castor.xml.schema.Resolver.addResolvable(), org.exolab.castor.xml.schema.Schema.addSimpleType(), org.exolab.castor.xml.schema.reader.ComponentReader.elementName(), org.exolab.castor.xml.schema.reader.ComponentReader.endElement(), org.exolab.castor.xml.schema.reader.ComponentReader.error(), org.exolab.castor.xml.schema.reader.ComponentReader.finish(), org.exolab.castor.xml.schema.XMLType.getName(), org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.getObject(), org.exolab.castor.xml.schema.reader.ComponentReader.getObject(), org.exolab.castor.xml.schema.SimpleType.getReferenceId(), org.exolab.castor.xml.schema.ComplexType.getReferenceId(), org.exolab.castor.xml.schema.RedefineSchema.getSchemaLocation(), org.exolab.castor.xml.schema.RedefineSchema.hasRedefinition(), org.exolab.castor.xml.schema.Schema.removeRedefineSchema(), and org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.skipAll.

Object org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.getObject (  )  [virtual]
static void org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.setDefaultURIResolver ( URIResolver  defaultURIResolver  )  [static]

Sets the default URIResolver to be used if no URIResolver gets passed to the constructor.

Using a static field is admittedly rather dirty. A better fix would be to allow for a URIResolver to be passed on the callstack all the way from SourceGenerator to SchemaUnmarshaller.

Parameters:
defaultURIResolver 
void org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.setResolver ( Resolver  resolver  ) 

Sets the Resolver to be used for resolving id references

Parameters:
resolver the Resolver to be used for resolving id references

Reimplemented from org.exolab.castor.xml.schema.reader.ComponentReader.

References org.exolab.castor.xml.schema.reader.SchemaUnmarshaller._resolver.

Referenced by org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.SchemaUnmarshaller().

void org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement ( String  name,
String  namespace,
AttributeSet  atts,
Namespaces  nsDecls 
) throws XMLException

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.

Reimplemented from org.exolab.castor.xml.schema.reader.ComponentReader.

References org.exolab.castor.xml.schema.reader.SchemaUnmarshaller._resolver, org.exolab.castor.xml.schema.reader.SchemaUnmarshaller._schema, org.exolab.castor.xml.schema.reader.ComponentReader.error(), org.exolab.castor.xml.schema.reader.ComponentReader.getDocumentLocator(), org.exolab.castor.xml.schema.reader.ComponentReader.getResolver(), org.exolab.castor.xml.schema.reader.ComponentReader.getURIResolver(), org.exolab.castor.xml.schema.reader.ComponentReader.illegalElement(), org.exolab.castor.xml.schema.reader.ComponentReader.setDocumentLocator(), org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.skipAll, org.exolab.castor.xml.schema.reader.ComponentReader.startElement(), and org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.XSD_NAMESPACE.


Member Data Documentation

Initial value:
 {
        "http://www.w3.org/2000/10/XMLSchema",
        "http://www.w3.org/1999/XMLSchema"
    }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties