Package tigase.xml.db
Class DBElement
java.lang.Object
tigase.xml.Element
tigase.xml.db.DBElement
- All Implemented Interfaces:
Cloneable,Comparable<Element>,XMLNodeIfc<Element>
DBElement class extends tigase.xml.Element. It adds some extra functionality useful for
data base operations like searching for some specific nodes, add data entries, remove data, and all other common
operations not directly related to pure XML processing. Pure XML processing is of course
implemented in tigase.xml.Element. The are also some methods which make it easier to save XML
tree from memory to disk file in a form which is easier to read by a human. Created: Tue Oct 26 22:01:47 2004
- Version:
- $Rev$
- Author:
- Artur Hefczyc
-
Nested Class Summary
Nested classes/interfaces inherited from class tigase.xml.Element
Element.Matcher<T>, Element.XMLIdentityHashMap<K,V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal DBElementbuildNodesTree(String nodePath) final StringchildrenFormatedString(int indent, int step) final DBElementfinal DBElementfinal StringformatedString(int indent, int step) final DBElementfinal double[]getEntryDoubleArrValue(String key, double[] def) final doublegetEntryDoubleValue(String key, double def) final int[]getEntryIntArrValue(String key, int[] def) final intgetEntryIntValue(String key, int def) final String[]final String[]getEntryStringArrValue(String key, String[] def) final StringgetEntryStringValue(String key, String def) final ObjectgetEntryValue(String key, Object def) final DBElementgetSubnode(String name) final DBElementgetSubnodePath(String nodePath) final String[]final DBElementnewSubnode(String name) final voidremoveEntry(String key) final voidremoveNode(String nodePath) final voidMethods inherited from class tigase.xml.Element
addAttribute, addAttributes, addCData, addChild, addChildren, cdataToString, childrenToString, childrenToString, childrenToStringPretty, childrenToStringSecure, childrenToStringSecure, clone, compareTo, equals, findChild, findChild, findChild, findChildren, findChildStaticStr, flatMapChildren, forEachChild, getAttribute, getAttribute, getAttribute, getAttributes, getAttributeStaticStr, getAttributeStaticStr, getCData, getCData, getCData, getCDataStaticStr, getChild, getChild, getChildAttribute, getChildAttributeStaticStr, getChildCData, getChildCData, getChildCData, getChildCDataStaticStr, getChildren, getChildren, getChildren, getChildren, getChildrenStaticStr, getChildStaticStr, getChildStaticStr, getName, getXMLNS, getXMLNS, getXMLNS, getXMLNSStaticStr, hashCode, main, map, mapChildren, mapChildren, matches, removeAttribute, removeChild, setAttribute, setAttributes, setAttributes, setAttributes, setAttributeStaticStr, setCData, setChildren, setDefXMLNS, setName, setXMLNS, toString, toString, toStringNoChildren, toStringPretty, toStringSecure, toStringSecure, withAttribute, withElement, withElement, withElement
-
Field Details
-
ENTRY
- See Also:
-
KEY
- See Also:
-
MAP
- See Also:
-
NAME
- See Also:
-
NODE
- See Also:
-
TYPE
- See Also:
-
VALUE
- See Also:
-
removed
public boolean removed
-
-
Constructor Details
-
DBElement
-
DBElement
-
DBElement
public DBElement(String argName, String argCData, StringBuilder[] att_names, StringBuilder[] att_values)
-
-
Method Details
-
formatedString
-
childrenFormatedString
-
getSubnode
-
getSubnodes
-
findNode
-
removeNode
-
getSubnodePath
-
buildNodesTree
-
newSubnode
-
findEntry
-
removeEntry
-
getEntryKeys
-
getEntry
-
setEntry
-
getEntryStringValue
-
getEntryStringArrValue
-
getEntryIntValue
-
getEntryIntArrValue
-
getEntryDoubleValue
-
getEntryDoubleArrValue
-
getEntryValue
-