public static class ProjectHelper2.ProjectHandler extends ProjectHelper2.AntHandler
Constructor and Description |
---|
ProjectHelper2.ProjectHandler() |
Modifier and Type | Method and Description |
---|---|
ProjectHelper2.AntHandler |
onStartChild(java.lang.String uri,
java.lang.String name,
java.lang.String qname,
org.xml.sax.Attributes attrs,
AntXMLContext context)
Handles the start of a top-level element within the project.
|
void |
onStartElement(java.lang.String uri,
java.lang.String tag,
java.lang.String qname,
org.xml.sax.Attributes attrs,
AntXMLContext context)
Initialisation routine called after handler creation
with the element name and attributes.
|
characters, checkNamespace, onEndChild, onEndElement
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
"default"
,
"name"
, "id"
and "basedir"
.onStartElement
in class 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 or if the "default"
attribute
is missing.public ProjectHelper2.AntHandler onStartChild(java.lang.String uri, java.lang.String name, java.lang.String qname, org.xml.sax.Attributes attrs, AntXMLContext context) throws org.xml.sax.SAXParseException
onStartChild
in class 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.org.xml.sax.SAXParseException
- if the tag given is not
"taskdef"
, "typedef"
,
"property"
, "target"
,
"extension-point"
or a data type definition