addTarget
public void addTarget(Target target)
add a new target
configureId
public void configureId(Object element,
Attributes attr)
Scans an attribute list for the
id
attribute and
stores a reference to the target object in the project if an
id is found.
This method was moved out of the configure method to allow
it to be executed at parse time.
element
- the current elementattr
- attributes of the current element
currentWrapper
public RuntimeConfigurable currentWrapper()
get the current runtime configurable wrapper
can return null
- runtime configurable wrapper
endPrefixMapping
public void endPrefixMapping(String prefix)
End of prefix to uri mapping.
prefix
- the namespace prefix
getBuildFile
public File getBuildFile()
find out the build file
- the build file to which the xml context belongs
getBuildFileParent
public File getBuildFileParent()
find out the parent build file of this build file
- the parent build file of this build file
getCurrentProjectName
public String getCurrentProjectName()
find out the current project name
getCurrentTarget
public Target getCurrentTarget()
get the current target
getCurrentTargets
public Map getCurrentTargets()
Get the targets in the current source file.
getImplicitTarget
public Target getImplicitTarget()
get the implicit target
getLocator
public Locator getLocator()
access the locator
getPrefixMapping
public String getPrefixMapping(String prefix)
prefix to namespace uri mapping
prefix
- the prefix to map
- the uri for this prefix, null if not present
getProject
public Project getProject()
find out the project to which this antxml context belongs
getTargets
public Vector getTargets()
access the vector of targets
getWrapperStack
public Vector getWrapperStack()
access the stack of wrappers
isIgnoringProjectTag
public boolean isIgnoringProjectTag()
tells whether the project tag is being ignored
- whether the project tag is being ignored
parentWrapper
public RuntimeConfigurable parentWrapper()
get the runtime configurable wrapper of the parent project
can return null
- runtime configurable wrapper of the parent project
popWrapper
public void popWrapper()
remove a runtime configurable wrapper from the stack
pushWrapper
public void pushWrapper(RuntimeConfigurable wrapper)
add a runtime configurable wrapper to the internal stack
wrapper
- runtime configurable wrapper
setBuildFile
public void setBuildFile(File buildFile)
sets the build file to which the XML context belongs
buildFile
- ant build file
setCurrentProjectName
public void setCurrentProjectName(String name)
set the name of the current project
name
- name of the current project
setCurrentTarget
public void setCurrentTarget(Target target)
sets the current target
setCurrentTargets
public void setCurrentTargets(Map currentTargets)
Set the map of the targets in the current source file.
currentTargets
- a map of targets.
setIgnoreProjectTag
public void setIgnoreProjectTag(boolean flag)
sets the flag to ignore the project tag
flag
- to ignore the project tag
setImplicitTarget
public void setImplicitTarget(Target target)
sets the implicit target
target
- the implicit target
setLocator
public void setLocator(Locator locator)
sets the locator
startPrefixMapping
public void startPrefixMapping(String prefix,
String uri)
Called during parsing, stores the prefix to uri mapping.
prefix
- a namespace prefixuri
- a namespace uri