Modifier and Type | Field and Description |
---|---|
private File | buildFile
The configuration file to parse. |
private File | buildFileParent
Parent directory of the build file. |
private URL | buildFileParentURL
Parent directory of the build file. |
private URL | buildFileURL
The configuration file to parse. |
private String | currentProjectName
Name of the current project |
private Target | currentTarget
Current target (no need for a stack as the processing model allows only one level of target) |
private Map | currentTargets
Keeps track of targets in files |
private boolean | ignoreProjectTag
Indicates whether the project tag attributes are to be ignored when processing a particular build file. |
private Target | implicitTarget
Target that all other targets will depend upon implicitly. |
private Locator | locator
Locator for the configuration file parser. |
private Map | prefixMapping
Keeps track of prefix -> uri mapping during parsing |
private Project | project
The project to configure. |
private Vector | targetVector
Vector with all the targets, in the order they are defined. |
private Vector | wStack
The stack of RuntimeConfigurable2 wrapping the objects. |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | |
public void | configureId(Object
the current element element, Attributes attributes of the current element attr)Scans an attribute list for the |
public RuntimeConfigurable | Returns: runtime configurable wrapperget the current runtime configurable wrapper can return null |
public void | |
public File | |
public File | Returns: the parent build file of this build filefind out the parent build file of this build file |
public URL | Returns: the parent build file of this build filefind out the parent build file of this build file |
public URL | |
public String | |
public Target | |
public Map | |
public Target | |
public Locator | |
public String | Returns: the uri for this prefix, null if not presentthe prefix to map prefix)prefix to namespace uri mapping |
public Project | |
public Vector | |
public Vector | |
public boolean | Returns: whether the project tag is being ignoredtells whether the project tag is being ignored |
public RuntimeConfigurable | Returns: runtime configurable wrapper of the parent projectget the runtime configurable wrapper of the parent project can return null |
public void | |
public void | pushWrapper(RuntimeConfigurable
runtime configurable wrapper wrapper)add a runtime configurable wrapper to the internal stack |
public void | |
public void | |
public void | |
public void | |
public void | setCurrentTargets(Map<String, Target>
a map of targets. currentTargets)Set the map of the targets in the current source file. |
public void | |
public void | |
public void | |
public void | startPrefixMapping(String
a namespace prefix prefix, String a namespace uri uri)Called during parsing, stores the prefix to uri mapping. |
buildFile | back to summary |
---|---|
private File buildFile The configuration file to parse. |
buildFileParent | back to summary |
---|---|
private File buildFileParent Parent directory of the build file. Used for resolving entities and setting the project's base directory. |
buildFileParentURL | back to summary |
---|---|
private URL buildFileParentURL Parent directory of the build file. Used for resolving entities and setting the project's base directory. |
buildFileURL | back to summary |
---|---|
private URL buildFileURL The configuration file to parse. |
currentProjectName | back to summary |
---|---|
private String currentProjectName Name of the current project |
currentTarget | back to summary |
---|---|
private Target currentTarget Current target (no need for a stack as the processing model allows only one level of target) |
currentTargets | back to summary |
---|---|
private Map<String, Target> currentTargets Keeps track of targets in files |
ignoreProjectTag | back to summary |
---|---|
private boolean ignoreProjectTag Indicates whether the project tag attributes are to be ignored when processing a particular build file. |
implicitTarget | back to summary |
---|---|
private Target implicitTarget Target that all other targets will depend upon implicitly. This holds all tasks and data type definitions that have been placed outside of targets. |
locator | back to summary |
---|---|
private Locator locator Locator for the configuration file parser. Used for giving locations of errors etc. |
prefixMapping | back to summary |
---|---|
private Map<String, List<String>> prefixMapping Keeps track of prefix -> uri mapping during parsing |
project | back to summary |
---|---|
private Project project The project to configure. |
targetVector | back to summary |
---|---|
private Vector<Target> targetVector Vector with all the targets, in the order they are defined. Project maintains a Hashtable, which is not ordered. This will allow description to know the original order. |
wStack | back to summary |
---|---|
private Vector<RuntimeConfigurable> wStack The stack of RuntimeConfigurable2 wrapping the objects. |
AntXMLContext | back to summary |
---|---|
public AntXMLContext(Project project) constructor
|
addTarget | back to summary |
---|---|
public void addTarget(Target target) add a new target
|
configureId | back to summary |
---|---|
public void configureId(Object element, Attributes attr) Scans an attribute list for the This method was moved out of the configure method to allow it to be executed at parse time.
|
currentWrapper | back to summary |
---|---|
public RuntimeConfigurable currentWrapper() get the current runtime configurable wrapper can return null
|
endPrefixMapping | back to summary |
---|---|
public void endPrefixMapping(String prefix) End of prefix to uri mapping.
|
getBuildFile | back to summary |
---|---|
public File getBuildFile() find out the build file
|
getBuildFileParent | back to summary |
---|---|
public File getBuildFileParent() find out the parent build file of this build file
|
getBuildFileParentURL | back to summary |
---|---|
public URL getBuildFileParentURL() find out the parent build file of this build file
|
getBuildFileURL | back to summary |
---|---|
public URL getBuildFileURL() find out the build file
|
getCurrentProjectName | back to summary |
---|---|
public String getCurrentProjectName() find out the current project name
|
getCurrentTarget | back to summary |
---|---|
public Target getCurrentTarget() get the current target
|
getCurrentTargets | back to summary |
---|---|
public Map Get the targets in the current source file. |
getImplicitTarget | back to summary |
---|---|
public Target getImplicitTarget() get the implicit target
|
getLocator | back to summary |
---|---|
public Locator getLocator() access the locator
|
getPrefixMapping | back to summary |
---|---|
public String getPrefixMapping(String prefix) prefix to namespace uri mapping |
getProject | back to summary |
---|---|
public Project getProject() find out the project to which this antxml context belongs
|
getTargets | back to summary |
---|---|
public Vector access the vector of targets |
getWrapperStack | back to summary |
---|---|
public Vector access the stack of wrappers
|
isIgnoringProjectTag | back to summary |
---|---|
public boolean isIgnoringProjectTag() tells whether the project tag is being ignored
|
parentWrapper | back to summary |
---|---|
public RuntimeConfigurable parentWrapper() get the runtime configurable wrapper of the parent project can return null
|
popWrapper | back to summary |
---|---|
public void popWrapper() remove a runtime configurable wrapper from the stack |
pushWrapper | back to summary |
---|---|
public void pushWrapper(RuntimeConfigurable wrapper) add a runtime configurable wrapper to the internal stack
|
setBuildFile | back to summary |
---|---|
public void setBuildFile(File buildFile) sets the build file to which the XML context belongs
|
setBuildFile | back to summary |
---|---|
public void setBuildFile(URL buildFile) throws MalformedURLException sets the build file to which the XML context belongs
|
setCurrentProjectName | back to summary |
---|---|
public void setCurrentProjectName(String name) set the name of the current project
|
setCurrentTarget | back to summary |
---|---|
public void setCurrentTarget(Target target) sets the current target
|
setCurrentTargets | back to summary |
---|---|
public void setCurrentTargets(Map<String, Target> currentTargets) Set the map of the targets in the current source file. |
setIgnoreProjectTag | back to summary |
---|---|
public void setIgnoreProjectTag(boolean flag) sets the flag to ignore the project tag
|
setImplicitTarget | back to summary |
---|---|
public void setImplicitTarget(Target target) sets the implicit target
|
setLocator | back to summary |
---|---|
public void setLocator(Locator locator) sets the locator
|
startPrefixMapping | back to summary |
---|---|
public void startPrefixMapping(String prefix, String uri) Called during parsing, stores the prefix to uri mapping. |