Uses of Interface
com.mycila.xmltool.XMLTag

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 XMLTag.addAttribute(org.w3c.dom.Attr attr)
          Add given attribute to current element
 XMLTag XMLDoc.addAttribute(org.w3c.dom.Attr attr)
           
 XMLTag XMLTag.addAttribute(java.lang.String name, java.lang.String value)
          Create a new attribute for the current node
 XMLTag XMLDoc.addAttribute(java.lang.String name, java.lang.String value)
           
 XMLTag XMLTag.addCDATA(org.w3c.dom.CDATASection data)
          Add a CDATA note to the current tag
 XMLTag XMLDoc.addCDATA(org.w3c.dom.CDATASection data)
           
 XMLTag XMLTag.addCDATA(java.lang.String data)
          Add a data node under the current node, and jump to the parent node.
 XMLTag XMLDoc.addCDATA(java.lang.String data)
           
 XMLTag XMLTag.addDocument(org.w3c.dom.Document doc)
          Inserts another Document instance under the current tag
 XMLTag XMLDoc.addDocument(org.w3c.dom.Document doc)
           
 XMLTag XMLTag.addDocument(XMLTag tag)
          Inserts another XMLTag instance under the current tag.
 XMLTag XMLDoc.addDocument(XMLTag tag)
           
 XMLTag XMLTag.addNamespace(java.lang.String prefix, java.lang.String namespaceURI)
          Add a namespace to the document
 XMLTag XMLDoc.addNamespace(java.lang.String prefix, java.lang.String namespaceURI)
           
 XMLTag XMLDocBuilder.addRoot(java.lang.String tagName)
          Create a root node for this XML document
 XMLTag XMLTag.addTag(org.w3c.dom.Element tag)
          Inserts a Element instance and its hierarchy under the current tag
 XMLTag XMLDoc.addTag(org.w3c.dom.Element tag)
           
 XMLTag XMLTag.addTag(java.lang.String name)
          Create a tag under the current location and use it as the current node
 XMLTag XMLDoc.addTag(java.lang.String name)
           
 XMLTag XMLTag.addTag(XMLTag tag)
          Inserts another XMLTag tag hierarchy under the current tag.
 XMLTag XMLDoc.addTag(XMLTag tag)
           
 XMLTag XMLTag.addText(java.lang.String text)
          Add a text node under the current node, and jump to the parent node.
 XMLTag XMLDoc.addText(java.lang.String text)
           
 XMLTag XMLTag.addText(org.w3c.dom.Text text)
          Add a text note to the current tag
 XMLTag XMLDoc.addText(org.w3c.dom.Text text)
           
 XMLTag XMLTag.delete()
          Delete current tag and its childs.
 XMLTag XMLDoc.delete()
           
 XMLTag XMLTag.deleteAttribute(java.lang.String name)
          Delete an attribute of the current node.
 XMLTag XMLDoc.deleteAttribute(java.lang.String name)
           
 XMLTag XMLTag.deleteAttributeIfExists(java.lang.String name)
          Delete an attribute of the current node, if it exists
 XMLTag XMLDoc.deleteAttributeIfExists(java.lang.String name)
           
 XMLTag XMLTag.deleteAttributes()
          Delete all existing attributes of current node
 XMLTag XMLDoc.deleteAttributes()
           
 XMLTag XMLTag.deleteChilds()
          Delete all existing elements of this node
 XMLTag XMLDoc.deleteChilds()
           
 XMLTag XMLTag.deletePrefixes()
          Remove any prefix and namespaces contained in the tag name, childs and attributes, thus changing namespace and tag name.
 XMLTag XMLDoc.deletePrefixes()
           
 XMLTag XMLTag.duplicate()
           
 XMLTag XMLDoc.duplicate()
           
 XMLTag XMLTag.forEach(CallBack callBack, java.lang.String relativeXpath, java.lang.Object... arguments)
          Execute an action for each selected tags from the current node.
 XMLTag XMLDoc.forEach(CallBack callBack, java.lang.String relativeXpath, java.lang.Object... arguments)
           
 XMLTag XMLTag.forEach(java.lang.String xpath, CallBack callBack)
           
 XMLTag XMLDoc.forEach(java.lang.String xpath, CallBack callBack)
           
 XMLTag XMLTag.forEachChild(CallBack callBack)
          Execute an action for each child in the current node.
 XMLTag XMLDoc.forEachChild(CallBack callBack)
           
