Public Member Functions | |
SimpleContentRestrictionUnmarshaller (ComplexType complexType, AttributeSet atts, Resolver resolver) throws XMLException | |
String | elementName () |
Object | getObject () |
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 |
void | finish () |
A class for unmarshalling restriction elements of a simpleContent
org.exolab.castor.xml.schema.reader.SimpleContentRestrictionUnmarshaller.SimpleContentRestrictionUnmarshaller | ( | ComplexType | complexType, | |
AttributeSet | atts, | |||
Resolver | resolver | |||
) | throws XMLException |
Creates a new RestrictionUnmarshaller
complexType,the | complexType being unmarshalled | |
atts | the AttributeList |
References org.exolab.castor.xml.schema.ComplexType.getContentType(), org.exolab.castor.xml.schema.XMLType.getName(), org.exolab.castor.xml.schema.XMLType.getSchema(), org.exolab.castor.xml.schema.SimpleContent.getSimpleType(), org.exolab.castor.xml.schema.Schema.getType(), org.exolab.castor.xml.schema.SimpleContent.getTypeName(), org.exolab.castor.xml.AttributeSet.getValue(), org.exolab.castor.xml.schema.ComplexType.isSimpleContent(), org.exolab.castor.xml.schema.XMLType.isSimpleType(), org.exolab.castor.xml.schema.ComplexType.setBase(), org.exolab.castor.xml.schema.reader.SimpleTypeDefinition.setBaseType(), org.exolab.castor.xml.schema.ComplexType.setBaseType(), org.exolab.castor.xml.schema.reader.SimpleTypeDefinition.setBaseTypeName(), org.exolab.castor.xml.schema.ComplexType.setContentType(), org.exolab.castor.xml.schema.XMLType.setDerivationMethod(), org.exolab.castor.xml.schema.reader.ComponentReader.setResolver(), and org.exolab.castor.xml.schema.ComplexType.setRestriction().
void org.exolab.castor.xml.schema.reader.SimpleContentRestrictionUnmarshaller.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.SimpleContentRestrictionUnmarshaller.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.SimpleContentRestrictionUnmarshaller.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.Annotated.addAnnotation(), org.exolab.castor.xml.schema.ComplexType.addAttributeDecl(), org.exolab.castor.xml.schema.ComplexType.addAttributeGroupReference(), org.exolab.castor.xml.schema.reader.SimpleTypeDefinition.addFacet(), org.exolab.castor.xml.schema.reader.ComponentReader.endElement(), org.exolab.castor.xml.schema.reader.ComponentReader.finish(), org.exolab.castor.core.exceptions.CastorException.getMessage(), org.exolab.castor.xml.schema.reader.ComponentReader.getObject(), org.exolab.castor.xml.schema.ComplexType.setAnyAttribute(), and org.exolab.castor.xml.schema.ComplexType.setContentType().
void org.exolab.castor.xml.schema.reader.SimpleContentRestrictionUnmarshaller.finish | ( | ) |
Terminates the process of this restriction by setting a proper base. We set a new base if the base simple type has been restricted by the use of facets since all other restrictions may concern the complexType character of the type (i.e attribute for instance is only related to a complexType...)
Reimplemented from org.exolab.castor.xml.schema.reader.ComponentReader.
References org.exolab.castor.xml.schema.reader.SimpleTypeDefinition.createSimpleType(), org.exolab.castor.xml.schema.ComplexType.setContentType(), and org.exolab.castor.xml.schema.ComplexType.setRestriction().
Object org.exolab.castor.xml.schema.reader.SimpleContentRestrictionUnmarshaller.getObject | ( | ) | [virtual] |
Returns the Object created by this ComponentReader
Implements org.exolab.castor.xml.schema.reader.ComponentReader.
void org.exolab.castor.xml.schema.reader.SimpleContentRestrictionUnmarshaller.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.ComplexType.getContentType(), org.exolab.castor.xml.schema.reader.ComponentReader.getDocumentLocator(), org.exolab.castor.xml.schema.reader.ComponentReader.getResolver(), org.exolab.castor.xml.schema.SimpleContent.getTypeName(), org.exolab.castor.xml.AttributeSet.getValue(), org.exolab.castor.xml.schema.reader.ComponentReader.illegalElement(), org.exolab.castor.xml.schema.reader.ComponentReader.setDocumentLocator(), and org.exolab.castor.xml.schema.reader.ComponentReader.startElement().