|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.test.framework.info.TestItemInfo
public abstract class TestItemInfo
A test item info is the abstraction over a test info and a test container info as both of them contains similarities. It is a data structure which describes a collection of tests.
Nested Class Summary | |
---|---|
static class |
TestItemInfo.AbstractVisitor
Boiler plate visitor. |
static interface |
TestItemInfo.Visitor
Visitor interface for the item structure. |
Field Summary | |
---|---|
protected java.lang.String |
description
The optional test description. |
protected java.lang.String |
name
The test name. |
protected TestContainerInfo |
parent
The optional parent. |
Constructor Summary | |
---|---|
protected |
TestItemInfo(java.lang.String name)
Create an item with the specified name. |
protected |
TestItemInfo(java.lang.String name,
java.lang.String description)
Create an item with the specified name. |
protected |
TestItemInfo(TestItemInfo that)
Clone constructor. |
Method Summary | |
---|---|
abstract TestItemInfo |
createClone()
Create a deep clone of the current item in a detyped manner. |
abstract TestItemInfo |
findItem(java.lang.String itemId)
Find an item within the scope of the current item. |
java.lang.String |
getDescription()
Return the item description. |
java.lang.String |
getId(TestItemInfo context)
Return the id relative to a parent context. |
java.lang.String |
getName()
Return the item name. |
TestContainerInfo |
getParent()
Return the parent or null if it does not exist. |
protected java.lang.StringBuffer |
internalGetId()
|
protected java.lang.StringBuffer |
internalGetId(TestItemInfo context)
|
protected abstract void |
internalVisit(TestItemInfo.Visitor visitor)
|
void |
visit(TestItemInfo.Visitor visitor)
Visit the structure following the GOF visitor pattern. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String name
protected final java.lang.String description
protected TestContainerInfo parent
Constructor Detail |
---|
protected TestItemInfo(TestItemInfo that) throws java.lang.IllegalArgumentException
that
- the item to clone
java.lang.IllegalArgumentException
- if the argument is nullprotected TestItemInfo(java.lang.String name) throws java.lang.IllegalArgumentException
name
- the test name
java.lang.IllegalArgumentException
- if the name is nullprotected TestItemInfo(java.lang.String name, java.lang.String description) throws java.lang.IllegalArgumentException
name
- the test namedescription
- the test description
java.lang.IllegalArgumentException
- if the name is nullMethod Detail |
---|
public java.lang.String getName()
public java.lang.String getDescription()
public TestContainerInfo getParent()
public java.lang.String getId(TestItemInfo context)
protected java.lang.StringBuffer internalGetId(TestItemInfo context)
protected java.lang.StringBuffer internalGetId()
public abstract TestItemInfo findItem(java.lang.String itemId) throws java.lang.IllegalArgumentException
itemId
- the item id to find
java.lang.IllegalArgumentException
- if the id is nullpublic abstract TestItemInfo createClone()
protected abstract void internalVisit(TestItemInfo.Visitor visitor)
public void visit(TestItemInfo.Visitor visitor) throws java.lang.IllegalArgumentException
visitor
-
java.lang.IllegalArgumentException
- if the visitor is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |