|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NamedObjectContainer<T extends NamedObject>
Represents a container of named objects. This container allows clients to remove and retrieve objects by name, as well as allowing them to add back (by value) any object previously removed from the container. This latter capabilility is used to support undo of a remove operation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.bea.wli.worklist.api.taskplan.EventSource |
---|
EventSource.Event |
Method Summary | |
---|---|
T |
addChild(String name)
Create and add a new child object. |
void |
addChild(T child)
Add a child object to this collection. |
void |
clear()
Remove all children in this container. |
T |
getChild(String name)
Get a child object given the child object's name. |
String[] |
getChildNames()
Get an array containing the names of all children contained in this container. |
Collection<T> |
getChildObjects()
Get an array containing the children contained in this container. |
boolean |
hasChild(String name)
Return true if a child object with the given name exists in this container. |
T |
removeChild(String name)
Remove a child by name and return the child object for a possible future call to addBackRemovedChild(). |
void |
renameChild(String oldName,
String newName)
Change the name of the child with oldName to newName. |
Methods inherited from interface com.bea.wli.worklist.api.taskplan.EventSource |
---|
addPropertyChangeListener, addPropertyChangeListener, clearDirty, dispose, getParent, isComplete, isDirty, isInitializing, isStarted, markDirty, removePropertyChangeListener, removePropertyChangeListener, startProducing |
Method Detail |
---|
boolean hasChild(String name)
T getChild(String name) throws UnknownObjectException
UnknownObjectException
- If no child with the given name exists in
this container.String[] getChildNames()
Collection<T> getChildObjects()
void renameChild(String oldName, String newName) throws UnknownObjectException
oldName
- The current name of the child.newName
- The new name for the child.
UnknownObjectException
- If no child with the given oldName exists
in this container.T removeChild(String name) throws UnknownObjectException
name
- The name of the child to remove
UnknownObjectException
- If no child with the given name exists in
this container.
#addBackRemovedChild(NamedObject)void clear()
void addChild(T child) throws DuplicateObjectException, UnknownObjectException
child
- The object, removed with a prior call to removeChild, or
cloned from an object in another container, that
is to be added to the container.
DuplicateObjectException
- If a child with the given name already
exists in this container.
UnknownObjectException
- If the child being readded was not one
that was removed from this container with a call to removeChild.removeChild(java.lang.String)
T addChild(String name) throws DuplicateObjectException
name
- The name of the child that will be created and added to this
collection.
DuplicateObjectException
- If a child with the given name already
exists in this container.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |