com.metamatrix.common.actions
Class ExchangeBoolean

java.lang.Object
  extended by com.metamatrix.common.actions.ActionDefinition
      extended by com.metamatrix.common.actions.TargetedActionDefinition
          extended by com.metamatrix.common.actions.ExchangePrimitive
              extended by com.metamatrix.common.actions.ExchangeBoolean
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class ExchangeBoolean
extends ExchangePrimitive

See Also:
Serialized Form

Constructor Summary
ExchangeBoolean(java.lang.Object target, AttributeDefinition attribute, boolean previousValue, boolean newValue)
           
 
Method Summary
 java.lang.Object clone()
          Return a deep cloned instance of this object.
 boolean equals(java.lang.Object obj)
          Returns true if the specified object is semantically equal to this instance.
 boolean getNewValue()
           
 boolean getPreviousValue()
           
 ActionDefinition getUndoActionDefinition()
          Obtain the definition of the action that undoes this action definition.
 java.lang.String toString()
          Returns a string representing the current state of the object.
 
Methods inherited from class com.metamatrix.common.actions.ExchangePrimitive
getActionDescription
 
Methods inherited from class com.metamatrix.common.actions.ActionDefinition
getArguments, getAttributeCode, getAttributeDescription, getCreationTime, getCreationTimeMillis, getTarget, hasArguments, hasAttributeCode, hasTarget
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExchangeBoolean

public ExchangeBoolean(java.lang.Object target,
                       AttributeDefinition attribute,
                       boolean previousValue,
                       boolean newValue)
Method Detail

getPreviousValue

public boolean getPreviousValue()

getNewValue

public boolean getNewValue()

toString

public java.lang.String toString()
Returns a string representing the current state of the object.

Overrides:
toString in class ActionDefinition
Returns:
the string representation of this instance.

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.

equals

public boolean equals(java.lang.Object obj)
Returns true if the specified object is semantically equal to this instance. Note: this method is consistent with compareTo().

Overrides:
equals in class java.lang.Object
Parameters:
obj - the object that this instance is to be compared to.
Returns:
whether the object is equal to this object.

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.