com.metamatrix.common.actions
Class CreateObject
java.lang.Object
com.metamatrix.common.actions.ActionDefinition
com.metamatrix.common.actions.CreateObject
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class CreateObject
- extends ActionDefinition
This action definition specifies that an object is to be added to the target.
- See Also:
- Serialized Form
Constructor Summary |
CreateObject(java.lang.Object object)
|
CreateObject(java.lang.Object target,
java.lang.Object object)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CreateObject
public CreateObject(java.lang.Object object)
CreateObject
public CreateObject(java.lang.Object target,
java.lang.Object object)
getActionDescription
public java.lang.String getActionDescription()
- Description copied from class:
ActionDefinition
- Get the description (i.e., verb) for this type of action.
- Specified by:
getActionDescription
in class ActionDefinition
- Returns:
- the string description for this type of action.
clone
public java.lang.Object clone()
- Return a deep cloned instance of this object. Subclasses must override
this method.
- Specified by:
clone
in class ActionDefinition
- Returns:
- the object that is the clone of this instance.
getUndoActionDefinition
public ActionDefinition getUndoActionDefinition()
- Obtain the definition of the action that undoes this action definition. If a modification action with the
returned action definition is applied to the same target (when the state is such as that left by
the original modification action), the resulting target will be left in a state that is identical to the target
before either action were applied.
- Specified by:
getUndoActionDefinition
in class ActionDefinition
- Returns:
- the action definition that undoes this action definition.
Copyright © 2009. All Rights Reserved.