public class TreeBrowser extends BaseBrowser
_batchSize, _browser| Constructor and Description |
|---|
TreeBrowser(OPCBrowseServerAddressSpace browser)
Browse for all items without search parameters.
|
TreeBrowser(OPCBrowseServerAddressSpace browser,
String filterCriteria,
EnumSet<Access> accessMask,
int variantType)
Browse for items with search parameters.
|
| Modifier and Type | Method and Description |
|---|---|
Branch |
browse()
Browse through all levels of the tree browser.
|
protected void |
browse(Branch branch,
boolean leaves,
boolean branches,
boolean descend) |
Branch |
browseBranches()
Browse the root branch for its sub-branches.
|
protected void |
browseBranches(Branch branch,
boolean leaves,
boolean descend) |
Branch |
browseLeaves()
Browse the root branch for this leaves.
|
protected void |
browseLeaves(Branch branch)
Fill the branch object with the leaves of this currently selected branch.
|
void |
fill(Branch branch)
Fill the leaves and branches of the branch provided branches including
alls sub-branches.
|
void |
fillBranches(Branch branch)
Fill the branch list of the provided branch.
|
void |
fillLeaves(Branch branch)
Fill the leaf list of the provided branch.
|
protected void |
moveToBranch(Branch branch)
Move the tree browser to a branch
|
protected void |
moveToRoot()
Move the tree browser to the root folder
|
browse, getAccessPaths, getBatchSize, setBatchSizepublic TreeBrowser(OPCBrowseServerAddressSpace browser)
TreeBrowser ( browser, "", EnumSet.noneOf ( Access.class ), JIVariant.VT_EMPTY );
browser - The browser to use for browsingpublic TreeBrowser(OPCBrowseServerAddressSpace browser, String filterCriteria, EnumSet<Access> accessMask, int variantType)
browser - The browser to usefilterCriteria - The filter criteria. It is specific to the server you use.accessMask - The access mask (use EnumSet.noneOf ( Access.class ) for all)variantType - The variant type (use JIVariant.VT_EMPTY for all)protected void moveToRoot()
throws JIException
JIExceptionprotected void moveToBranch(Branch branch) throws JIException
branch - The branch to move toJIExceptionpublic Branch browseBranches() throws JIException, IllegalArgumentException, UnknownHostException
JIExceptionIllegalArgumentExceptionUnknownHostExceptionpublic Branch browseLeaves() throws IllegalArgumentException, UnknownHostException, JIException
IllegalArgumentExceptionUnknownHostExceptionJIExceptionpublic void fillBranches(Branch branch) throws JIException, IllegalArgumentException, UnknownHostException
branch - The branch to fill.JIExceptionIllegalArgumentExceptionUnknownHostExceptionpublic void fillLeaves(Branch branch) throws IllegalArgumentException, UnknownHostException, JIException
branch - The branch to fill.IllegalArgumentExceptionUnknownHostExceptionJIExceptionpublic Branch browse() throws JIException, IllegalArgumentException, UnknownHostException
JIExceptionIllegalArgumentExceptionUnknownHostExceptionpublic void fill(Branch branch) throws IllegalArgumentException, UnknownHostException, JIException
branch - The branch to fill.IllegalArgumentExceptionUnknownHostExceptionJIExceptionprotected void browseLeaves(Branch branch) throws IllegalArgumentException, UnknownHostException, JIException
branch - The branch to fillIllegalArgumentExceptionUnknownHostExceptionJIExceptionprotected void browseBranches(Branch branch, boolean leaves, boolean descend) throws IllegalArgumentException, UnknownHostException, JIException
protected void browse(Branch branch, boolean leaves, boolean branches, boolean descend) throws IllegalArgumentException, UnknownHostException, JIException
Copyright © 2017 LSST. All rights reserved.