net.java.sip.communicator.impl.configuration.xml
Class XMLConfUtils
java.lang.Object
net.java.sip.communicator.util.xml.XMLUtils
net.java.sip.communicator.impl.configuration.xml.XMLConfUtils
public class XMLConfUtils
- extends XMLUtils
Common XML Tasks.
- Author:
- Damian Minkov, Emil Ivov
| Methods inherited from class net.java.sip.communicator.util.xml.XMLUtils |
createDocument, createDocument, createXml, findChild, findChildren, getAttribute, getCData, getCDataNode, getChildByType, getNamespaceUri, getText, getTextNode, hasChildElements, indentedWriteXML, isStandartXmlNamespace, locateElement, locateElements, printChildElements, setCData, setText, writeXML, writeXML, writeXML |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLConfUtils
public XMLConfUtils()
getChildElementByChain
public static Element getChildElementByChain(Element parent,
String[] chain)
- Returns the element which is at the end of the specified
String chain. .....
- Parameters:
parent - the xml element that is the parent of the root of this
chain.chain - a String array containing the names of all the child's
parent nodes.
- Returns:
- the node represented by the specified chain
createLastPathComponent
public static Element createLastPathComponent(Document doc,
String[] path,
int pathLength)
- Creates (only if necessary) and returns the element which is at the end
of the specified path.
- Parameters:
doc - the target document where the specified path should be createdpath - an array of String elements which represents the
path to be created. Each element of path up to and including the
index pathLength - 1 must be valid XML (element) namespathLength - the length of the specified path
- Returns:
- the component at the end of the newly created path.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.