|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.finra.jtaf.core.model.test.TestComponent
public abstract class TestComponent
Base class of all test-related components within the model, includes only TestScripts and TestNamespaces. This class serves a few primary tasks: 1. It ensures that all subcomponents have proper names 2. It provides generic methods that can be used to crawl the model
Constructor Summary | |
---|---|
TestComponent(String name)
|
Method Summary | |
---|---|
abstract void |
acceptTestVisitor(ITestVisitor v)
|
String |
getFullName()
|
String |
getName()
|
List<TestComponent> |
getNeighbor(String token)
Returns a parent or child of the current node depending upon the token provided. |
TestNamespace |
getParent()
|
void |
setName(String name)
|
protected void |
setParent(TestNamespace parent)
Invoked by TestNamespace.addChild(). |
List<TestComponent> |
toComponent(String path)
Convenience method: Converts a String to a TestPath |
List<TestComponent> |
toComponent(TestPath path)
Travel from this component to another component via the given path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestComponent(String name) throws NameFormatException
name
- parent
-
NameFormatException
Method Detail |
---|
public final String getName()
public final void setName(String name)
public final String getFullName()
public final TestNamespace getParent()
protected final void setParent(TestNamespace parent)
parent
- public List<TestComponent> getNeighbor(String token)
token
-
public final List<TestComponent> toComponent(TestPath path)
path
-
public final List<TestComponent> toComponent(String path)
path
-
public abstract void acceptTestVisitor(ITestVisitor v) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |