Package tigase.xml.db
Class DBElement
- java.lang.Object
-
- tigase.xml.Element
-
- tigase.xml.db.DBElement
-
- All Implemented Interfaces:
Cloneable,Comparable<Element>,XMLNodeIfc<Element>
public class DBElement extends Element
DBElementclass extendstigase.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 intigase.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>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DBElementbuildNodesTree(String nodePath)StringchildrenFormatedString(int indent, int step)DBElementfindEntry(String key)DBElementfindNode(String nodePath)StringformatedString(int indent, int step)DBElementgetEntry(String key)double[]getEntryDoubleArrValue(String key, double[] def)doublegetEntryDoubleValue(String key, double def)int[]getEntryIntArrValue(String key, int[] def)intgetEntryIntValue(String key, int def)String[]getEntryKeys()String[]getEntryStringArrValue(String key, String[] def)StringgetEntryStringValue(String key, String def)ObjectgetEntryValue(String key, Object def)DBElementgetSubnode(String name)DBElementgetSubnodePath(String nodePath)String[]getSubnodes()DBElementnewSubnode(String name)voidremoveEntry(String key)voidremoveNode(String nodePath)voidsetEntry(String key, Object value)-
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 Detail
-
ENTRY
public static final String ENTRY
- See Also:
- Constant Field Values
-
KEY
public static final String KEY
- See Also:
- Constant Field Values
-
MAP
public static final String MAP
- See Also:
- Constant Field Values
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
NODE
public static final String NODE
- See Also:
- Constant Field Values
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
VALUE
public static final String VALUE
- See Also:
- Constant Field Values
-
removed
public boolean removed
-
-
Constructor Detail
-
DBElement
public DBElement(String argName)
-
DBElement
public DBElement(String argName, String argCData, StringBuilder[] att_names, StringBuilder[] att_values)
-
-
Method Detail
-
formatedString
public final String formatedString(int indent, int step)
-
childrenFormatedString
public final String childrenFormatedString(int indent, int step)
-
getSubnodes
public final String[] getSubnodes()
-
removeNode
public final void removeNode(String nodePath)
-
removeEntry
public final void removeEntry(String key)
-
getEntryKeys
public final String[] getEntryKeys()
-
getEntryIntValue
public final int getEntryIntValue(String key, int def)
-
getEntryIntArrValue
public final int[] getEntryIntArrValue(String key, int[] def)
-
getEntryDoubleValue
public final double getEntryDoubleValue(String key, double def)
-
getEntryDoubleArrValue
public final double[] getEntryDoubleArrValue(String key, double[] def)
-
-