public static class ProjectHelper2.ElementHandler extends ProjectHelper2.AntHandler
Constructor and Description |
---|
ElementHandler()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] buf,
int start,
int count,
AntXMLContext context)
Adds text to the task, using the wrapper
|
void |
onEndElement(java.lang.String uri,
java.lang.String tag,
AntXMLContext context)
Handles the end of the element.
|
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 within a target.
|
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.
|
checkNamespace, onEndChild
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
onStartElement
in class ProjectHelper2.AntHandler
uri
- The namespace URI for this element.tag
- Name of the element which caused this handler
to be created. Must not be null
.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
- in case of error (not thrown in
this implementation)public void characters(char[] buf, int start, int count, AntXMLContext context) throws org.xml.sax.SAXParseException
characters
in class ProjectHelper2.AntHandler
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 the element doesn't support textProjectHelper.addText(Project,java.lang.Object,char[],int,int)
public 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
onStartChild
in class ProjectHelper2.AntHandler
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 an error occurs when initialising
the appropriate child handlerpublic void onEndElement(java.lang.String uri, java.lang.String tag, AntXMLContext context)
onEndElement
in class ProjectHelper2.AntHandler
uri
- The namespace URI for the element.tag
- The name of the element.context
- The current context.