|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jeuclid.biparser.BiTreeCreationHelper
public class BiTreeCreationHelper
this class if for creating a BiTree with ABiNodes while parsing a text.
| Constructor Summary | |
|---|---|
BiTreeCreationHelper()
create a new BiTreeHelper. get result (tree of ABiNodes) with getRoot() |
|
| Method Summary | |
|---|---|
boolean |
allowNewTextNode()
check if current position in BiTree allows a TextNode as child. |
void |
closeBiNode(int length)
close BiNode (set length of node). |
void |
createBiNode(int totalOffset,
int childOffset,
String namespaceURI,
String eName,
Attributes attrs)
create and append a new BiNode at current position in BiTree. |
void |
createEmtpyNode(int length)
create a new EmptyNode at current position in BiTree. |
void |
createTextNode(int length,
String t)
create a new TextNode at current position. |
IBiNode |
getRoot()
get root of BiTree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BiTreeCreationHelper()
| Method Detail |
|---|
public final IBiNode getRoot()
public final void createBiNode(int totalOffset,
int childOffset,
String namespaceURI,
String eName,
Attributes attrs)
throws SAXParseException
totalOffset - of node in textchildOffset - position of first child (length of open tag)namespaceURI - namespaceeName - name of nodeattrs - attributes of node
SAXParseException - if the element cannot be recognized by JEuclid.public final void closeBiNode(int length)
length - length of nodepublic final boolean allowNewTextNode()
public final void createTextNode(int length,
String t)
length - length of TextNodet - text of TextNodepublic final void createEmtpyNode(int length)
length - length of EmtpyNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||