Public Member Functions | |
SimpleTypeUnmarshaller (Schema schema, AttributeSet atts) throws XMLException | |
String | elementName () |
SimpleType | getSimpleType () |
Object | getObject () |
void | finish () throws XMLException |
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 |
A class for Unmarshalling SimpleTypes
org.exolab.castor.xml.schema.reader.SimpleTypeUnmarshaller.SimpleTypeUnmarshaller | ( | Schema | schema, | |
AttributeSet | atts | |||
) | throws XMLException |
Creates a new SimpleTypeUnmarshaller
schema | the Schema to which the SimpleType belongs | |
atts | the AttributeList | |
resolver | the resolver being used for reference resolving |
References org.exolab.castor.xml.schema.Schema.getNamespace(), org.exolab.castor.xml.schema.Schema.getTargetNamespace(), org.exolab.castor.xml.AttributeSet.getValue(), and org.exolab.castor.xml.schema.reader.SimpleTypeDefinition.setFinal().
void org.exolab.castor.xml.schema.reader.SimpleTypeUnmarshaller.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.SimpleTypeUnmarshaller.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.SimpleTypeUnmarshaller.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.SimpleTypeDefinition.copyInto(), org.exolab.castor.xml.schema.reader.ComponentReader.endElement(), org.exolab.castor.xml.schema.reader.ComponentReader.finish(), org.exolab.castor.xml.schema.reader.ComponentReader.getObject(), and org.exolab.castor.xml.schema.reader.SimpleTypeDefinition.setAnnotation().
void org.exolab.castor.xml.schema.reader.SimpleTypeUnmarshaller.finish | ( | ) | throws XMLException |
Called to signal an end of unmarshalling. This method should be overridden to perform any necessary clean up by an unmarshaller
Reimplemented from org.exolab.castor.xml.schema.reader.ComponentReader.
References org.exolab.castor.xml.schema.reader.ComponentReader.error().
Object org.exolab.castor.xml.schema.reader.SimpleTypeUnmarshaller.getObject | ( | ) | [virtual] |
Returns the Object created by this ComponentReader
Implements org.exolab.castor.xml.schema.reader.ComponentReader.
References org.exolab.castor.xml.schema.reader.SimpleTypeUnmarshaller.getSimpleType().
SimpleType org.exolab.castor.xml.schema.reader.SimpleTypeUnmarshaller.getSimpleType | ( | ) |
Returns the SimpleType created
References org.exolab.castor.xml.schema.reader.SimpleTypeDefinition.createSimpleType().
Referenced by org.exolab.castor.xml.schema.reader.SimpleTypeUnmarshaller.getObject().
void org.exolab.castor.xml.schema.reader.SimpleTypeUnmarshaller.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.ComponentReader.error(), org.exolab.castor.xml.schema.reader.SimpleTypeDefinition.getSchema(), org.exolab.castor.xml.schema.reader.ComponentReader.illegalElement(), and org.exolab.castor.xml.schema.reader.ComponentReader.startElement().