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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal DBElement
buildNodesTree
(String nodePath) final String
childrenFormatedString
(int indent, int step) final DBElement
final DBElement
final String
formatedString
(int indent, int step) final DBElement
final double[]
getEntryDoubleArrValue
(String key, double[] def) final double
getEntryDoubleValue
(String key, double def) final int[]
getEntryIntArrValue
(String key, int[] def) final int
getEntryIntValue
(String key, int def) final String[]
final String[]
getEntryStringArrValue
(String key, String[] def) final String
getEntryStringValue
(String key, String def) final Object
getEntryValue
(String key, Object def) final DBElement
getSubnode
(String name) final DBElement
getSubnodePath
(String nodePath) final String[]
final DBElement
newSubnode
(String name) final void
removeEntry
(String key) final void
removeNode
(String nodePath) final void
Methods 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
-