public class TRT_TreeNode extends java.lang.Object implements TestResultTable.TreeNode
| Modifier and Type | Class and Description |
|---|---|
static class |
TRT_TreeNode.Fault |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
debug |
| Modifier and Type | Method and Description |
|---|---|
void |
addObserver(TestResultTable.TreeNodeObserver obs)
Add an observer to watch this node for changes.
|
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 |
getEstimatedSize()
Get the estimated number of tests below this node.
|
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 tests are in this node and below.
|
TestResult[] |
getTestResults()
Get any immediate children of this node which are test result objects.
|
TestResultTable.TreeNode[] |
getTreeNodes()
Get only the children of this node which are branches.
|
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.
|
boolean |
refreshIfNeeded()
Refresh this entire node if necessary.
|
void |
removeObserver(TestResultTable.TreeNodeObserver obs)
Remove an observer that was previously added.
|
public void addObserver(TestResultTable.TreeNodeObserver obs)
addObserver in interface TestResultTable.TreeNodeobs - The observer to attach to this node. Should never be
null.public void removeObserver(TestResultTable.TreeNodeObserver obs)
removeObserver in interface TestResultTable.TreeNodeobs - The observer to remove. No effect if it was never
attached.public int getSize()
getSize in interface TestResultTable.TreeNodepublic int getEstimatedSize()
public TestResultTable.TreeNode getParent()
TestResultTable.TreeNodegetParent in interface TestResultTable.TreeNodepublic boolean isRoot()
TestResultTable.TreeNodeisRoot in interface TestResultTable.TreeNodepublic TestResultTable getEnclosingTable()
TestResultTable.TreeNodegetEnclosingTable in interface TestResultTable.TreeNodepublic boolean isUpToDate()
TestResultTable.TreeNodeisUpToDate in interface TestResultTable.TreeNodepublic int getChildCount()
getChildCount in interface TestResultTable.TreeNodepublic java.lang.Object getChild(int index)
TestResultTable.TreeNodegetChild in interface TestResultTable.TreeNodeindex - The location to retrieve.public TestResult[] getTestResults()
TestResultTable.TreeNodegetTestResults in interface TestResultTable.TreeNodepublic TestResultTable.TreeNode[] getTreeNodes()
getTreeNodes in interface TestResultTable.TreeNodepublic java.lang.String getName()
TestResultTable.TreeNodegetName in interface TestResultTable.TreeNodeTestResultTable.getRootRelativePath(com.sun.javatest.TestResultTable.TreeNode)public boolean isLeaf(int index)
TestResultTable.TreeNodeisLeaf in interface TestResultTable.TreeNodeindex - The element index of this node. An out of range index
will return false.public int[] getChildStatus()
TestResultTable.TreeNodegetChildStatus in interface TestResultTable.TreeNodepublic int getIndex(java.lang.Object target)
TestResultTable.TreeNodegetIndex in interface TestResultTable.TreeNodetarget - The target object should either be of type TreeNode or TestResultpublic TestResult matchTest(java.lang.String url)
TestResultTable.TreeNodematchTest in interface TestResultTable.TreeNodeurl - The full name of the test to find.TestDescription.getRootRelativeURL()public boolean refreshIfNeeded()
TestResultTable.refreshIfNeeded(String)Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.