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
kKeyName
protected static final String kKeyName
kDefaultName
protected static final String kDefaultName
BPackageModelBranch
public BPackageModelBranch(BPackageModel parent,
String name)
BPackageModelBranch
public BPackageModelBranch()
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