static XMLTag XMLDoc.from(java.io.File file, boolean ignoreNamespaces)
           
static XMLTag XMLDoc.from(org.xml.sax.InputSource source, boolean ignoreNamespaces)
           
static XMLTag XMLDoc.from(java.io.InputStream is, boolean ignoreNamespaces)
           
static XMLTag XMLDoc.from(org.w3c.dom.Node node, boolean ignoreNamespaces)
           
static XMLTag XMLDoc.from(java.io.Reader reader, boolean ignoreNamespaces)
           
static XMLTag XMLDoc.from(javax.xml.transform.Source source, boolean ignoreNamespaces)
           
static XMLTag XMLDoc.from(java.lang.String xmlData, boolean ignoreNamespaces)
           
static XMLTag XMLDoc.from(java.net.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 XMLTag.getInnerDocument()
           
 XMLTag XMLDoc.getInnerDocument()
           
 XMLTag XMLTag.gotoChild()
          Go to the only child element of the curent node.
 XMLTag XMLDoc.gotoChild()
           
 XMLTag XMLTag.gotoChild(int i)
          Go to the Nth child of the curent node.
 XMLTag XMLDoc.gotoChild(int i)
           
 XMLTag XMLTag.gotoChild(java.lang.String nodeName)
          Go to the child found with given node name
 XMLTag XMLDoc.gotoChild(java.lang.String nodeName)
           
 XMLTag XMLTag.gotoFirstChild()
          Go to the first child element of the curent node.
 XMLTag XMLDoc.gotoFirstChild()
           
 XMLTag XMLTag.gotoFirstChild(java.lang.String name)
          Go to the first child occurance found having given name
 XMLTag XMLDoc.gotoFirstChild(java.lang.String name)
           
 XMLTag XMLTag.gotoLastChild()
          Go to the lastest child element of the curent node.
 XMLTag XMLDoc.gotoLastChild()
           
 XMLTag XMLTag.gotoLastChild(java.lang.String name)
          Go to the last child occurance found having given name
 XMLTag XMLDoc.gotoLastChild(java.lang.String name)
           
 XMLTag XMLTag.gotoParent()
          Go to parent tag.
 XMLTag XMLDoc.gotoParent()
           
 XMLTag XMLTag.gotoRoot()
          Go to document root tag
 XMLTag XMLDoc.gotoRoot()
           
 XMLTag XMLTag.gotoTag(java.lang.String relativeXpath, java.lang.Object... arguments)
          Go to a specific node
 XMLTag XMLDoc.gotoTag(java.lang.String relativeXpath, java.lang.Object... arguments)
           
 XMLTag XMLTag.renameTo(java.lang.String newTagName)
          Replace current element name by another name
 XMLTag XMLDoc.renameTo(java.lang.String newNodeName)
           
 XMLTag XMLTag.setAttribute(java.lang.String name, java.lang.String value)
          Sets the new value on an existign attribute, and remains on the current tag.
 XMLTag XMLDoc.setAttribute(java.lang.String name, java.lang.String value)
           
 XMLTag XMLTag.setAttribute(java.lang.String name, java.lang.String value, java.lang.String relativeXpath, java.lang.Object... arguments)
          Sets the new value on a targetted node's attribute, and remains on the current tag.
 XMLTag XMLDoc.setAttribute(java.lang.String name, java.lang.String value, java.lang.String relativeXpath, java.lang.Object... arguments)
           
 XMLTag XMLTag.setAttributeIfExist(java.lang.String name, java.lang.String value)
          Sets the new value on an attribute, and remains on the current tag.
 XMLTag XMLDoc.setAttributeIfExist(java.lang.String name, java.lang.String value)
           
 XMLTag XMLTag.setAttributeIfExist(java.lang.String name, java.lang.String value, java.lang.String relativeXpath, java.lang.Object... arguments)
          Sets the new value on a targetted node's attribute, and remains on the current tag.
 XMLTag XMLDoc.setAttributeIfExist(java.lang.String name, java.lang.String value, java.lang.String relativeXpath, java.lang.Object... arguments)
           
 XMLTag XMLTag.setCDATA(java.lang.String data)
          Set the cdata in the current node.
 XMLTag XMLDoc.setCDATA(java.lang.String data)
           
 XMLTag XMLTag.setCDATA(java.lang.String data, java.lang.String relativeXpath, java.lang.Object... arguments)
          Set the cdata in the targetted node.
 XMLTag XMLDoc.setCDATA(java.lang.String data, java.lang.String relativeXpath, java.lang.Object... arguments)
           
 XMLTag XMLTag.setCDATAIfExist(java.lang.String data, java.lang.String relativeXpath, java.lang.Object... arguments)
          Set the cdata in the targetted node.
 XMLTag XMLDoc.setCDATAIfExist(java.lang.String data, java.lang.String relativeXpath, java.lang.Object... arguments)
           
 XMLTag XMLTag.setText(java.lang.String text)
          Set the text in the current node.
 XMLTag XMLDoc.setText(java.lang.String text)
           
 XMLTag XMLTag.setText(java.lang.String text, java.lang.String relativeXpath, java.lang.Object... arguments)
          Set the text in the targetted node.
 XMLTag XMLDoc.setText(java.lang.String text, java.lang.String relativeXpath, java.lang.Object... arguments)
           
 XMLTag XMLTag.setTextIfExist(java.lang.String text, java.lang.String relativeXpath, java.lang.Object... arguments)
          Set the text in the targetted node.
 XMLTag XMLDoc.setTextIfExist(java.lang.String text, java.lang.String relativeXpath, java.lang.Object... arguments)
           
 XMLTag XMLTag.toResult(javax.xml.transform.Result out)
          Converts this document to the result provided
 XMLTag XMLDoc.toResult(javax.xml.transform.Result out)
           
 XMLTag XMLTag.toResult(javax.xml.transform.Result out, java.lang.String encoding)
          Converts this document to the result provided, overriding default encoding of xml document
 XMLTag XMLDoc.toResult(javax.xml.transform.Result out, java.lang.String encoding)
           
 XMLTag XMLTag.toStream(java.io.OutputStream out)
          Write this document to a stream
 XMLTag XMLDoc.toStream(java.io.OutputStream out)
           
 XMLTag XMLTag.toStream(java.io.OutputStream out, java.lang.String encoding)
          Write this document to a stream
 XMLTag XMLDoc.toStream(java.io.OutputStream out, java.lang.String encoding)
           
 XMLTag XMLTag.toStream(java.io.Writer out)
          Write this document to a stream
 XMLTag XMLDoc.toStream(java.io.Writer out)
           
 XMLTag XMLTag.toStream(java.io.Writer out, java.lang.String encoding)
          Write this document to a stream
 XMLTag XMLDoc.toStream(java.io.Writer out, java.lang.String encoding)
           
 

Methods in com.mycila.xmltool that return types with arguments of type XMLTag
 java.lang.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");
 java.lang.Iterable<XMLTag> XMLDoc.getChilds()
           
 java.lang.Iterable<XMLTag> XMLTag.getChilds(java.lang.String relativeXpath, java.lang.Object... arguments)
          Create an iterable object over selected elements.
 java.lang.Iterable<XMLTag> XMLDoc.getChilds(java.lang.String relativeXpath, java.lang.Object... arguments)
           
 

Methods in com.mycila.xmltool with parameters of type XMLTag
 XMLTag XMLTag.addDocument(XMLTag tag)
          Inserts another XMLTag instance under the current tag.
 XMLTag XMLDoc.addDocument(XMLTag tag)
           
 XMLTag XMLTag.addTag(XMLTag tag)
          Inserts another XMLTag tag hierarchy under the current tag.
 XMLTag XMLDoc.addTag(XMLTag 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.
 



Copyright © 2008-2011 Mathieu Carbou. All Rights Reserved.