Package org.oddjob.tools
Class WaitForChildren
java.lang.Object
org.oddjob.tools.WaitForChildren
- All Implemented Interfaces:
StructuralListener
Utility class to wait for a certain number of children to be
added to a structural node.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchildAdded(StructuralEvent event) Called when a child is added to a Structural object.voidchildRemoved(StructuralEvent event) Called when a child is removed from a Strucutral object.Object[]children()voidwaitFor(int count)
-
Constructor Details
-
WaitForChildren
-
WaitForChildren
-
-
Method Details
-
waitFor
public void waitFor(int count) -
children
-
childAdded
Description copied from interface:StructuralListenerCalled when a child is added to a Structural object.- Specified by:
childAddedin interfaceStructuralListener- Parameters:
event- The strucural event.
-
childRemoved
Description copied from interface:StructuralListenerCalled when a child is removed from a Strucutral object.- Specified by:
childRemovedin interfaceStructuralListener- Parameters:
event- The strucutral event.
-