|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.data.Skeleton
public final class Skeleton
This class stores the tree structure of a document.
Nested Class Summary | |
---|---|
static class |
Skeleton.Node
Skeleton node. |
Constructor Summary | |
---|---|
Skeleton()
Default Constructor. |
|
Skeleton(Data d,
DataInput in)
Constructor, specifying an input file. |
Method Summary | |
---|---|
void |
add(int n,
int l,
byte k)
Opens an element. |
java.util.ArrayList<Skeleton.Node> |
desc(java.util.ArrayList<Skeleton.Node> in,
int t,
int k,
boolean desc)
Returns the descendant for the specified nodes. |
TokenList |
desc(byte[] k,
boolean d,
boolean o)
Return descendant tags and attributes for the specified start key. |
TokenList |
desc(TokenList in,
boolean d,
boolean o)
Return descendant tags and attributes for the specified descendant path. |
void |
finish(DataOutput out)
Finishes the structure. |
void |
init()
Initializes the data structures. |
Skeleton.Node |
root()
Returns the skeleton root. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Skeleton()
public Skeleton(Data d, DataInput in) throws java.io.IOException
d
- data referencein
- input stream
java.io.IOException
- I/O exceptionMethod Detail |
---|
public void init()
public Skeleton.Node root()
public void add(int n, int l, byte k)
n
- name referencel
- current levelk
- node kindpublic void finish(DataOutput out) throws java.io.IOException
out
- output stream
java.io.IOException
- I/O exceptionpublic TokenList desc(byte[] k, boolean d, boolean o)
k
- input keyd
- if false, return only childreno
- true/false: sort by occurrence/lexicographically
public TokenList desc(TokenList in, boolean d, boolean o)
in
- input stepsd
- if false, return only childreno
- true/false: sort by occurrence/lexicographically
public java.util.ArrayList<Skeleton.Node> desc(java.util.ArrayList<Skeleton.Node> in, int t, int k, boolean desc)
in
- input nodest
- name referencek
- node kinddesc
- if false, return only children
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |