com.swfit.core.tree
Class TreeBranch

java.lang.Object
  |
  +--com.swfit.core.tree.TreeElement
        |
        +--com.swfit.core.tree.TreeBranch
Direct Known Subclasses:
XHTMLFieldCollection

public abstract class TreeBranch
extends TreeElement

Branch out the TreeElement into an object that can own.

Since:
SWFIT1.0
Version:
$Revision: 1.1 $ $Date: 2003/02/02 20:47:25 $
Author:
Olaf Havnes

Fields inherited from class com.swfit.core.tree.TreeElement
CODE, NUM_OWNED, OWNED, SEPARATOR
 
Constructor Summary
TreeBranch()
          A TreeBranch with "" as name, will normally be a root.
TreeBranch(java.lang.String name)
          Build a TreeBranch with a given name.
 
Method Summary
 TreeElement add(TreeElement te)
          Add a TreeElement to the hashtable.
 TreeElement[] all()
          Get all TreeElements from the hashtable unsorted
 boolean contains(java.lang.String name)
           
 boolean contains(TreeElement te)
          Check if the hashtable contains a certain TreeElement.
 TreeElement get(java.lang.String name)
          Get a TreeElement from the hashtable.
 TreeBranch getBranch(java.lang.String name)
          Get a TreeBranch from the hashtable.
 TreeBranch getBranch(java.lang.String[] names, int i)
          Get a TreeBranch from somewhere inside the structure
 TreeLeaf getLeaf(java.lang.String name)
          Get a TreeLeaf from the hashtable.
 TreeLeaf getLeaf(java.lang.String[] names, int i)
          Get a TreeLeaf from somewhere inside the structure
 TreeElement[] ignoreCaseAll()
          Get all TreeElements from the hashtable sorted on the name.
 TreeElement[] indexAll()
          Get all TreeElements from the hashtable sorted on the index.
 java.lang.String[] indexAllNames()
          Get all TreeElements from the hashtable sorted on the index.
 java.util.Enumeration names()
          Get the enumeration of TreeElement names from the hashtable.
 
Methods inherited from class com.swfit.core.tree.TreeElement
code, codeName, explainer, horizontal, index, name, owner, setExplainer, setHorizontal, setIndex, setOwner, toTreeBranch, toTreeElement, toTreeLeaf, treeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeBranch

public TreeBranch()
A TreeBranch with "" as name, will normally be a root.

TreeBranch

public TreeBranch(java.lang.String name)
Build a TreeBranch with a given name.
Method Detail

add

public final TreeElement add(TreeElement te)
Add a TreeElement to the hashtable.

get

public final TreeElement get(java.lang.String name)
Get a TreeElement from the hashtable.

getBranch

public final TreeBranch getBranch(java.lang.String name)
Get a TreeBranch from the hashtable.

getLeaf

public final TreeLeaf getLeaf(java.lang.String name)
Get a TreeLeaf from the hashtable.

names

public final java.util.Enumeration names()
Get the enumeration of TreeElement names from the hashtable.

getBranch

public final TreeBranch getBranch(java.lang.String[] names,
                                  int i)
Get a TreeBranch from somewhere inside the structure

getLeaf

public final TreeLeaf getLeaf(java.lang.String[] names,
                              int i)
Get a TreeLeaf from somewhere inside the structure

contains

public final boolean contains(TreeElement te)
Check if the hashtable contains a certain TreeElement.

contains

public final boolean contains(java.lang.String name)

all

public final TreeElement[] all()
Get all TreeElements from the hashtable unsorted

indexAllNames

public final java.lang.String[] indexAllNames()
Get all TreeElements from the hashtable sorted on the index.

indexAll

public final TreeElement[] indexAll()
Get all TreeElements from the hashtable sorted on the index.

ignoreCaseAll

public final TreeElement[] ignoreCaseAll()
Get all TreeElements from the hashtable sorted on the name.


Swfit developer homepage
Copyright © 2003 Orgdot AS. All Rights Reserved.