org.apache.tools.ant.util

Class XMLFragment.Child

public class XMLFragment.Child extends Object implements DynamicConfiguratorNS

An object to handle (recursively) nested elements.
Method Summary
voidaddText(String s)
Add nested text.
ObjectcreateDynamicElement(String uri, String name, String qName)
Creates a nested element.
voidsetDynamicAttribute(String uri, String name, String qName, String value)
Sets the attribute

Method Detail

addText

public void addText(String s)
Add nested text.

Parameters: s the text to add

createDynamicElement

public Object createDynamicElement(String uri, String name, String qName)
Creates a nested element.

Parameters: uri the uri of the nested element name the localname of the nested element qName the qualified name of the nested element

Returns: an object that the element is applied to

setDynamicAttribute

public void setDynamicAttribute(String uri, String name, String qName, String value)
Sets the attribute

Parameters: uri the uri of the attribute name the localname of the attribute qName the qualified name of the attribute value the value of the attribute