public abstract class SaxUnmarshaller
extends java.lang.Object
implements DocumentHandler, org.xml.sax.ErrorHandler
characters
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
elementName
public abstract String elementName()
Returns the name of the element that this SaxUnmarshaller
handles
- the name of the element that this SaxUnmarshaller
handles
endDocument
public void endDocument()
throws org.xml.sax.SAXException
endElement
public void endElement(String name)
throws org.xml.sax.SAXException
error
public void error(SAXParseException exception)
throws org.xml.sax.SAXException
error
public void error(String err)
throws org.xml.sax.SAXException
This method is called for a general error.
err
- the error message to report
fatalError
public void fatalError(SAXParseException exception)
throws org.xml.sax.SAXException
finish
public void finish()
throws SAXException
Called to signal an end of unmarshalling. This method should
be overridden to perform any necessary clean up by an unmarshaller
getDocumentLocator
public Locator getDocumentLocator()
getObject
public abstract Object getObject()
Returns the Object created by this Unmarshaller
- the Object created by this Unmarshaller
getResolver
public Resolver getResolver()
Returns the resolver used for resolving id references.
- the resolver used for resolving id references.
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
illegalAttribute
public void illegalAttribute(String attName)
throws org.xml.sax.SAXException
This method is called when an illegal Attribute is encountered.
attName
- the name of the illegal attribute.
illegalElement
public void illegalElement(String name)
throws org.xml.sax.SAXException
This method is called when an illegal Element is encountered.
name
- the name of the illegal element
isWhiteSpace
public static boolean isWhiteSpace(char[] chars,
int start,
int length)
Determines if the given sequence of characters consists
of whitespace characters
chars
- an array of characters to check for whitespacestart
- the start index into the character arraylength
- the number of characters to check
- true if the characters specficied consist only
of whitespace characters
outOfOrder
public void outOfOrder(String name)
throws org.xml.sax.SAXException
This method is called when an out of order element is encountered
processingInstruction
public void processingInstruction(String target,
String data)
throws org.xml.sax.SAXException
redefinedElement
public void redefinedElement(String name)
throws org.xml.sax.SAXException
This method is called when an element which may only
be defined once, is redefined.
name
- the name of the element
redefinedElement
public void redefinedElement(String name,
String xtraInfo)
throws org.xml.sax.SAXException
This method is called when an element which may only
be defined once, is redefined.
name
- the name of the element
setDocumentLocator
public void setDocumentLocator(Locator locator)
setResolver
public void setResolver(Resolver resolver)
Sets the Resolver to be used for resolving id references
resolver
- the Resolver to be used for resolving
id references
startDocument
public void startDocument()
throws org.xml.sax.SAXException
startElement
public void startElement(String name,
AttributeList atts)
throws org.xml.sax.SAXException
toInt
public static int toInt(String str)
throws IllegalArgumentException
Converts the given String to an int
str
- the String to convert to an int
- the int derived from the given String
warning
public void warning(SAXParseException exception)
throws org.xml.sax.SAXException