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 |
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 |
org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.SchemaUnmarshaller | ( | AttributeSet | atts, | |
Resolver | resolver, | |||
URIResolver | uriResolver | |||
) | throws XMLException |
void org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.characters | ( | char[] | chars, | |
int | start, | |||
int | length | |||
) | throws XMLException |
Signals to recieve charactes
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
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.
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] |
Returns the Object created by this ComponentReader
Implements org.exolab.castor.xml.schema.reader.ComponentReader.
References org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.getSchema().
Referenced by org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.endElement().
Schema org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.getSchema | ( | ) |
References org.exolab.castor.xml.schema.reader.SchemaUnmarshaller._schema.
Referenced by com.cosylab.cdb.jdal.XSDElementTypeResolver.doesExtend(), org.exolab.castor.builder.SourceGenerator.generateSource(), org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.getObject(), com.cosylab.cdb.jdal.XSDElementTypeResolver.internalGetElementTypes(), and org.exolab.castor.xml.schema.reader.SchemaReader.read().
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.
defaultURIResolver |
void org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.setResolver | ( | Resolver | resolver | ) |
Sets the Resolver to be used for resolving id references
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.setSchema | ( | Schema | schema | ) |
References org.exolab.castor.xml.schema.reader.SchemaUnmarshaller._schema.
Referenced by org.exolab.castor.xml.schema.reader.ImportUnmarshaller.ImportUnmarshaller(), org.exolab.castor.xml.schema.reader.IncludeUnmarshaller.IncludeUnmarshaller(), and org.exolab.castor.xml.schema.reader.RedefineUnmarshaller.RedefineUnmarshaller().
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.
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.
Resolver org.exolab.castor.xml.schema.reader.SchemaUnmarshaller._resolver = null [package] |
The ID Resolver
Reimplemented from org.exolab.castor.xml.schema.reader.ComponentReader.
Referenced by org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.endElement(), org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.setResolver(), and org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement().
Schema org.exolab.castor.xml.schema.reader.SchemaUnmarshaller._schema = null [package] |
Referenced by org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.endElement(), org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.getSchema(), org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.SchemaUnmarshaller(), org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.setSchema(), and org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement().
boolean org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.skipAll = false [package] |
final String [] org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.UNSUPPORTED_NAMESPACES [static] |
{ "http://www.w3.org/2000/10/XMLSchema", "http://www.w3.org/1999/XMLSchema" }
final String org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.XSD_NAMESPACE = "http://www.w3.org/2001/XMLSchema" [static] |