|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of XMLTag in com.mycila.xmltool |
---|
Classes in com.mycila.xmltool that implement XMLTag | |
---|---|
class |
XMLDoc
|
Methods in com.mycila.xmltool that return XMLTag | |
---|---|
XMLTag |
XMLDoc.addAttribute(Attr attr)
|
XMLTag |
XMLTag.addAttribute(Attr attr)
Add given attribute to current element |
XMLTag |
XMLDoc.addAttribute(String name,
String value)
|
XMLTag |
XMLTag.addAttribute(String name,
String value)
Create a new attribute for the current node |
XMLTag |
XMLDoc.addCDATA(CDATASection data)
|
XMLTag |
XMLTag.addCDATA(CDATASection data)
Add a CDATA note to the current tag |
XMLTag |
XMLDoc.addCDATA(String data)
|
XMLTag |
XMLTag.addCDATA(String data)
Add a data node under the current node, and jump to the parent node. |
XMLTag |
XMLDoc.addDocument(Document doc)
|
XMLTag |
XMLTag.addDocument(Document doc)
Inserts another Document instance under the current tag |
XMLTag |
XMLDoc.addDocument(XMLTag tag)
|
XMLTag |
XMLTag.addDocument(XMLTag tag)
Inserts another XMLTag instance under the current tag. |
XMLTag |
XMLDoc.addNamespace(String prefix,
String namespaceURI)
|
XMLTag |
XMLTag.addNamespace(String prefix,
String namespaceURI)
Add a namespace to the document |
XMLTag |
XMLDocBuilder.addRoot(String tagName)
Create a root node for this XML document |
XMLTag |
XMLDoc.addTag(Element tag)
|
XMLTag |
XMLTag.addTag(Element tag)
Inserts a Element instance and its hierarchy under the current tag |
XMLTag |
XMLDoc.addTag(String name)
|
XMLTag |
XMLTag.addTag(String name)
Create a tag under the current location and use it as the current node |
XMLTag |
XMLDoc.addTag(XMLTag tag)
|
XMLTag |
XMLTag.addTag(XMLTag tag)
Inserts another XMLTag tag hierarchy under the current tag. |
XMLTag |
XMLDoc.addText(String text)
|
XMLTag |
XMLTag.addText(String text)
Add a text node under the current node, and jump to the parent node. |
XMLTag |
XMLDoc.addText(Text text)
|
XMLTag |
XMLTag.addText(Text text)
Add a text note to the current tag |
XMLTag |
XMLDoc.delete()
|
XMLTag |
XMLTag.delete()
Delete current tag and its childs. |
XMLTag |
XMLDoc.deleteAttribute(String name)
|
XMLTag |
XMLTag.deleteAttribute(String name)
Delete an attribute of the current node. |
XMLTag |
XMLDoc.deleteAttributeIfExists(String name)
|
XMLTag |
XMLTag.deleteAttributeIfExists(String name)
Delete an attribute of the current node, if it exists |
XMLTag |
XMLDoc.deleteAttributes()
|
XMLTag |
XMLTag.deleteAttributes()
Delete all existing attributes of current node |
XMLTag |
XMLDoc.deleteChilds()
|
XMLTag |
XMLTag.deleteChilds()
Delete all existing elements of this node |
XMLTag |
XMLDoc.deletePrefixes()
|
XMLTag |
XMLTag.deletePrefixes()
Remove any prefix and namespaces contained in the tag name, childs and attributes, thus changing namespace and tag name. |
XMLTag |
XMLDoc.duplicate()
|
XMLTag |
XMLTag.duplicate()
|
XMLTag |
XMLDoc.forEach(CallBack callBack,
String relativeXpath,
Object... arguments)
|
XMLTag |
XMLTag.forEach(CallBack callBack,
String relativeXpath,
Object... arguments)
Execute an action for each selected tags from the current node. |
XMLTag |
XMLDoc.forEach(String xpath,
CallBack callBack)
|
XMLTag |
XMLTag.forEach(String xpath,
CallBack callBack)
|
XMLTag |
XMLDoc.forEachChild(CallBack callBack)
|
XMLTag |
XMLTag.forEachChild(CallBack callBack)
Execute an action for each child in the current node. |
static XMLTag |
XMLDoc.from(File file,
boolean ignoreNamespaces)
|
static XMLTag |
XMLDoc.from(InputSource source,
boolean ignoreNamespaces)
|
static XMLTag |
XMLDoc.from(InputStream is,
boolean ignoreNamespaces)
|
static XMLTag |
XMLDoc.from(Node node,
boolean ignoreNamespaces)
|
static XMLTag |
XMLDoc.from(Reader reader,
boolean ignoreNamespaces)
|
static XMLTag |
XMLDoc.from(Source source,
boolean ignoreNamespaces)
|
static XMLTag |
XMLDoc.from(String xmlData,
boolean ignoreNamespaces)
|
static XMLTag |
XMLDoc.from(URL xmlLocation,
boolean ignoreNamespaces)
|
static XMLTag |
XMLDoc.from(XMLTag tag,
boolean ignoreNamespaces)
|
static XMLTag |
XMLDoc.fromCurrentTag(XMLTag tag,
boolean ignoreNamespaces)
Create another XMLTag instance from the hierarchy under the current tag. |
XMLTag |
XMLDoc.getInnerDocument()
|
XMLTag |
XMLTag.getInnerDocument()
|
XMLTag |
XMLDoc.gotoChild()
|
XMLTag |
XMLTag.gotoChild()
Go to the only child element of the curent node. |
XMLTag |
XMLDoc.gotoChild(int i)
|
XMLTag |
XMLTag.gotoChild(int i)
Go to the Nth child of the curent node. |
XMLTag |
XMLDoc.gotoChild(String nodeName)
|
XMLTag |
XMLTag.gotoChild(String nodeName)
Go to the child found with given node name |
XMLTag |
XMLDoc.gotoFirstChild()
|
XMLTag |
XMLTag.gotoFirstChild()
Go to the first child element of the curent node. |
XMLTag |
XMLDoc.gotoFirstChild(String name)
|
XMLTag |
XMLTag.gotoFirstChild(String name)
Go to the first child occurance found having given name |
XMLTag |
XMLDoc.gotoLastChild()
|
XMLTag |
XMLTag.gotoLastChild()
Go to the lastest child element of the curent node. |
XMLTag |
XMLDoc.gotoLastChild(String name)
|
XMLTag |
XMLTag.gotoLastChild(String name)
Go to the last child occurance found having given name |
XMLTag |
XMLDoc.gotoParent()
|
XMLTag |
XMLTag.gotoParent()
Go to parent tag. |
XMLTag |
XMLDoc.gotoRoot()
|
XMLTag |
XMLTag.gotoRoot()
Go to document root tag |
XMLTag |
XMLDoc.gotoTag(String relativeXpath,
Object... arguments)
|
XMLTag |
XMLTag.gotoTag(String relativeXpath,
Object... arguments)
Go to a specific node |
XMLTag |
XMLDoc.renameTo(String newNodeName)
|
XMLTag |
XMLTag.renameTo(String newTagName)
Replace current element name by another name |
XMLTag |
XMLDoc.setAttribute(String name,
String value)
|
XMLTag |
XMLTag.setAttribute(String name,
String value)
Sets the new value on an existign attribute, and remains on the current tag. |
XMLTag |
XMLDoc.setAttribute(String name,
String value,
String relativeXpath,
Object... arguments)
|
XMLTag |
XMLTag.setAttribute(String name,
String value,
String relativeXpath,
Object... arguments)
Sets the new value on a targetted node's attribute, and remains on the current tag. |
XMLTag |
XMLDoc.setAttributeIfExist(String name,
String value)
|
XMLTag |
XMLTag.setAttributeIfExist(String name,
String value)
Sets the new value on an attribute, and remains on the current tag. |
XMLTag |
XMLDoc.setAttributeIfExist(String name,
String value,
String relativeXpath,
Object... arguments)
|
XMLTag |
XMLTag.setAttributeIfExist(String name,
String value,
String relativeXpath,
Object... arguments)
Sets the new value on a targetted node's attribute, and remains on the current tag. |
XMLTag |
XMLDoc.setCDATA(String data)
|
XMLTag |
XMLTag.setCDATA(String data)
Set the cdata in the current node. |
XMLTag |
XMLDoc.setCDATA(String data,
String relativeXpath,
Object... arguments)
|
XMLTag |
XMLTag.setCDATA(String data,
String relativeXpath,
Object... arguments)
Set the cdata in the targetted node. |
XMLTag |
XMLDoc.setCDATAIfExist(String data,
String relativeXpath,
Object... arguments)
|
XMLTag |
XMLTag.setCDATAIfExist(String data,
String relativeXpath,
Object... arguments)
Set the cdata in the targetted node. |
XMLTag |
XMLDoc.setText(String text)
|
XMLTag |
XMLTag.setText(String text)
Set the text in the current node. |
XMLTag |
XMLDoc.setText(String text,
String relativeXpath,
Object... arguments)
|
XMLTag |
XMLTag.setText(String text,
String relativeXpath,
Object... arguments)
Set the text in the targetted node. |
XMLTag |
XMLDoc.setTextIfExist(String text,
String relativeXpath,
Object... arguments)
|
XMLTag |
XMLTag.setTextIfExist(String text,
String relativeXpath,
Object... arguments)
Set the text in the targetted node. |
XMLTag |
XMLDoc.toResult(Result out)
|
XMLTag |
XMLTag.toResult(Result out)
Converts this document to the result provided |
XMLTag |
XMLDoc.toResult(Result out,
String encoding)
|
XMLTag |
XMLTag.toResult(Result out,
String encoding)
Converts this document to the result provided, overriding default encoding of xml document |
XMLTag |
XMLDoc.toStream(OutputStream out)
|
XMLTag |
XMLTag.toStream(OutputStream out)
Write this document to a stream |
XMLTag |
XMLDoc.toStream(OutputStream out,
String encoding)
|
XMLTag |
XMLTag.toStream(OutputStream out,
String encoding)
Write this document to a stream |
XMLTag |
XMLDoc.toStream(Writer out)
|
XMLTag |
XMLTag.toStream(Writer out)
Write this document to a stream |
XMLTag |
XMLDoc.toStream(Writer out,
String encoding)
|
XMLTag |
XMLTag.toStream(Writer out,
String encoding)
Write this document to a stream |
Methods in com.mycila.xmltool that return types with arguments of type XMLTag | |
---|---|
Iterable<XMLTag> |
XMLDoc.getChilds()
|
Iterable<XMLTag> |
XMLTag.getChilds()
XMLTag tag = XMLDoc.newDocument(true)
.addRoot("root").addTag("a")
.gotoParent().addTag("b")
.gotoParent().addTag("c")
.gotoRoot();
assertEquals(tag.getCurrentTagName(), "root");
for (XMLTag xmlTag : tag.getChilds()) {
if(xmlTag.getCurrentTagName().equals("b")) {
break;
}
}
assertEquals(tag.getCurrentTagName(), "b"); |
Iterable<XMLTag> |
XMLDoc.getChilds(String relativeXpath,
Object... arguments)
|
Iterable<XMLTag> |
XMLTag.getChilds(String relativeXpath,
Object... arguments)
Create an iterable object over selected elements. |
Methods in com.mycila.xmltool with parameters of type XMLTag | |
---|---|
XMLTag |
XMLDoc.addDocument(XMLTag tag)
|
XMLTag |
XMLTag.addDocument(XMLTag tag)
Inserts another XMLTag instance under the current tag. |
XMLTag |
XMLDoc.addTag(XMLTag tag)
|
XMLTag |
XMLTag.addTag(XMLTag tag)
Inserts another XMLTag tag hierarchy under the current tag. |
void |
CallBack.execute(XMLTag doc)
|
static XMLTag |
XMLDoc.from(XMLTag tag,
boolean ignoreNamespaces)
|
static XMLTag |
XMLDoc.fromCurrentTag(XMLTag tag,
boolean ignoreNamespaces)
Create another XMLTag instance from the hierarchy under the current tag. |
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |