|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jeuclid.biparser.BiTree
public class BiTree
this class if for creating a BiTree with ABiNodes while parsing a text.
| Constructor Summary | |
|---|---|
BiTree()
create a new instance of BiTree. |
|
| Method Summary | |
|---|---|
void |
createDOMTree()
create a new DOM tree from bitree and save it. |
Node |
getDocument()
get document of DOM Tree. |
Node |
getDOMTree(Document d)
create a dom tree from bitree and return root. |
IBiNode |
getRoot()
get root of BiTree. |
String |
getText()
get text of BiTree. |
void |
insert(int offset,
int length,
String t)
insert characters into BiTree. |
void |
remove(int offset,
int length,
String t)
remove characters from BiTree. |
TextPosition |
searchNode(Node node)
search a DOM node in BiTree and return position of node. if node is not found return null |
void |
setRoot(IBiNode r)
set a new root in BiTree. |
String |
toString()
get a formatted output of BiTree. |
String |
toStringDOM()
get formatted output of DOM Tree (for debugging). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BiTree()
| Method Detail |
|---|
public final void createDOMTree()
public final Node getDOMTree(Document d)
d - document to create DOM tree
public final IBiNode getRoot()
public final void insert(int offset,
int length,
String t)
throws ReparseException,
NonIncrementalElementException
offset - insert position in textlength - number of characters to insertt - text where characters were inserted
ReparseException - if a sax parse exception occurs
NonIncrementalElementException - if the subtree contains an element which cannot be
incrementally updated.
public final void remove(int offset,
int length,
String t)
throws ReparseException,
NonIncrementalElementException
offset - remove position in textlength - number of characters to removet - text where characters were removed
ReparseException - if a sax parse exception occurs
NonIncrementalElementException - if the subtree contains an element which cannot be
incrementally updated.public final void setRoot(IBiNode r)
r - new root of BiTreepublic String getText()
public Node getDocument()
public TextPosition searchNode(Node node)
node - DOM node to search for
public String toString()
toString in class Objectpublic String toStringDOM()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||