Package org.apache.tools.ant.util
Class XMLFragment.Child
- java.lang.Object
- 
- org.apache.tools.ant.util.XMLFragment.Child
 
- 
- All Implemented Interfaces:
- DynamicAttributeNS,- DynamicConfiguratorNS,- DynamicElementNS
 - Enclosing class:
- XMLFragment
 
 public class XMLFragment.Child extends java.lang.Object implements DynamicConfiguratorNS An object to handle (recursively) nested elements.
- 
- 
Method SummaryModifier and Type Method Description voidaddText(java.lang.String s)Add nested text.java.lang.ObjectcreateDynamicElement(java.lang.String uri, java.lang.String name, java.lang.String qName)Creates a nested element.voidsetDynamicAttribute(java.lang.String uri, java.lang.String name, java.lang.String qName, java.lang.String value)Sets the attribute
 
- 
- 
- 
Method Detail- 
addTextpublic void addText(java.lang.String s) Add nested text.- Parameters:
- s- the text to add
 
 - 
setDynamicAttributepublic void setDynamicAttribute(java.lang.String uri, java.lang.String name, java.lang.String qName, java.lang.String value)Sets the attribute- Specified by:
- setDynamicAttributein interface- DynamicAttributeNS
- 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
 
 - 
createDynamicElementpublic java.lang.Object createDynamicElement(java.lang.String uri, java.lang.String name, java.lang.String qName)Creates a nested element.- Specified by:
- createDynamicElementin interface- DynamicElementNS
- 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
 
 
- 
 
-