Synergy Home Page

au.edu.swin.synergy.plugin.packager
Class BPackageModelBranch

java.lang.Object
  |
  +--au.edu.swin.synergy.plugin.packager.BPackageModelBranch

public class BPackageModelBranch
extends Object
implements BTreeNode, Serializable, BSaveable

See Also:
Serialized Form

Field Summary
protected static String kDefaultName
           
protected static String kKeyName
           
 
Constructor Summary
BPackageModelBranch()
           
BPackageModelBranch(BPackageModel parent, String name)
           
 
Method Summary
 void addBGroupsToVector(Vector addList)
           
 void addNode(BTreeNode item)
           
 Object getChildAt(int index)
           
 int getChildCount()
           
 int getIndexOf(Object node)
           
 String getName()
           
 Object getNodeByName(String name)
          Gets a node from the branch.
 Object getParent()
           
 boolean isLeaf()
           
 boolean load(BDataFile file)
           
 void removeAllChildren()
           
 boolean save(BDataFile file)
           
 void setName(String name)
           
 void setParent(Object parent)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

kKeyName

protected static final String kKeyName

kDefaultName

protected static final String kDefaultName
Constructor Detail

BPackageModelBranch

public BPackageModelBranch(BPackageModel parent,
                           String name)

BPackageModelBranch

public BPackageModelBranch()
Method Detail

addNode

public void addNode(BTreeNode item)

addBGroupsToVector

public void addBGroupsToVector(Vector addList)

getNodeByName

public Object getNodeByName(String name)
Gets a node from the branch.
Parameters:
String - name - the name of the node..
Returns:
the first item that matches name..

toString

public String toString()
Overrides:
toString in class Object

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface BTreeNode

getChildAt

public Object getChildAt(int index)
Specified by:
getChildAt in interface BTreeNode

getChildCount

public int getChildCount()
Specified by:
getChildCount in interface BTreeNode

getParent

public Object getParent()
Specified by:
getParent in interface BTreeNode

getIndexOf

public int getIndexOf(Object node)
Specified by:
getIndexOf in interface BTreeNode

setParent

public void setParent(Object parent)
Specified by:
setParent in interface BTreeNode

removeAllChildren

public void removeAllChildren()
Specified by:
removeAllChildren in interface BTreeNode

getName

public String getName()
Specified by:
getName in interface BTreeNode

setName

public void setName(String name)
Specified by:
setName in interface BTreeNode

load

public boolean load(BDataFile file)
Specified by:
load in interface BSaveable

save

public boolean save(BDataFile file)
Specified by:
save in interface BSaveable

Synergy Home Page