Save This Page
Home » apache-ant-1.7.1-src » org.apache.tools » ant » helper » [javadoc | source]
org.apache.tools.ant.helper
public class: ProjectHelper2 [javadoc | source]
java.lang.Object
   org.apache.tools.ant.ProjectHelper
      org.apache.tools.ant.helper.ProjectHelper2
Sax2 based project reader
Nested Class Summary:
public static class  ProjectHelper2.AntHandler  The common superclass for all SAX event handlers used to parse the configuration file. The context will hold all state information. At each time there is one active handler for the current element. It can use onStartChild() to set an alternate handler for the child. 
public static class  ProjectHelper2.RootHandler  Handler for ant processing. Uses a stack of AntHandlers to implement each element ( the original parser used a recursive behavior, with the implicit execution stack ) 
public static class  ProjectHelper2.MainHandler  The main handler - it handles the <project> tag. 
public static class  ProjectHelper2.ProjectHandler  Handler for the top level "project" element. 
public static class  ProjectHelper2.TargetHandler  Handler for "target" elements. 
public static class  ProjectHelper2.ElementHandler  Handler for all project elements ( tasks, data types ) 
Field Summary
public static final  String REFID_TARGETS    Reference holding the (ordered) target Vector 
Fields inherited from org.apache.tools.ant.ProjectHelper:
ANT_CORE_URI,  ANT_CURRENT_URI,  ANTLIB_URI,  ANT_TYPE,  HELPER_PROPERTY,  SERVICE_ID,  PROJECTHELPER_REFERENCE
Method from org.apache.tools.ant.helper.ProjectHelper2 Summary:
getElementHandler,   getMainHandler,   getProjectHandler,   getTargetHandler,   parse,   parse,   parseUnknownElement,   setElementHandler,   setMainHandler,   setProjectHandler,   setTargetHandler
Methods from org.apache.tools.ant.ProjectHelper:
addLocationToBuildException,   addText,   addText,   configure,   configureProject,   extractNameFromComponentName,   extractUriFromComponentName,   genComponentName,   getContextClassLoader,   getImportStack,   getProjectHelper,   parse,   parsePropertyString,   replaceProperties,   replaceProperties,   storeChild
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.helper.ProjectHelper2 Detail:
 protected static ProjectHelper2.AntHandler getElementHandler() 
    Returns element handler
 protected static ProjectHelper2.AntHandler getMainHandler() 
    Returns main handler
 protected static ProjectHelper2.AntHandler getProjectHandler() 
    Returns project handler
 protected static ProjectHelper2.AntHandler getTargetHandler() 
    Returns target handler
 public  void parse(Project project,
    Object source) throws BuildException 
    Parse a source xml input.
 public  void parse(Project project,
    Object source,
    ProjectHelper2.RootHandler handler) throws BuildException 
    Parses the project file, configuring the project as it goes.
 public UnknownElement parseUnknownElement(Project project,
    URL source) throws BuildException 
    Parse an unknown element from a url
 protected static  void setElementHandler(ProjectHelper2.AntHandler handler) 
    Sets element handler
 protected static  void setMainHandler(ProjectHelper2.AntHandler handler) 
    Sets main handler
 protected static  void setProjectHandler(ProjectHelper2.AntHandler handler) 
    Sets project handler
 protected static  void setTargetHandler(ProjectHelper2.AntHandler handler) 
    Sets target handler