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 |
---|---|
public class | XMLFragment.Child
An object to handle (recursively) nested elements. |
Modifier and Type | Field and Description |
---|---|
private Document | |
private DocumentFragment |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | |
private void | |
public Object | Returns: an object that the element is applied tothe uri of the nested element uri, String the localname of the nested element name, String the qualified name of the nested element qName)Implements org. |
public DocumentFragment |
doc | back to summary |
---|---|
private Document doc |
fragment | back to summary |
---|---|
private DocumentFragment fragment |
XMLFragment | back to summary |
---|---|
public XMLFragment() Constructor for XMLFragment object. |
addText | back to summary |
---|---|
public void addText(String s) Add nested text, expanding properties as we go
|
addText | back to summary |
---|---|
private void addText(Node n, String s) Add text to a node. |
createDynamicElement | back to summary |
---|---|
public Object createDynamicElement(String uri, String name, String qName) Implements org. Creates a nested element. |
getFragment | back to summary |
---|---|
public DocumentFragment getFragment()
|
Modifier and Type | Method and Description |
---|---|
public void | |
public Object | Returns: an object that the element is applied tothe uri of the nested element uri, String the localname of the nested element name, String the qualified name of the nested element qName)Implements org. |
public void | setDynamicAttribute(String
the uri of the attribute uri, String the localname of the attribute name, String the qualified name of the attribute qName, String the value of the attribute value)Implements org. |
e | back to summary |
---|---|
private Element e |
Child | back to summary |
---|---|
pack-priv Child(Element e) |
addText | back to summary |
---|---|
public void addText(String s) Add nested text.
|
createDynamicElement | back to summary |
---|---|
public Object createDynamicElement(String uri, String name, String qName) Implements org. Creates a nested element. |
setDynamicAttribute | back to summary |
---|---|
public void setDynamicAttribute(String uri, String name, String qName, String value) Implements org. Sets the attribute |