public class DBElement extends 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
Element.Matcher<T>, Element.XMLIdentityHashMap<K,V>
Modifier and Type | Field and Description |
---|---|
static String |
ENTRY |
static String |
KEY |
static String |
MAP |
static String |
NAME |
static String |
NODE |
boolean |
removed |
static String |
TYPE |
static String |
VALUE |
Constructor and Description |
---|
DBElement(String argName) |
DBElement(String argName,
String attname,
String attvalue) |
DBElement(String argName,
String argCData,
StringBuilder[] att_names,
StringBuilder[] att_values) |
Modifier and Type | Method and Description |
---|---|
DBElement |
buildNodesTree(String nodePath) |
String |
childrenFormatedString(int indent,
int step) |
DBElement |
findEntry(String key) |
DBElement |
findNode(String nodePath) |
String |
formatedString(int indent,
int step) |
DBElement |
getEntry(String key) |
double[] |
getEntryDoubleArrValue(String key,
double[] def) |
double |
getEntryDoubleValue(String key,
double def) |
int[] |
getEntryIntArrValue(String key,
int[] def) |
int |
getEntryIntValue(String key,
int def) |
String[] |
getEntryKeys() |
String[] |
getEntryStringArrValue(String key,
String[] def) |
String |
getEntryStringValue(String key,
String def) |
Object |
getEntryValue(String key,
Object def) |
DBElement |
getSubnode(String name) |
DBElement |
getSubnodePath(String nodePath) |
String[] |
getSubnodes() |
DBElement |
newSubnode(String name) |
void |
removeEntry(String key) |
void |
removeNode(String nodePath) |
void |
setEntry(String key,
Object value) |
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
public static final String ENTRY
public static final String KEY
public static final String MAP
public static final String NAME
public static final String NODE
public static final String TYPE
public static final String VALUE
public boolean removed
public DBElement(String argName)
public DBElement(String argName, String argCData, StringBuilder[] att_names, StringBuilder[] att_values)
public final String formatedString(int indent, int step)
public final String childrenFormatedString(int indent, int step)
public final String[] getSubnodes()
public final void removeNode(String nodePath)
public final void removeEntry(String key)
public final String[] getEntryKeys()
public final int getEntryIntValue(String key, int def)
public final int[] getEntryIntArrValue(String key, int[] def)
public final double getEntryDoubleValue(String key, double def)
public final double[] getEntryDoubleArrValue(String key, double[] def)
Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.