Class TreeElement

java.lang.Object
org.javarosa.core.model.instance.TreeElement
All Implemented Interfaces:
AbstractTreeElement<TreeElement>, Externalizable

public class TreeElement
extends Object
implements Externalizable, AbstractTreeElement<TreeElement>

An element of a FormInstance.

TreeElements represent an XML node in the instance. It may either have a value (e.g., Drew), a number of TreeElement children (e.g., ), or neither (e.g.,)

TreeElements can also represent attributes. Attributes are unique from normal elements in that they are not "children" of their parent, and are always leaf nodes: IE cannot have children.

TODO: Split out the bind-able session data from this class and leave only the mandatory values to speed up new DOM-like models

Author:
Clayton Sims