| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jeuclid.biparser.AbstractBiNode
net.sourceforge.jeuclid.biparser.EmptyNode
public final class EmptyNode
this class is used to store specific information about a empty node. the node cannot have children, but a sibling
| Constructor Summary | |
|---|---|
| EmptyNode(int length)create a new EmptyNode. | |
| Method Summary | |
|---|---|
|  Node | createDOMSubtree(Document doc)don't create a DOM-tree from EmptyNode (EmptyNode has no DOM node). | 
|  BiType | getType()get the type of node. | 
|  void | insert(BiTree biTree,
             int offset,
             int length,
             int totalOffset)insert characters in EmptyNode, reparse if characters contain '<' or '>'. | 
|  void | remove(BiTree biTree,
             int offset,
             int length,
             int totalOffset)remove characters from EmptyNode, reparse if length gets 0. | 
|  TextPosition | searchNode(Node node,
                     int totalOffset)search a DOM node in this node. if nodes are equal return offset to begin of inputtext, else null | 
|  String | toString() | 
|  String | toString(int level)print biNode. | 
| Methods inherited from class net.sourceforge.jeuclid.biparser.AbstractBiNode | 
|---|
| addSibling, changeLengthRec, formatLength, forwardToSibling, getLength, getNode, getParent, getPrevious, getSibling, setLength, setNode, setPrevious, setSibling | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public EmptyNode(int length)
length - of EmptyNode| Method Detail | 
|---|
public BiType getType()
public void insert(BiTree biTree,
                   int offset,
                   int length,
                   int totalOffset)
            throws ReparseException,
                   NonIncrementalElementException
biTree - reference to BiTree to which this node containsoffset - position to insert characterslength - number of characters to inserttotalOffset - offset of node to begin of text
ReparseException - if a reparse at upper level is needed
NonIncrementalElementException - if the subtree contains an element which cannot be
             incrementally updated.
public void remove(BiTree biTree,
                   int offset,
                   int length,
                   int totalOffset)
            throws ReparseException,
                   NonIncrementalElementException
biTree - reference to BiTree to which this node containsoffset - position to remove characterslength - number of characters to removetotalOffset - offset of node to begin of text
ReparseException - if a reparse at upper level is needed
NonIncrementalElementException - if the subtree contains an element which cannot be
             incrementally updated.public Node createDOMSubtree(Document doc)
doc - Document to create DOM-tree
public TextPosition searchNode(Node node,
                               int totalOffset)
searchNode in interface IBiNodesearchNode in class AbstractBiNodenode - DOM node to search fortotalOffset - offset of node to begin of inputtext
public String toString()
toString in class Objectpublic String toString(int level)
level - level of recursion tree
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||