| java.lang.Object org.exolab.castor.xml.schema.reader.ComponentReader
All known Subclasses: org.exolab.castor.xml.schema.reader.SimpleTypeListUnmarshaller, org.exolab.castor.xml.schema.reader.UnionUnmarshaller, org.exolab.castor.xml.schema.reader.AnnotationUnmarshaller, org.exolab.castor.xml.schema.reader.ExtensionUnmarshaller, org.exolab.castor.xml.schema.reader.ElementUnmarshaller, org.exolab.castor.xml.schema.reader.WildcardUnmarshaller, org.exolab.castor.xml.schema.reader.AppInfoUnmarshaller, org.exolab.castor.xml.schema.reader.RedefineUnmarshaller, org.exolab.castor.xml.schema.reader.UnknownUnmarshaller, org.exolab.castor.xml.schema.reader.GroupUnmarshaller, org.exolab.castor.xml.schema.reader.ModelGroupUnmarshaller, org.exolab.castor.xml.schema.reader.CharacterUnmarshaller, org.exolab.castor.xml.schema.reader.ComplexContentRestrictionUnmarshaller, org.exolab.castor.xml.schema.reader.SimpleContentRestrictionUnmarshaller, org.exolab.castor.xml.schema.reader.ComplexContentUnmarshaller, org.exolab.castor.xml.schema.reader.ComplexTypeUnmarshaller, org.exolab.castor.xml.schema.reader.ImportUnmarshaller, org.exolab.castor.xml.schema.reader.AttributeGroupUnmarshaller, org.exolab.castor.xml.schema.reader.SimpleTypeUnmarshaller, org.exolab.castor.xml.schema.reader.FieldOrSelectorUnmarshaller, org.exolab.castor.xml.schema.reader.FacetUnmarshaller, org.exolab.castor.xml.schema.reader.AttributeUnmarshaller, org.exolab.castor.xml.schema.reader.IdentityConstraintUnmarshaller, org.exolab.castor.xml.schema.reader.SchemaUnmarshaller, org.exolab.castor.xml.schema.reader.SimpleTypeRestrictionUnmarshaller, org.exolab.castor.xml.schema.reader.IncludeUnmarshaller, org.exolab.castor.xml.schema.reader.DocumentationUnmarshaller, org.exolab.castor.xml.schema.reader.SimpleContentUnmarshaller,
ComponentReader | abstract public class ComponentReader (Code) | | The base class for separate component unmarshallers for
reading an XML Schema component.
author: Keith Visco version: $Revision: 6285 $ $Date: 2006-04-14 04:14:43 -0600 (Fri, 14 Apr 2006) $ |
Method Summary | |
public void | characters(char[] chars, int start, int length) | abstract public String | elementName() | public void | endElement(String name, String namespace) Signals to end of the element with the given name.
Parameters: name - the NCName of the element. | public void | error(String err) This method is called for a general error. | public void | error(Exception ex) This method is called for a general error. | public void | finish() Called to signal an end of unmarshalling. | public Locator | getDocumentLocator() | abstract public Object | getObject() | public Resolver | getResolver() Returns the resolver used for resolving id references. | public URIResolver | getURIResolver() Returns the URIresolver used for resolving hrefs. | public void | illegalAttribute(String attName) This method is called when an illegal Attribute is encountered. | public void | illegalElement(String name) This method is called when an illegal Element is encountered. | public static boolean | isWhiteSpace(char[] chars, int start, int length) | public void | outOfOrder(String name) | public void | redefinedElement(String name) This method is called when an element which may only
be defined once, is redefined. | public void | redefinedElement(String name, String xtraInfo) This method is called when an element which may only
be defined once, is redefined. | public void | setDocumentLocator(Locator locator) | public void | setResolver(Resolver resolver) | public void | setURIResolver(URIResolver uriResolver) Sets the URIResolver to be used for resolving hrefs. | public void | startElement(String name, String namespace, AttributeSet atts, Namespaces nsDecls) Signals the start of an element with the given name.
Parameters: name - the NCName of the element. | public static int | toInt(String str) |
ComponentReader | public ComponentReader()(Code) | | |
characters | public void characters(char[] chars, int start, int length) throws XMLException(Code) | | Signals to recieve charactes
Parameters: chars - the character array containing the characters Parameters: start - the starting index into the character array Parameters: length - the number of characters to recieve |
elementName | abstract public String elementName()(Code) | | Returns the name of the element that this ComponentReader
handles
the name of the element that this ComponentReaderhandles |
endElement | public void endElement(String name, String namespace) throws XMLException(Code) | | Signals to end of the element with the given name.
Parameters: name - the NCName of the element. It is an errorif the name is a QName (ie. contains a prefix). Parameters: namespace - the namespace of the element. |
error | public void error(String err) throws XMLException(Code) | | This method is called for a general error.
Parameters: err - the error message to report |
error | public void error(Exception ex) throws XMLException(Code) | | This method is called for a general error.
Parameters: ex - the Exception that caused the error. |
finish | public void finish() throws XMLException(Code) | | Called to signal an end of unmarshalling. This method should
be overridden to perform any necessary clean up by an unmarshaller
|
getObject | abstract public Object getObject()(Code) | | Returns the Object created by this Unmarshaller
the Object created by this Unmarshaller |
getResolver | public Resolver getResolver()(Code) | | Returns the resolver used for resolving id references.
the resolver used for resolving id references. |
getURIResolver | public URIResolver getURIResolver()(Code) | | Returns the URIresolver used for resolving hrefs.
the URIresolver used for resolving hrefs. |
illegalAttribute | public void illegalAttribute(String attName) throws XMLException(Code) | | This method is called when an illegal Attribute is encountered.
Parameters: attName - the name of the illegal attribute. |
illegalElement | public void illegalElement(String name) throws XMLException(Code) | | This method is called when an illegal Element is encountered.
Parameters: name - the name of the illegal element |
isWhiteSpace | public static boolean isWhiteSpace(char[] chars, int start, int length)(Code) | | Determines if the given sequence of characters consists
of whitespace characters
Parameters: chars - an array of characters to check for whitespace Parameters: start - the start index into the character array Parameters: length - the number of characters to check true if the characters specficied consist onlyof whitespace characters |
outOfOrder | public void outOfOrder(String name) throws XMLException(Code) | | This method is called when an out of order element is encountered
|
redefinedElement | public void redefinedElement(String name) throws XMLException(Code) | | This method is called when an element which may only
be defined once, is redefined.
Parameters: name - the name of the element |
redefinedElement | public void redefinedElement(String name, String xtraInfo) throws XMLException(Code) | | This method is called when an element which may only
be defined once, is redefined.
Parameters: name - the name of the element |
setDocumentLocator | public void setDocumentLocator(Locator locator)(Code) | | |
setResolver | public void setResolver(Resolver resolver)(Code) | | Sets the Resolver to be used for resolving id references
Parameters: resolver - the Resolver to be used for resolvingid references |
setURIResolver | public void setURIResolver(URIResolver uriResolver)(Code) | | Sets the URIResolver to be used for resolving hrefs.
Parameters: uriResolver - the URIResolver to be used for resolving hrefs. |
startElement | public void startElement(String name, String namespace, AttributeSet atts, Namespaces nsDecls) throws XMLException(Code) | | Signals the start of an element with the given name.
Parameters: name - the NCName of the element. It is an errorif the name is a QName (ie. contains a prefix). Parameters: namespace - the namespace of the element. This may be null.Note: A null namespace is not the same as the default namespace unlessthe default namespace is also null. Parameters: atts - the AttributeSet containing the attributes associatedwith the element. Parameters: nsDecls - the namespace declarations being declared for thiselement. This may be null. |
|
|