public class Branch extends Object
| Constructor and Description |
|---|
Branch()
Create a branch to the virtual root folder
|
Branch(Branch parent,
String name)
Create a branch with a parent branch and a name of this branch.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Branch> |
getBranches()
Get all branches.
|
Collection<String> |
getBranchStack()
Get the list of names from the parent up to this branch
|
Collection<Leaf> |
getLeaves()
Get all leaves.
|
String |
getName() |
Branch |
getParent() |
void |
setBranches(Collection<Branch> branches) |
void |
setLeaves(Collection<Leaf> leaves) |
void |
setName(String name) |
public Collection<Branch> getBranches()
TreeBrowserpublic void setBranches(Collection<Branch> branches)
public Collection<Leaf> getLeaves()
TreeBrowserpublic void setLeaves(Collection<Leaf> leaves)
public String getName()
public void setName(String name)
public Branch getParent()
public Collection<String> getBranchStack()
Copyright © 2017 LSST. All rights reserved.