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