Class SchemaUnmarshaller

java.lang.Object
org.exolab.castor.xml.schema.reader.ComponentReader
org.exolab.castor.xml.schema.reader.SchemaUnmarshaller

public class SchemaUnmarshaller extends ComponentReader
Version:
$Revision: 9147 $ $Date: 2006-04-13 06:47:36 -0600 (Thu, 13 Apr 2006) $
Author:
Keith Visco
  • Field Details

    • XSD_NAMESPACE

      public static final String XSD_NAMESPACE
      W3C XML schema namespace.
      See Also:
    • UNSUPPORTED_NAMESPACES

      public static final String[] UNSUPPORTED_NAMESPACES
      Unsupported namespace definitions, pointing to older XML schema specifications.
  • Constructor Details

  • Method Details

    • getSchema

      public Schema getSchema()
      Returns the Schema instance representing the XML schema (file) just processed.
      Returns:
      the Schema instance obtained from processing an XML schema file.
    • setSchema

      public void setSchema(Schema schema)
      Sets the Schema instance to be processed.
      Parameters:
      schema - Schema instancetp be processed.
    • getObject

      public Object getObject()
      Returns the Object created by this ComponentReader.
      Specified by:
      getObject in class ComponentReader
      Returns:
      the Object created by this ComponentReader
    • elementName

      public String elementName()
      Returns the name of the element that this ComponentReader handles.
      Specified by:
      elementName in class ComponentReader
      Returns:
      the name of the element that this ComponentReader handles
    • startElement

      public void startElement(String name, String namespace, AttributeSet atts, Namespaces nsDecls) throws XMLException
      Signals the start of an element with the given name.
      Overrides:
      startElement in class ComponentReader
      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.
      Throws:
      XMLException - To indicate a problem in processing the current element.
    • endElement

      public void endElement(String name, String namespace) throws XMLException
      Signals to end of the element with the given name.
      Overrides:
      endElement in class ComponentReader
      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.
      Throws:
      XMLException - To indicate that the current element cannnot be processed successfully.
    • characters

      public void characters(char[] ch, int start, int length) throws XMLException
      Signals to recieve charactes
      Overrides:
      characters in class ComponentReader
      Parameters:
      ch - the character array containing the characters
      start - the starting index into the character array
      length - the number of characters to recieve
      Throws:
      XMLException
      See Also: