public class XMLFragment extends ProjectComponent implements DynamicElementNS
This is useful for tasks that want to deal with the "real" XML from the build file instead of objects.
Code heavily influenced by code written by Dominique Devienne.
Modifier and Type | Class and Description |
---|---|
class |
XMLFragment.Child
An object to handle (recursively) nested elements.
|
Constructor and Description |
---|
XMLFragment()
Constructor for XMLFragment object.
|
Modifier and Type | Method and Description |
---|---|
void |
addText(String s)
Add nested text, expanding properties as we go
|
Object |
createDynamicElement(String uri,
String name,
String qName)
Creates a nested element.
|
org.w3c.dom.DocumentFragment |
getFragment() |
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public void addText(String s)
s
- the text to addpublic Object createDynamicElement(String uri, String name, String qName)
createDynamicElement
in interface DynamicElementNS
uri
- the uri of the nested elementname
- the localname of the nested elementqName
- the qualified name of the nested elementpublic org.w3c.dom.DocumentFragment getFragment()