org.eclipse.jpt.utility.model.event
Class CollectionClearEvent
java.lang.Object
java.util.EventObject
org.eclipse.jpt.utility.model.event.ChangeEvent
org.eclipse.jpt.utility.model.event.CollectionEvent
org.eclipse.jpt.utility.model.event.CollectionClearEvent
- All Implemented Interfaces:
- java.io.Serializable
public final class CollectionClearEvent
- extends CollectionEvent
A "collection clear" event gets delivered whenever a model clears
a "bound" or "constrained" collection. A CollectionClearEvent is sent
as an argument to the CollectionChangeListener.
Provisional API: This class is part of an interim API that is still
under development and expected to change significantly before reaching
stability. It is available at this early stage to solicit feedback from
pioneering adopters on the understanding that any code that uses this API
will almost certainly be broken (repeatedly) as the API evolves.
- See Also:
- Serialized Form
|
Constructor Summary |
CollectionClearEvent(Model source,
java.lang.String collectionName)
Construct a new collection clear event. |
|
Method Summary |
CollectionClearEvent |
clone(Model newSource)
Return a copy of the event with the specified source
replacing the current source. |
CollectionClearEvent |
clone(Model newSource,
java.lang.String newCollectionName)
Return a copy of the event with the specified source and collection name
replacing the current source and collection name. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CollectionClearEvent
public CollectionClearEvent(Model source,
java.lang.String collectionName)
- Construct a new collection clear event.
- Parameters:
source - The object on which the event initially occurred.collectionName - The programmatic name of the collection that was changed.
clone
public CollectionClearEvent clone(Model newSource)
- Return a copy of the event with the specified source
replacing the current source.
clone
public CollectionClearEvent clone(Model newSource,
java.lang.String newCollectionName)
- Return a copy of the event with the specified source and collection name
replacing the current source and collection name.