org.exolab.castor.xml.schema.reader
public abstract class SaxUnmarshaller extends Object implements DocumentHandler, ErrorHandler
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:41 $
Field Summary | |
---|---|
protected Locator | _locator
The document locator
|
Constructor Summary | |
---|---|
SaxUnmarshaller() |
Method Summary | |
---|---|
void | characters(char[] ch, int start, int length) |
abstract String | elementName()
Returns the name of the element that this SaxUnmarshaller
handles |
void | endDocument() |
void | endElement(String name) |
void | error(String err)
This method is called for a general error. |
void | error(SAXParseException exception) |
void | fatalError(SAXParseException exception) |
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. |
void | ignorableWhitespace(char[] ch, int start, int length) |
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 | processingInstruction(String target, String data) |
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 | startDocument() |
void | startElement(String name, AttributeList atts) |
static int | toInt(String str)
Converts the given String to an int |
void | warning(SAXParseException exception) |
Returns: the name of the element that this SaxUnmarshaller handles
Parameters: err the error message to report
Throws: org.xml.sax.SAXException always thrown.
Returns: the Object created by this Unmarshaller
Returns: the resolver used for resolving id references.
Parameters: attName the name of the illegal attribute.
Throws: org.xml.sax.SAXException always thrown.
Parameters: name the name of the illegal element
Throws: org.xml.sax.SAXException always thrown.
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
Throws: org.xml.sax.SAXException always thrown.
Parameters: name the name of the element
Throws: org.xml.sax.SAXException always thrown.
Parameters: name the name of the element
Throws: org.xml.sax.SAXException always thrown.
Parameters: resolver the Resolver to be used for resolving id references
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