com.ibm.retail.AEF.automation
Class PropertyNotEqualsCondition

java.lang.Object
  |
  +--com.ibm.retail.AEF.automation.AbstractCondition
        |
        +--com.ibm.retail.AEF.automation.AbstractPropertyCondition
              |
              +--com.ibm.retail.AEF.automation.PropertyNotEqualsCondition
All Implemented Interfaces:
AEFPropertyChangeListener, Condition, com.ibm.retail.AEF.automation.PropertyCondition, java.rmi.Remote

public class PropertyNotEqualsCondition
extends AbstractPropertyCondition

PropertyNotEqualsCondition listens to a POSDataProvider property and indicates whether the property is not equal to a specified value. If the property value is not equal, then lock associated with this condition is notified.


Field Summary
 java.lang.Double doubleValue
           
 
Fields inherited from class com.ibm.retail.AEF.automation.AbstractPropertyCondition
category, name, nextOnly, value
 
Fields inherited from class com.ibm.retail.AEF.automation.AbstractCondition
counterLock, dataProvider, eligible, id, idCounter, index, listeners, lock, manager, session
 
Constructor Summary
PropertyNotEqualsCondition(com.ibm.retail.AEF.automation.PropertyEqualsCondition condition)
          Constructs the logical opposite of a given condition
PropertyNotEqualsCondition(java.lang.String cat, java.lang.String name, double value)
          Constructs the condition
PropertyNotEqualsCondition(java.lang.String cat, java.lang.String name, double value, boolean nextValueOnly)
          Constructs the condition
PropertyNotEqualsCondition(java.lang.String cat, java.lang.String name, java.lang.String value)
          Constructs the condition
PropertyNotEqualsCondition(java.lang.String cat, java.lang.String name, java.lang.String value, boolean nextValueOnly)
          Constructs the condition
 
Method Summary
(package private) static java.lang.String copyright()
           
 boolean evaluate(java.lang.Object newVal)
          Evaluates the condition given a value object.
 java.lang.String explain()
          Returns a string explaining this condition.
 java.lang.Double getTargetDoubleValue()
          Returns the target value which this condition is looking for within the property.
 java.lang.String getTargetValue()
          Returns the target value which this condition is looking for within the property.
 com.ibm.retail.AEF.automation.Condition makeOpposite()
          Makes a new condition which is the logical opposite of this condition.
 void propertyChanged(com.ibm.retail.AEF.event.AEFPropertyChangeEvent evt)
          A AEF POSDataProvider property was updated
 
Methods inherited from class com.ibm.retail.AEF.automation.AbstractPropertyCondition
currentValues, evaluate, getCategory, getNextOnly, getPropertyName, parseDouble, setEligible
 
Methods inherited from class com.ibm.retail.AEF.automation.AbstractCondition
addEvaluateListener, getID, getIndex, getNextID, getPOSDataProvider, getSession, getTerminalNumber, isEligible, notifyEvaluateConditionListeners, removeEvaluateListener, setConditionLock, setID, setIndex, setLockManager, setPOSDataProvider, setSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.retail.AEF.automation.Condition
addEvaluateListener, getID, getIndex, getPOSDataProvider, getSession, getTerminalNumber, isEligible, removeEvaluateListener, setConditionLock, setID, setIndex, setLockManager, setPOSDataProvider, setSession
 

Field Detail

doubleValue

public java.lang.Double doubleValue
Constructor Detail

PropertyNotEqualsCondition

public PropertyNotEqualsCondition(java.lang.String cat,
                                  java.lang.String name,
                                  java.lang.String value,
                                  boolean nextValueOnly)
Constructs the condition

Parameters:
cat - The property category
name - The property name
value - A String value which the value should not equal to evaluate true.

PropertyNotEqualsCondition

public PropertyNotEqualsCondition(java.lang.String cat,
                                  java.lang.String name,
                                  java.lang.String value)
Constructs the condition

Parameters:
cat - The property category
name - The property name
value - A String value which the value should not equal to evaluate true.

PropertyNotEqualsCondition

public PropertyNotEqualsCondition(java.lang.String cat,
                                  java.lang.String name,
                                  double value,
                                  boolean nextValueOnly)
Constructs the condition

Parameters:
cat - The property category
name - The property name
value - A double value which the value should not equal to evaluate true.

PropertyNotEqualsCondition

public PropertyNotEqualsCondition(java.lang.String cat,
                                  java.lang.String name,
                                  double value)
Constructs the condition

Parameters:
cat - The property category
name - The property name
value - A double value which the value should not equal to evaluate true.

PropertyNotEqualsCondition

public PropertyNotEqualsCondition(com.ibm.retail.AEF.automation.PropertyEqualsCondition condition)
Constructs the logical opposite of a given condition

Method Detail

copyright

static java.lang.String copyright()

makeOpposite

public com.ibm.retail.AEF.automation.Condition makeOpposite()
Makes a new condition which is the logical opposite of this condition.

Returns:
Condition

propertyChanged

public void propertyChanged(com.ibm.retail.AEF.event.AEFPropertyChangeEvent evt)
                     throws java.rmi.RemoteException
A AEF POSDataProvider property was updated

Parameters:
evt - contains details of the event
Throws:
java.rmi.RemoteException - if remote access fails

evaluate

public boolean evaluate(java.lang.Object newVal)
Evaluates the condition given a value object.

Overrides:
evaluate in class AbstractPropertyCondition
Parameters:
newVal - The Object value.
Returns:
boolean True if the condition evaluates to true.

explain

public java.lang.String explain()
Returns a string explaining this condition.

Returns:
String

getTargetValue

public java.lang.String getTargetValue()
Returns the target value which this condition is looking for within the property.

Returns:
String

getTargetDoubleValue

public java.lang.Double getTargetDoubleValue()
Returns the target value which this condition is looking for within the property.

Returns:
Double


Copyright © 2004 IBM. All Rights Reserved.
Generated: July 19 2004