public final class ViewData extends Object
Data
class.Modifier and Type | Method and Description |
---|---|
static byte[] |
content(Data data,
int p,
boolean s)
Returns the contents of the specified node.
|
static boolean |
leaf(GUIOptions opts,
Data d,
int pre)
Checks if the specified node is a text node.
|
static byte[] |
name(GUIOptions opts,
Data data,
int pre)
Returns the name of the specified element.
|
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.
|
public static boolean leaf(GUIOptions opts, Data d, int pre)
opts
- gui optionsd
- data referencepre
- pre valuepublic static byte[] path(Data data, int pre)
data
- data referencepre
- pre valuepublic 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(GUIOptions opts, Data data, int pre)
opts
- gui optionsdata
- data referencepre
- pre valuepublic static int nameID(Data data)
data
- data referencepublic static int sizeID(Data data)
data
- data referencepublic static int parent(Data data, int pre)
data
- data referencepre
- child nodepublic static int size(Data data, int pre)
data
- data referencepre
- child nodeCopyright © 2005–2015 BaseX Team. All rights reserved.