public static class AntParser.TasksHandler
extends org.apache.tools.ant.helper.ProjectHelper2.AntHandler
Constructor and Description |
---|
TasksHandler() |
Modifier and Type | Method and Description |
---|---|
void |
onEndElement(java.lang.String uri,
java.lang.String tag,
org.apache.tools.ant.helper.AntXMLContext context)
Handle the end of the project, sets the current target of the
context to be the implicit target.
|
org.apache.tools.ant.helper.ProjectHelper2.AntHandler |
onStartChild(java.lang.String uri,
java.lang.String name,
java.lang.String qname,
org.xml.sax.Attributes attrs,
org.apache.tools.ant.helper.AntXMLContext context)
Handles the start of an element within a target.
|
void |
onStartElement(java.lang.String uri,
java.lang.String tag,
java.lang.String qname,
org.xml.sax.Attributes attrs,
org.apache.tools.ant.helper.AntXMLContext context)
Handle the "tasks" document element.
|
public void onStartElement(java.lang.String uri, java.lang.String tag, java.lang.String qname, org.xml.sax.Attributes attrs, org.apache.tools.ant.helper.AntXMLContext context) throws org.xml.sax.SAXParseException
onStartElement
in class org.apache.tools.ant.helper.ProjectHelper2.AntHandler
uri
- The namespace URI for this element.tag
- Name of the element which caused this handler
to be created. Should not be null
.
Ignored in this implementation.qname
- The qualified name for this element.attrs
- Attributes of the element which caused this
handler to be created. Must not be null
.context
- The current context.org.xml.sax.SAXParseException
- if an unexpected attribute is encountered.public org.apache.tools.ant.helper.ProjectHelper2.AntHandler onStartChild(java.lang.String uri, java.lang.String name, java.lang.String qname, org.xml.sax.Attributes attrs, org.apache.tools.ant.helper.AntXMLContext context) throws org.xml.sax.SAXParseException
onStartChild
in class org.apache.tools.ant.helper.ProjectHelper2.AntHandler
uri
- The namespace URI for this element.name
- 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 an error occurs when initialising
the appropriate child handlerpublic void onEndElement(java.lang.String uri, java.lang.String tag, org.apache.tools.ant.helper.AntXMLContext context)
onEndElement
in class org.apache.tools.ant.helper.ProjectHelper2.AntHandler
uri
- The namespace URI of the element.tag
- The name of the element.context
- The current context.