java.lang.Cloneable, DynamicElementNSEchoXMLpublic 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 | Description |
|---|---|---|
class |
XMLFragment.Child |
An object to handle (recursively) nested elements.
|
description, location, project| Constructor | Description |
|---|---|
XMLFragment() |
Constructor for XMLFragment object.
|
| Modifier and Type | Method | 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() |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectpublic 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 DynamicElementNSuri - the uri of the nested elementname - the localname of the nested elementqName - the qualified name of the nested element