Package org.jitsi.impl.configuration.xml
Class XMLConfUtils
- java.lang.Object
-
- org.jitsi.util.xml.XMLUtils
-
- org.jitsi.impl.configuration.xml.XMLConfUtils
-
public class XMLConfUtils extends XMLUtils
Common XML Tasks.- Author:
- Damian Minkov, Emil Ivov
-
-
Constructor Summary
Constructors Constructor Description XMLConfUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ElementcreateLastPathComponent(Document doc, String[] path, int pathLength)Creates (only if necessary) and returns the element which is at the end of the specified path.static ElementgetChildElementByChain(Element parent, String[] chain)Returns the element which is at the end of the specified String chain.-
Methods inherited from class org.jitsi.util.xml.XMLUtils
createDocument, createDocument, createDocument, createXml, disableExternalEntities, findChild, findChildren, getAttribute, getCData, getCDataNode, getChildByType, getNamespaceUri, getText, getTextNode, hasChildElements, indentedWriteXML, isStandartXmlNamespace, locateElement, locateElements, newDocumentBuilderFactory, newDocumentBuilderFactory, printChildElements, setCData, setText, writeXML, writeXML, writeXML
-
-
-
-
Method Detail
-
getChildElementByChain
public static Element getChildElementByChain(Element parent, String[] chain)
Returns the element which is at the end of the specified String chain. <great...grandparent>...<grandparent>.<parent>.>child<- 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 indexpathLength - 1must be valid XML (element) namespathLength- the length of the specified path- Returns:
- the component at the end of the newly created path.
-
-