|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.portal.common.test.info.TestItemInfo
org.jboss.portal.common.test.info.TestContainerInfo
public class TestContainerInfo
Container for items.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jboss.portal.common.test.info.TestItemInfo |
|---|
TestItemInfo.AbstractVisitor, TestItemInfo.Visitor |
| Field Summary |
|---|
| Fields inherited from class org.jboss.portal.common.test.info.TestItemInfo |
|---|
description, name, parent |
| Constructor Summary | |
|---|---|
TestContainerInfo(java.lang.String name)
Create a named container. |
|
TestContainerInfo(java.lang.String name,
java.lang.String description)
Create a named container. |
|
TestContainerInfo(TestContainerInfo that)
Copy constructor which performs a deep copy of the structure. |
|
| Method Summary | |
|---|---|
void |
addChild(TestItemInfo child)
Add a child to this container |
TestItemInfo |
createClone()
Create a deep clone of the current item in a detyped manner. |
TestItemInfo |
findItem(java.lang.String itemId)
Find an item within the scope of the current item. |
TestItemInfo |
getChild(java.lang.String childName)
Retrieve a specified child |
java.util.Set |
getChildNames()
Return the set of child names. |
protected void |
internalVisit(TestItemInfo.Visitor visitor)
|
void |
removeChild(java.lang.String childName)
Remove a child from this container. |
java.lang.String |
toString()
|
| Methods inherited from class org.jboss.portal.common.test.info.TestItemInfo |
|---|
getDescription, getId, getName, getParent, internalGetId, internalGetId, visit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TestContainerInfo(java.lang.String name)
throws java.lang.IllegalArgumentException
name - the container name
java.lang.IllegalArgumentException - if the name is null
public TestContainerInfo(java.lang.String name,
java.lang.String description)
throws java.lang.IllegalArgumentException
name - the container namedescription - the container description
java.lang.IllegalArgumentException - if the name is null
public TestContainerInfo(TestContainerInfo that)
throws java.lang.IllegalArgumentException
that - the structure to deep copy
java.lang.IllegalArgumentException - if the container to copy is null| Method Detail |
|---|
public TestItemInfo createClone()
TestItemInfo
createClone in class TestItemInfoprotected void internalVisit(TestItemInfo.Visitor visitor)
internalVisit in class TestItemInfo
public void addChild(TestItemInfo child)
throws java.lang.IllegalArgumentException
child - the child to add
java.lang.IllegalArgumentException - if the child is null or already in the container
public void removeChild(java.lang.String childName)
throws java.lang.IllegalArgumentException
childName - the name of the child to remove
java.lang.IllegalArgumentException - if the child name is null or the child does not exist
public TestItemInfo getChild(java.lang.String childName)
throws java.lang.IllegalArgumentException
childName - the child name to retrieve
java.lang.IllegalArgumentException - if the child name is nullpublic java.util.Set getChildNames()
public TestItemInfo findItem(java.lang.String itemId)
TestItemInfo
findItem in class TestItemInfoitemId - the item id to find
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||