public static class ProjectHelper2.AntHandler
extends java.lang.Object
| Constructor and Description |
|---|
AntHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] buf,
int start,
int count,
AntXMLContext context)
Handles text within an element.
|
protected void |
checkNamespace(java.lang.String uri)
Will be called every time a namespace is reached.
|
void |
onEndChild(java.lang.String uri,
java.lang.String tag,
java.lang.String qname,
AntXMLContext context)
Handle the end of a element.
|
void |
onEndElement(java.lang.String uri,
java.lang.String tag,
AntXMLContext context)
This method is called when this element and all elements nested into it have been
handled.
|
ProjectHelper2.AntHandler |
onStartChild(java.lang.String uri,
java.lang.String tag,
java.lang.String qname,
org.xml.sax.Attributes attrs,
AntXMLContext context)
Handles the start of an element.
|
void |
onStartElement(java.lang.String uri,
java.lang.String tag,
java.lang.String qname,
org.xml.sax.Attributes attrs,
AntXMLContext context)
Handles the start of an element.
|
public void onStartElement(java.lang.String uri,
java.lang.String tag,
java.lang.String qname,
org.xml.sax.Attributes attrs,
AntXMLContext context)
throws org.xml.sax.SAXParseException
uri - the namespace URI for the tagtag - The name of the element being started.
Will not be null.qname - The qualified name of the element.attrs - Attributes of the element being started.
Will not be null.context - The context that this element is in.org.xml.sax.SAXParseException - if this method is not overridden, or in
case of error in an overridden versionpublic ProjectHelper2.AntHandler onStartChild(java.lang.String uri, java.lang.String tag, java.lang.String qname, org.xml.sax.Attributes attrs, AntXMLContext context) throws org.xml.sax.SAXParseException
uri - The namespace uri for this element.tag - The name of the element being started.
Will not be null.qname - The qualified name for this element.attrs - Attributes of the element being started.
Will not be null.context - The current context.org.xml.sax.SAXParseException - if this method is not overridden, or in
case of error in an overridden versionpublic void onEndChild(java.lang.String uri,
java.lang.String tag,
java.lang.String qname,
AntXMLContext context)
throws org.xml.sax.SAXParseException
uri - the namespace uri of the elementtag - the tag of the elementqname - the qualified name of the elementcontext - the current contextorg.xml.sax.SAXParseException - if an error occurspublic void onEndElement(java.lang.String uri,
java.lang.String tag,
AntXMLContext context)
uri - the namespace uri for this elementtag - the element namecontext - the current contextpublic void characters(char[] buf,
int start,
int count,
AntXMLContext context)
throws org.xml.sax.SAXParseException
buf - A character array of the text within the element.
Will not be null.start - The start element in the array.count - The number of characters to read from the array.context - The current context.org.xml.sax.SAXParseException - if this method is not overridden, or in
case of error in an overridden versionprotected void checkNamespace(java.lang.String uri)
uri - The namespace uri.