org.exolab.castor.xml.schema.reader
public abstract class ComponentReader extends Object
Version: $Revision: 6285 $ $Date: 2006-04-14 04:14:43 -0600 (Fri, 14 Apr 2006) $
Field Summary | |
---|---|
protected Locator | _locator
The document locator
|
Constructor Summary | |
---|---|
ComponentReader() |
Method Summary | |
---|---|
void | characters(char[] chars, int start, int length)
Signals to recieve charactes
|
abstract String | elementName()
Returns the name of the element that this ComponentReader
handles |
void | endElement(String name, String namespace)
Signals to end of the element with the given name.
|
void | error(String err)
This method is called for a general error. |
void | error(Exception ex)
This method is called for a general error.
|
void | finish()
Called to signal an end of unmarshalling. |
Locator | getDocumentLocator() |
abstract Object | getObject()
Returns the Object created by this Unmarshaller |
Resolver | getResolver()
Returns the resolver used for resolving id references. |
URIResolver | getURIResolver()
Returns the URIresolver used for resolving hrefs.
|
void | illegalAttribute(String attName)
This method is called when an illegal Attribute is encountered. |
void | illegalElement(String name)
This method is called when an illegal Element is encountered. |
static boolean | isWhiteSpace(char[] chars, int start, int length)
Determines if the given sequence of characters consists
of whitespace characters |
void | outOfOrder(String name)
This method is called when an out of order element is encountered
|
void | redefinedElement(String name)
This method is called when an element which may only
be defined once, is redefined. |
void | redefinedElement(String name, String xtraInfo)
This method is called when an element which may only
be defined once, is redefined. |
void | setDocumentLocator(Locator locator) |
void | setResolver(Resolver resolver)
Sets the Resolver to be used for resolving id references |
void | setURIResolver(URIResolver uriResolver)
Sets the URIResolver to be used for resolving hrefs.
|
void | startElement(String name, String namespace, AttributeSet atts, Namespaces nsDecls)
Signals the start of an element with the given name.
|
static int | toInt(String str)
Converts the given String to an int |
Parameters: chars the character array containing the characters start the starting index into the character array length the number of characters to recieve
Returns: the name of the element that this ComponentReader handles
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.
Parameters: err the error message to report
Parameters: ex the Exception that caused the error.
Returns: the Object created by this Unmarshaller
Returns: the resolver used for resolving id references.
Returns: the URIresolver used for resolving hrefs.
Parameters: attName the name of the illegal attribute.
Parameters: name the name of the illegal element
Parameters: chars an array of characters to check for whitespace start the start index into the character array length the number of characters to check
Returns: true if the characters specficied consist only of whitespace characters
Parameters: name the name of the element
Parameters: name the name of the element
Parameters: resolver the Resolver to be used for resolving id references
Parameters: uriResolver the URIResolver to be used for resolving hrefs.
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.
Parameters: str the String to convert to an int
Returns: the int derived from the given String
Throws: IllegalArgumentException when the given String does not represent a valid int