org.apache.tools.ant.utilClass 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 DynamicConfiguratorNSAn object to handle (recursively) nested elements.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
addText(java.lang.String s)
Add nested text.java.lang.Object
createDynamicElement(java.lang.String uri, java.lang.String name, java.lang.String qName)
Creates a nested element.void
setDynamicAttribute(java.lang.String uri, java.lang.String name, java.lang.String qName, java.lang.String value)
Sets the attribute
Method Detail
addText
public void addText(java.lang.String s)Add nested text.
- Parameters:
s
- the text to add
setDynamicAttribute
public void setDynamicAttribute(java.lang.String uri, java.lang.String name, java.lang.String qName, java.lang.String value)Sets the attribute
- Specified by:
setDynamicAttribute
in interfaceDynamicAttributeNS
- Parameters:
uri
- the uri of the attributename
- the localname of the attributeqName
- the qualified name of the attributevalue
- the value of the attribute
createDynamicElement
public java.lang.Object createDynamicElement(java.lang.String uri, java.lang.String name, java.lang.String qName)Creates a nested element.
- Specified by:
createDynamicElement
in interfaceDynamicElementNS
- Parameters:
uri
- the uri of the nested elementname
- the localname of the nested elementqName
- the qualified name of the nested element- Returns:
- an object that the element is applied to