public class ProjectHelper2 extends ProjectHelper
| Modifier and Type | Class and Description | 
|---|---|
| static class  | ProjectHelper2.AntHandlerThe common superclass for all SAX event handlers used to parse
 the configuration file. | 
| static class  | ProjectHelper2.ElementHandlerHandler for all project elements ( tasks, data types ) | 
| static class  | ProjectHelper2.MainHandlerThe main handler - it handles the <project> tag. | 
| static class  | ProjectHelper2.ProjectHandlerHandler for the top level "project" element. | 
| static class  | ProjectHelper2.RootHandlerHandler for ant processing. | 
| static class  | ProjectHelper2.TargetHandlerHandler for "target" and "extension-point" elements. | 
ProjectHelper.OnMissingExtensionPoint| Modifier and Type | Field and Description | 
|---|---|
| static String | REFID_TARGETSReference holding the (ordered) target Vector | 
ANT_ATTRIBUTE_URI, ANT_CORE_URI, ANT_CURRENT_URI, ANT_TYPE, ANTLIB_URI, HELPER_PROPERTY, PROJECTHELPER_REFERENCE, SERVICE_ID, USE_PROJECT_NAME_AS_TARGET_PREFIX| Constructor and Description | 
|---|
| ProjectHelper2() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | canParseAntlibDescriptor(Resource resource)Whether this instance of ProjectHelper can parse an Antlib
 descriptor given by the URL and return its content as an
 UnknownElement ready to be turned into an Antlib task. | 
| 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 | 
| void | parse(Project project,
     Object source)Parse a source xml input. | 
| void | parse(Project project,
     Object source,
     ProjectHelper2.RootHandler handler)Parses the project file, configuring the project as it goes. | 
| UnknownElement | parseAntlibDescriptor(Project containingProject,
                     Resource resource)Parse the given URL as an antlib descriptor and return the
 content as something that can be turned into an Antlib task. | 
| UnknownElement | parseUnknownElement(Project project,
                   URL source)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 | 
addLocationToBuildException, addText, addText, canParseBuildFile, configureProject, extractNameFromComponentName, extractUriFromComponentName, genComponentName, getCurrentPrefixSeparator, getCurrentTargetPrefix, getDefaultBuildFile, getExtensionStack, getImportStack, getProjectHelper, isInIncludeMode, nsToComponentName, resolveExtensionOfAttributes, setCurrentPrefixSeparator, setCurrentTargetPrefix, setInIncludeMode, storeChildpublic static final String REFID_TARGETS
public boolean canParseAntlibDescriptor(Resource resource)
This implementation returns true.
canParseAntlibDescriptor in class ProjectHelperprotected static ProjectHelper2.AntHandler getElementHandler()
protected static ProjectHelper2.AntHandler getMainHandler()
protected static ProjectHelper2.AntHandler getProjectHandler()
protected static ProjectHelper2.AntHandler getTargetHandler()
public void parse(Project project, Object source) throws BuildException
parse in class ProjectHelperproject - the current projectsource - the xml sourceBuildException - if an error occurspublic void parse(Project project, Object source, ProjectHelper2.RootHandler handler) throws BuildException
project - the current projectsource - the xml sourcehandler - the root handler to use (contains the current context)BuildException - if the configuration is invalid or cannot
                           be readpublic UnknownElement parseAntlibDescriptor(Project containingProject, Resource resource)
simply delegates to parseUnknownElement if the resource provides an URL and throws
 an exception otherwise.
parseAntlibDescriptor in class ProjectHelperpublic UnknownElement parseUnknownElement(Project project, URL source) throws BuildException
project - the current projectsource - the url containing the taskBuildException - if an error occursprotected static void setElementHandler(ProjectHelper2.AntHandler handler)
handler - new element handlerprotected static void setMainHandler(ProjectHelper2.AntHandler handler)
handler - new main handlerprotected static void setProjectHandler(ProjectHelper2.AntHandler handler)
handler - new project handlerprotected static void setTargetHandler(ProjectHelper2.AntHandler handler)
handler - new target handler