public interface ISAXElementHandler
ISAXElementHandler object.| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
this message is sent when characters are available to the receiver
|
void |
endChildElement(ISAXElementHandler elementHandler)
this message is sent when a child element has been terminated
|
void |
endDocumentElement()
this message is sent when the element that is ended is the document
itself
|
void |
endElement(String uri,
String local,
String name)
this message is sent when the receiver is about to end
|
SAXContextBasedHandler |
getContextHandler()
return the context
|
String |
getLocalName()
return the local name of the receiver valid after initialize()
|
ISAXElementHandler |
getParent()
get the parent element of the receiver if any available valid with call
to initialize()
|
Object |
getResult()
An optional result object to be returned when this element is finished.
|
String |
getURI()
return the uri of the receiver valid after initialize()
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
this message is sent when ignorable whitespace is available to the
receiver
|
void |
initialize(String uri,
String local,
String name,
Attributes attrs)
this message is sent when - the receiver was created - it was pushed on
the stack. - markStartLocation() was called
|
void |
initializeDocumentElement()
this message is sent when - the document was started - the receiver
represents a document element
|
boolean |
isDocumentHandler()
an handler is a document handler when it handles the startDocument() and
endDocument() messages
|
boolean |
isRootElementHandler()
a handler is a root handler when it is the element immediately below a
document handler ther can be only a single root element in a document
element.
|
void |
markEndLocation(int line,
int column) |
void |
markStartLocation(int line,
int column)
this message is sent when - the receiver was created - it was pushed on
the stack.
|
void |
processAttributes(Attributes attrs)
this message is sent - after is is initialized()
|
void |
setContextHandler(SAXContextBasedHandler contextHandler)
this message is sent when - the receiver is pushed on the stack. - before
initialize()
|
void |
setLocalName(String name)
this message is sent - while the receiver is in initialize()
|
void |
setParent(ISAXElementHandler parentHandler)
this message is sent when - the receiver is pushed on the stack. - before
initialize()
|
void |
setURI(String name)
this message is sent - while the receiver is in initialize()
|
void |
startChildElement(ISAXElementHandler elementHandler)
this message is sent when a child element has been created
|
void |
started()
this message is sent - after all houskeeping with the element is done -
before any other SAX event can reach the receiver
|
ISAXElementHandler |
startElement(String uri,
String local,
String name,
Attributes attrs)
this message is sent - when the receiver is requested to create a child
element
|
void characters(char[] ch,
int start,
int length)
throws SAXException
ch - the array of charactersstart - start index of first char to readlength - number of chars to readSAXException - if errorvoid endChildElement(ISAXElementHandler elementHandler) throws SAXException
elementHandler - the child element previously created by the receiver that is
terminated nowSAXException - if errorvoid endDocumentElement()
throws SAXException
SAXException - if errorvoid endElement(String uri, String local, String name) throws SAXException
uri - the SAX namspace urilocal - the SAX local namename - the SAX qualified nameSAXException - if errororg.xml.saxSAXContextBasedHandler getContextHandler()
String getLocalName()
ISAXElementHandler getParent()
Object getResult()
String getURI()
void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ch - the array of charactersstart - start index of first char to readlength - number of chars to readSAXException - if errorvoid initialize(String uri, String local, String name, Attributes attrs) throws SAXException
SAXExceptionvoid initializeDocumentElement()
throws SAXException
SAXExceptionboolean isDocumentHandler()
boolean isRootElementHandler()
void markEndLocation(int line,
int column)
void markStartLocation(int line,
int column)
void processAttributes(Attributes attrs) throws SAXException
SAXExceptionvoid setContextHandler(SAXContextBasedHandler contextHandler)
void setLocalName(String name)
void setParent(ISAXElementHandler parentHandler)
void setURI(String name)
void startChildElement(ISAXElementHandler elementHandler) throws SAXException
elementHandler - the child element createdSAXException - if errorvoid started()
throws SAXException
SAXExceptionISAXElementHandler startElement(String uri, String local, String name, Attributes attrs) throws SAXException
SAXExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.