|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.common.actions.ActionDefinition
public abstract class ActionDefinition
This abstract class is the foundation for the set of classes which define the atomic actions for the ModificationAction class.
ModificationAction
,
Serialized FormConstructor Summary | |
---|---|
|
ActionDefinition()
Create a new instance of an action with no target, no attribute definition, and no arguments. |
protected |
ActionDefinition(ActionDefinition rhs)
|
|
ActionDefinition(java.lang.Object[] arguments)
Create a new instance of an action. |
|
ActionDefinition(java.lang.Object target,
AttributeDefinition attribute)
Create a new instance of an action definition by specifying the target. |
|
ActionDefinition(java.lang.Object target,
AttributeDefinition attribute,
java.lang.Object[] arguments)
Create a new instance of an action definition by specifying the target. |
protected |
ActionDefinition(java.lang.Object target,
java.lang.Integer code)
|
protected |
ActionDefinition(java.lang.Object target,
java.lang.Integer code,
java.lang.Object[] arguments)
|
protected |
ActionDefinition(java.lang.Object target,
java.lang.Integer code,
java.lang.Object[] arguments,
long creationTime)
|
Method Summary | |
---|---|
abstract java.lang.Object |
clone()
Return a deep cloned instance of this object. |
abstract java.lang.String |
getActionDescription()
Get the description (i.e., verb) for this type of action. |
java.lang.Object[] |
getArguments()
|
java.lang.Integer |
getAttributeCode()
Get the an attribute definition code for this action. |
java.lang.String |
getAttributeDescription()
Return whether this definition has an attribute definition. |
java.util.Date |
getCreationTime()
Get the time that this action was created. |
long |
getCreationTimeMillis()
Get the time as milliseconds that this action was created. |
java.lang.Object |
getTarget()
Get the target object for this action. |
abstract ActionDefinition |
getUndoActionDefinition()
Obtain the definition of the action that undoes this action definition. |
boolean |
hasArguments()
Return whether this definition has a target. |
boolean |
hasAttributeCode()
Return whether this definition has an attribute definition. |
boolean |
hasTarget()
Return whether this definition has a target. |
java.lang.String |
toString()
Returns a string representing the current state of the object. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ActionDefinition()
public ActionDefinition(java.lang.Object[] arguments)
arguments
- the objects that define the arguments for this action.public ActionDefinition(java.lang.Object target, AttributeDefinition attribute, java.lang.Object[] arguments)
target
- the object (or identifier for the object) that is the target of this action.arguments
- the objects that define the arguments for this action.public ActionDefinition(java.lang.Object target, AttributeDefinition attribute)
target
- the object (or identifier for the object) that is the target of this action.arguments
- the objects that define the arguments for this action.protected ActionDefinition(java.lang.Object target, java.lang.Integer code)
protected ActionDefinition(java.lang.Object target, java.lang.Integer code, java.lang.Object[] arguments, long creationTime)
protected ActionDefinition(java.lang.Object target, java.lang.Integer code, java.lang.Object[] arguments)
protected ActionDefinition(ActionDefinition rhs)
Method Detail |
---|
public java.util.Date getCreationTime()
public long getCreationTimeMillis()
public abstract java.lang.String getActionDescription()
public abstract java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public abstract ActionDefinition getUndoActionDefinition()
public final boolean hasTarget()
public final boolean hasArguments()
public final boolean hasAttributeCode()
public final java.lang.String getAttributeDescription()
public final java.lang.Object getTarget()
public final java.lang.Integer getAttributeCode()
public java.lang.Object[] getArguments()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |