|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.gui.view.ViewData
public final class ViewData
This class assembles some database access methods which are used
in the same way by different visualizations. If more specific database
access is needed, it is advisable to directly work on the Data
class.
Method Summary | |
---|---|
static byte[] |
content(Data data,
int p,
boolean s)
Returns the contents of the specified node. |
static boolean |
leaf(GUIProp prop,
Data d,
int pre)
Checks if the specified node is a leaf node (text node or file element or file tag). |
static byte[] |
name(GUIProp prop,
Data data,
int pre)
Returns the tag name of the specified node. |
static int |
nameID(Data data)
Returns the name id of the specified node. |
static int |
parent(Data data,
int pre)
Returns the parent for the specified node. |
static byte[] |
path(Data data,
int pre)
Returns path for the specified pre value. |
static int |
size(Data data,
int pre)
Returns the size for the specified node. |
static int |
sizeID(Data data)
Returns the size id of the specified node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean leaf(GUIProp prop, Data d, int pre)
prop
- gui propertiesd
- data referencepre
- pre value
public static byte[] path(Data data, int pre)
data
- data referencepre
- pre value
public static byte[] content(Data data, int p, boolean s)
data
- data referencep
- pre values
- if specified, a short representation is returned
(no full-text nodes, only attribute names)
public static byte[] name(GUIProp prop, Data data, int pre)
prop
- gui propertiesdata
- data referencepre
- pre value
public static int nameID(Data data)
data
- data reference
public static int sizeID(Data data)
data
- data reference
public static int parent(Data data, int pre)
data
- data referencepre
- child node
public static int size(Data data, int pre)
data
- data referencepre
- child node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |