public static interface TestResultTable.TreeNode
Modifier and Type | Method and Description |
---|---|
void |
addObserver(TestResultTable.TreeNodeObserver obs)
Add a observer for this particular node.
|
java.lang.Object |
getChild(int index)
Get the child at the specified location.
|
int |
getChildCount()
Find out how many children this node contains.
|
int[] |
getChildStatus()
Get the statistics for the state of tests under this node.
|
TestResultTable |
getEnclosingTable()
Find out what TestResultTable this node is part of.
|
int |
getIndex(java.lang.Object target)
Search for a specific item in this node.
|
java.lang.String |
getName()
The name of this node, not including all the ancestors names.
|
TestResultTable.TreeNode |
getParent()
Get the parent of this node.
|
int |
getSize()
Find out how many nodes are contained in this one and below.
|
TestResult[] |
getTestResults()
Get any immediate children of this node which are test result objects.
|
TestResultTable.TreeNode[] |
getTreeNodes()
Get any immediate children of this node which are tree nodes.
|
boolean |
isLeaf(int index)
Is the given element of this node a leaf.
|
boolean |
isRoot()
Is this the root of a tree.
|
boolean |
isUpToDate()
Has the finder been used to scan this node from secondary storage?.
|
TestResult |
matchTest(java.lang.String url)
Finds a TestResult in this node with the given name.
|
void |
removeObserver(TestResultTable.TreeNodeObserver obs)
Add a observer for this particular node.
|
void addObserver(TestResultTable.TreeNodeObserver obs)
obs
- The observer to attach to this node. Should never be
null.void removeObserver(TestResultTable.TreeNodeObserver obs)
obs
- The observer to remove. No effect if it was never
attached.int getSize()
TestResultTable.TreeNode getParent()
boolean isRoot()
TestResultTable getEnclosingTable()
boolean isUpToDate()
int getChildCount()
java.lang.Object getChild(int index)
index
- The location to retrieve.TestResult[] getTestResults()
TestResultTable.TreeNode[] getTreeNodes()
java.lang.String getName()
TestResultTable.getRootRelativePath(com.sun.javatest.TestResultTable.TreeNode)
boolean isLeaf(int index)
index
- The element index of this node. An out of range index
will return false.int[] getChildStatus()
int getIndex(java.lang.Object target)
target
- The target object should either be of type TreeNode or TestResultTestResult matchTest(java.lang.String url)
url
- The full name of the test to find.TestDescription.getRootRelativeURL()
Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.