org.apache.tools.ant.helper
Class ProjectHelper2.ProjectHandler
- ProjectHelper2
public static class ProjectHelper2.ProjectHandler
Handler for the top level "project" element.
onStartChild
public ProjectHelper2.AntHandler onStartChild(String uri,
String name,
String qname,
Attributes attrs,
AntXMLContext context)
throws SAXParseException
Handles the start of a top-level element within the project. An
appropriate handler is created and initialised with the details
of the element.
- onStartChild in interface 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 context for this element.
- a target or an element handler.
onStartElement
public void onStartElement(String uri,
String tag,
String qname,
Attributes attrs,
AntXMLContext context)
throws SAXParseException
Initialisation routine called after handler creation
with the element name and attributes. The attributes which
this handler can deal with are: "default"
,
"name"
, "id"
and "basedir"
.
- onStartElement in interface 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.
Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.