net.dpml.state
Class ApplyAction

java.lang.Object
  extended by net.dpml.state.ApplyAction
All Implemented Interfaces:
Serializable, Action

public class ApplyAction
extends Object
implements Action, Serializable

Default implementation of delegating action.

Version:
2.1.0
Author:
Digital Product Management Library
See Also:
Serialized Form

Constructor Summary
ApplyAction(String id)
          Creation of a new apply action.
 
Method Summary
 boolean equals(Object other)
          Compare this object to another for equality.
 String getID()
          Return the id of the transition to apply.
 String getName()
          Return the action name.
 int hashCode()
          Compute the hashcode for this instance.
 String toString()
          Return a string representation of the instance.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplyAction

public ApplyAction(String id)
Creation of a new apply action.

Parameters:
id - transition name
Method Detail

getName

public String getName()
Return the action name.

Specified by:
getName in interface Action
Returns:
the name

getID

public String getID()
Return the id of the transition to apply.

Returns:
the transition id

equals

public boolean equals(Object other)
Compare this object to another for equality.

Overrides:
equals in class Object
Parameters:
other - the other object
Returns:
true if the object is equal to this object

hashCode

public int hashCode()
Compute the hashcode for this instance.

Overrides:
hashCode in class Object
Returns:
the hashcode value

toString

public String toString()
Return a string representation of the instance.

Overrides:
toString in class Object
Returns:
the string value