multivalent

Class ESISNode

public class ESISNode extends Object

Simple tree node for use in building parse tree: attributes, children, write linearized tree to string. Like java.awt.Rectangle, all fields public. Can't be directly used in document tree.

Version: $Revision: 1.7 $ $Date: 2003/06/02 05:06:01 $

Field Summary
Map<String,Object>attrs
booleanempty
charptype
static intTRIM_ALLCONTENT
static intTRIM_NULLCONTENT
Constructor Summary
ESISNode(String gi, Map<String,Object> attr, ESISNode parent)
ESISNode(String gi, Map<String,Object> attr)
ESISNode(String gi)
Method Summary
voidappendChild(Object n)
ObjectchildAt(int n)
voiddump()
voiddump(String indent)
StringgetAttr(String key)
StringgetGI()
ESISNodeputAttr(String key, Object value)
voidremoveAttr(String key)
voidremoveChildAt(int posn)
voidsetGI(String gi)
intsize()
StringtoString()
static voidtrimTree(ESISNode tree)
static voidtrimTree(ESISNode tree, int flags)
StringwriteXML()
Writes ESIS tree as XML.

Field Detail

attrs

public Map<String,Object> attrs

empty

public boolean empty

ptype

public char ptype

TRIM_ALLCONTENT

public static final int TRIM_ALLCONTENT

TRIM_NULLCONTENT

public static final int TRIM_NULLCONTENT

Constructor Detail

ESISNode

public ESISNode(String gi, Map<String,Object> attr, ESISNode parent)

ESISNode

public ESISNode(String gi, Map<String,Object> attr)

ESISNode

public ESISNode(String gi)

Method Detail

appendChild

public void appendChild(Object n)

childAt

public Object childAt(int n)

dump

public void dump()

dump

public void dump(String indent)

getAttr

public String getAttr(String key)

getGI

public String getGI()

putAttr

public ESISNode putAttr(String key, Object value)

removeAttr

public void removeAttr(String key)

removeChildAt

public void removeChildAt(int posn)

setGI

public void setGI(String gi)

size

public int size()

toString

public String toString()

trimTree

public static void trimTree(ESISNode tree)

trimTree

public static void trimTree(ESISNode tree, int flags)

writeXML

public String writeXML()
Writes ESIS tree as XML.