org.finra.jtaf.core.model.test
Class TestNamespace

java.lang.Object
  extended by org.finra.jtaf.core.model.test.TestComponent
      extended by org.finra.jtaf.core.model.test.TestNamespace
All Implemented Interfaces:
Iterable<TestComponent>
Direct Known Subclasses:
TestSuite

public class TestNamespace
extends TestComponent
implements Iterable<TestComponent>

These are the internal nodes of our testing model.


Field Summary
protected static TestNamespace root
           
 
Constructor Summary
TestNamespace(String name)
          Instantiates a new TestGroup without a parent.
 
Method Summary
 void acceptTestVisitor(ITestVisitor v)
           
 void add(TestComponent testComponent)
           
 boolean contains(TestComponent c)
           
 List<TestComponent> getComponentList()
          This returns a copy of the component list in order to prevent people from muddling w/ the internal state of the class.
 List<TestComponent> getNeighbor(String name)
          Returns a parent or child of the current node depending upon the token provided.
 Map<String,TestSuite> getTestSuiteMapping()
           
 List<TestComponent> getWithOutTestDataInfo(String name)
           
 boolean isComponentMapContain(String name)
           
 Iterator<TestComponent> iterator()
          FIXME: This should return a read-only iterator NOT USED
 
Methods inherited from class org.finra.jtaf.core.model.test.TestComponent
getFullName, getName, getParent, setName, setParent, toComponent, toComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

protected static TestNamespace root
Constructor Detail

TestNamespace

public TestNamespace(String name)
              throws NameFormatException
Instantiates a new TestGroup without a parent. The parent is assigned when the TestGroup is added to

Parameters:
name -
Throws:
NameFormatException
Method Detail

isComponentMapContain

public final boolean isComponentMapContain(String name)
Parameters:
name -
Returns:
True if this namespace contains a component w/ the supplied name

contains

public final boolean contains(TestComponent c)
Parameters:
c -
Returns:
True if this contains the given component

add

public final void add(TestComponent testComponent)
               throws NameCollisionException
Throws:
NameCollisionException

getTestSuiteMapping

public Map<String,TestSuite> getTestSuiteMapping()

getNeighbor

public final List<TestComponent> getNeighbor(String name)
Description copied from class: TestComponent
Returns a parent or child of the current node depending upon the token provided. Subclasses should invoke super.getNeighbor() before implementing their own logic

Overrides:
getNeighbor in class TestComponent
Returns:

getWithOutTestDataInfo

public final List<TestComponent> getWithOutTestDataInfo(String name)

getComponentList

public final List<TestComponent> getComponentList()
This returns a copy of the component list in order to prevent people from muddling w/ the internal state of the class.

Returns:
A copy of the component list

iterator

public final Iterator<TestComponent> iterator()
FIXME: This should return a read-only iterator NOT USED

Specified by:
iterator in interface Iterable<TestComponent>

acceptTestVisitor

public final void acceptTestVisitor(ITestVisitor v)
                             throws Exception
Specified by:
acceptTestVisitor in class TestComponent
Throws:
Exception


Copyright © 2014. All rights reserved.