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.
|
description, location, project
Constructor and Description |
---|
XMLFragment()
Constructor for XMLFragment object.
|
Modifier and Type | Method and Description |
---|---|
void |
addText(java.lang.String s)
Add nested text, expanding properties as we go
|
java.lang.Object |
createDynamicElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName)
Creates a nested element.
|
org.w3c.dom.DocumentFragment |
getFragment() |
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public org.w3c.dom.DocumentFragment getFragment()
public void addText(java.lang.String s)
s
- the text to addpublic java.lang.Object createDynamicElement(java.lang.String uri, java.lang.String name, java.lang.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 element