public static class ProjectHelper2.RootHandler
extends org.xml.sax.helpers.DefaultHandler
| Constructor and Description | 
|---|
| RootHandler(AntXMLContext context,
           ProjectHelper2.AntHandler rootHandler)Creates a new RootHandler instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | characters(char[] buf,
          int start,
          int count)Handle text within an element, calls currentHandler.characters. | 
| void | endElement(String uri,
          String name,
          String qName)Handles the end of an element. | 
| void | endPrefixMapping(String prefix)End a namespace prefix to uri mapping | 
| ProjectHelper2.AntHandler | getCurrentAntHandler()Returns the current ant handler object. | 
| org.xml.sax.InputSource | resolveEntity(String publicId,
             String systemId)Resolves file: URIs relative to the build file. | 
| void | setDocumentLocator(org.xml.sax.Locator locator)Sets the locator in the project helper for future reference. | 
| void | startElement(String uri,
            String tag,
            String qname,
            org.xml.sax.Attributes attrs)Handles the start of a project element. | 
| void | startPrefixMapping(String prefix,
                  String uri)Start a namespace prefix to uri mapping | 
public RootHandler(AntXMLContext context, ProjectHelper2.AntHandler rootHandler)
context - The context for the handler.rootHandler - The handler for the root element.public void characters(char[] buf,
                       int start,
                       int count)
                throws org.xml.sax.SAXParseException
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerbuf - A character array of the test.start - The start offset in the array.count - The number of characters to read.org.xml.sax.SAXParseException - if an error occurspublic void endElement(String uri, String name, String qName) throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandleruri - The namespace URI for this element.name - The name of the element which is ending.
             Will not be null.qName - The qualified name for this element.org.xml.sax.SAXException - in case of error (not thrown in this implementation)public void endPrefixMapping(String prefix)
endPrefixMapping in interface org.xml.sax.ContentHandlerendPrefixMapping in class org.xml.sax.helpers.DefaultHandlerprefix - the prefix that is not mapped anymorepublic ProjectHelper2.AntHandler getCurrentAntHandler()
public org.xml.sax.InputSource resolveEntity(String publicId, String systemId)
resolveEntity in interface org.xml.sax.EntityResolverresolveEntity in class org.xml.sax.helpers.DefaultHandlerpublicId - The public identifier, or null
                 if none is available. Ignored in this
                 implementation.systemId - The system identifier provided in the XML
                 document. Will not be null.public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.ContentHandlersetDocumentLocator in class org.xml.sax.helpers.DefaultHandlerlocator - The locator used by the parser.
                Will not be null.public void startElement(String uri, String tag, String qname, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXParseException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandleruri - 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.org.xml.sax.SAXParseException - if the tag given is not
                              "project"public void startPrefixMapping(String prefix, String uri)
startPrefixMapping in interface org.xml.sax.ContentHandlerstartPrefixMapping in class org.xml.sax.helpers.DefaultHandlerprefix - the namespace prefixuri - the namespace uri