public class SchemaUnmarshaller extends ComponentReader
| Modifier and Type | Class | Description | 
|---|---|---|
(package private) static class  | 
SchemaUnmarshaller.RemappedPrefixes | 
 This class handles remapping of namespace prefixes
 for attributes of type QName. 
 | 
| Modifier and Type | Field | Description | 
|---|---|---|
(package private) Schema | 
_schema | 
|
(package private) boolean | 
skipAll | 
|
static java.lang.String[] | 
UNSUPPORTED_NAMESPACES | 
 Unsupported namespace definitions, pointing to older
 XML schema specifications. 
 | 
static java.lang.String | 
XSD_NAMESPACE | 
 W3C XML schema namespace. 
 | 
| Constructor | Description | 
|---|---|
SchemaUnmarshaller(SchemaContext schemaContext) | 
 Creates a  
SchemaUnmarshaller instance. | 
SchemaUnmarshaller(SchemaContext schemaContext,
                  boolean include,
                  SchemaUnmarshallerState state,
                  URIResolver uriResolver) | 
 Creates a  
SchemaUnmarshaller instance. | 
SchemaUnmarshaller(SchemaContext schemaContext,
                  AttributeSet atts) | 
 Creates a  
SchemaUnmarshaller instance. | 
SchemaUnmarshaller(SchemaContext schemaContext,
                  SchemaUnmarshallerState state) | 
 Creates a  
SchemaUnmarshaller instance. | 
| Modifier and Type | Method | Description | 
|---|---|---|
void | 
characters(char[] ch,
          int start,
          int length) | 
 Signals to recieve charactes 
 | 
java.lang.String | 
elementName() | 
 Returns the name of the element that this ComponentReader
 handles. 
 | 
void | 
endElement(java.lang.String name,
          java.lang.String namespace) | 
 Signals to end of the element with the given name. 
 | 
java.lang.Object | 
getObject() | 
 Returns the Object created by this ComponentReader. 
 | 
Schema | 
getSchema() | 
 Returns the  
Schema instance representing the XML schema (file) just 
 processed. | 
void | 
setSchema(Schema schema) | 
 Sets the  
Schema instance to be processed. | 
void | 
startElement(java.lang.String name,
            java.lang.String namespace,
            AttributeSet atts,
            Namespaces nsDecls) | 
 Signals the start of an element with the given name. 
 | 
error, error, finish, getDocumentLocator, getResolver, getSchemaContext, getURIResolver, illegalAttribute, illegalElement, isWhiteSpace, outOfOrder, redefinedElement, redefinedElement, setDocumentLocator, setResolver, setSchemaContext, setURIResolver, toIntpublic static final java.lang.String XSD_NAMESPACE
public static final java.lang.String[] UNSUPPORTED_NAMESPACES
boolean skipAll
Schema _schema
public SchemaUnmarshaller(SchemaContext schemaContext) throws XMLException
SchemaUnmarshaller instance.schemaContext - A SchemaContext to be used during schema unmarshalling.XMLException - Indicates that the XML schema cannnot be processedpublic SchemaUnmarshaller(SchemaContext schemaContext, SchemaUnmarshallerState state) throws XMLException
SchemaUnmarshaller instance.schemaContext - A SchemaContext to be used during schema unmarshalling.state - A SchemaUnmarshallerState to be used during unmarshalling.XMLException - Indicates that the XML schema cannnot be processedpublic SchemaUnmarshaller(SchemaContext schemaContext, boolean include, SchemaUnmarshallerState state, URIResolver uriResolver) throws XMLException
SchemaUnmarshaller instance.schemaContext - A SchemaContext to be used during schema unmarshalling.include - Indicates whether the Schema to be processed ia an included schema.state - A SchemaUnmarshallerState to be used during unmarshalling.uriResolver - URIResolver to be used during processing.XMLException - Signals a problem in processing the XML schema.
 
 Called from IncludeUnmarshaller.public SchemaUnmarshaller(SchemaContext schemaContext, AttributeSet atts) throws XMLException
SchemaUnmarshaller instance.
 Exists for backward compatibilityschemaContext - A SchemaContext to be used during schema unmarshalling.atts - Attribute set to be processed.XMLException - Signals a problem in processing the XML schema.public Schema getSchema()
Schema instance representing the XML schema (file) just 
 processed.Schema instance obtained from processing an XML schema file.public void setSchema(Schema schema)
Schema instance to be processed.schema - Schema instancetp be processed.public java.lang.Object getObject()
getObject in class ComponentReaderpublic java.lang.String elementName()
elementName in class ComponentReaderpublic void startElement(java.lang.String name,
                         java.lang.String namespace,
                         AttributeSet atts,
                         Namespaces nsDecls)
                  throws XMLException
startElement in class ComponentReadername - 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.XMLException - To indicate a problem in processing the current element.public void endElement(java.lang.String name,
                       java.lang.String namespace)
                throws XMLException
endElement in class ComponentReadername - 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.XMLException - To indicate that the current element cannnot be processed successfully.public void characters(char[] ch,
                       int start,
                       int length)
                throws XMLException
characters in class ComponentReaderch - the character array containing the charactersstart - the starting index into the character arraylength - the number of characters to recieveXMLExceptionComponentReader.characters(char[], int, int)Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com