org.apache.tools.ant
Class RuntimeConfigurable
java.lang.Object
|
+--org.apache.tools.ant.RuntimeConfigurable
- public class RuntimeConfigurable
- extends java.lang.Object
Wrapper class that holds the attributes of a Task (or elements
nested below that level) and takes care of configuring that element
at runtime.
Method Summary |
void |
addChild(RuntimeConfigurable child)
Adds child elements to the wrapped element. |
void |
addText(char[] buf,
int start,
int end)
Add characters from #PCDATA areas to the wrapped element. |
void |
addText(java.lang.String data)
Add characters from #PCDATA areas to the wrapped element. |
org.xml.sax.AttributeList |
getAttributes()
Returns the AttributeList of the wrapped element. |
java.lang.String |
getElementTag()
|
void |
maybeConfigure(Project p)
Configure the wrapped element and all children. |
void |
setAttributes(org.xml.sax.AttributeList attributes)
Set's the attributes for the wrapped element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuntimeConfigurable
public RuntimeConfigurable(java.lang.Object proxy,
java.lang.String elementTag)
- Parameters:
proxy
- The element to wrap.
setAttributes
public void setAttributes(org.xml.sax.AttributeList attributes)
- Set's the attributes for the wrapped element.
getAttributes
public org.xml.sax.AttributeList getAttributes()
- Returns the AttributeList of the wrapped element.
addChild
public void addChild(RuntimeConfigurable child)
- Adds child elements to the wrapped element.
addText
public void addText(java.lang.String data)
- Add characters from #PCDATA areas to the wrapped element.
addText
public void addText(char[] buf,
int start,
int end)
- Add characters from #PCDATA areas to the wrapped element.
getElementTag
public java.lang.String getElementTag()
maybeConfigure
public void maybeConfigure(Project p)
throws BuildException
- Configure the wrapped element and all children.
Includes only those classes commonly used by task writers. The Ant 1.4.1 distribution includes complete Javadoc for all classes included in Ant, though in most cases these are not intended as APIs.