org.oddjob.ant
Class AntParser.TasksHandler
java.lang.Object
org.apache.tools.ant.helper.ProjectHelper2.AntHandler
org.oddjob.ant.AntParser.TasksHandler
- Enclosing class:
- AntParser
public static class AntParser.TasksHandler
- extends org.apache.tools.ant.helper.ProjectHelper2.AntHandler
Handler for the dummy "tasks" document element.
|
Method Summary |
void |
onEndElement(String uri,
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(String uri,
String name,
String qname,
Attributes attrs,
org.apache.tools.ant.helper.AntXMLContext context)
Handles the start of an element within a target. |
void |
onStartElement(String uri,
String tag,
String qname,
Attributes attrs,
org.apache.tools.ant.helper.AntXMLContext context)
Handle the "tasks" document element. |
| Methods inherited from class org.apache.tools.ant.helper.ProjectHelper2.AntHandler |
characters, checkNamespace, onEndChild |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AntParser.TasksHandler
public AntParser.TasksHandler()
onStartElement
public void onStartElement(String uri,
String tag,
String qname,
Attributes attrs,
org.apache.tools.ant.helper.AntXMLContext context)
throws SAXParseException
- Handle the "tasks" document element.
- Overrides:
onStartElement in class org.apache.tools.ant.helper.ProjectHelper2.AntHandler
- Parameters:
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.
- Throws:
SAXParseException - if an unexpected attribute is encountered.
onStartChild
public org.apache.tools.ant.helper.ProjectHelper2.AntHandler onStartChild(String uri,
String name,
String qname,
Attributes attrs,
org.apache.tools.ant.helper.AntXMLContext context)
throws SAXParseException
- Handles the start of an element within a target.
- Overrides:
onStartChild in class org.apache.tools.ant.helper.ProjectHelper2.AntHandler
- Parameters:
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.
- Returns:
- an element handler.
- Throws:
SAXParseException - if an error occurs when initialising
the appropriate child handler
onEndElement
public void onEndElement(String uri,
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.
- Overrides:
onEndElement in class org.apache.tools.ant.helper.ProjectHelper2.AntHandler
- Parameters:
uri - The namespace URI of the element.tag - The name of the element.context - The current context.