|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.retail.AEF.automation.AbstractCondition | +--com.ibm.retail.AEF.automation.AbstractPropertyCondition
AbstractPropertyCondition is a base class for objects which detect conditions within POSDataProvider properties.
Field Summary | |
---|---|
protected java.lang.String |
category
|
protected java.lang.String |
name
|
protected boolean |
nextOnly
|
protected java.lang.String |
value
|
Fields inherited from class com.ibm.retail.AEF.automation.AbstractCondition |
---|
counterLock, dataProvider, eligible, id, idCounter, index, listeners, lock, manager, session |
Constructor Summary | |
---|---|
AbstractPropertyCondition()
|
Method Summary | |
---|---|
(package private) static java.lang.String |
copyright()
|
void |
currentValues(java.util.HashMap values)
Populate the HashMap with property name/current value pairs included in the condition. |
boolean |
evaluate()
Evaluates the condition given the current value of the property. |
boolean |
evaluate(java.lang.Object newVal)
Evaluates the condition given a value object. |
java.lang.String |
getCategory()
Gets the category of the property this condition is monitoring. |
boolean |
getNextOnly()
Indicates whether only the next property change will be considered, or all future propety changes will be considered until the condition is true or deactivated. |
java.lang.String |
getPropertyName()
Gets the name of the property this condition is monitoring. |
java.lang.Double |
parseDouble(java.lang.String doubleStr)
Takes a string as input, and returns a Double representing the value of the string. |
void |
setEligible(boolean flag)
Sets the condition eligible for evaluation. |
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, explain, getID, getIndex, getPOSDataProvider, getSession, getTerminalNumber, isEligible, makeOpposite, removeEvaluateListener, setConditionLock, setID, setIndex, setLockManager, setPOSDataProvider, setSession |
Methods inherited from interface com.ibm.retail.AEF.event.AEFPropertyChangeListener |
---|
propertyChanged |
Field Detail |
protected java.lang.String category
protected java.lang.String name
protected java.lang.String value
protected boolean nextOnly
Constructor Detail |
public AbstractPropertyCondition()
Method Detail |
static java.lang.String copyright()
public void setEligible(boolean flag)
setEligible
in interface Condition
setEligible
in class AbstractCondition
flag
- Set to true to make this condition eligible for evaluation.public boolean evaluate()
evaluate
in interface Condition
public boolean evaluate(java.lang.Object newVal)
newVal
- The Object value.
public java.lang.String getCategory()
getCategory
in interface com.ibm.retail.AEF.automation.PropertyCondition
public java.lang.String getPropertyName()
getPropertyName
in interface com.ibm.retail.AEF.automation.PropertyCondition
public void currentValues(java.util.HashMap values)
currentValues
in interface Condition
values
- public boolean getNextOnly()
getNextOnly
in interface com.ibm.retail.AEF.automation.PropertyCondition
public java.lang.Double parseDouble(java.lang.String doubleStr) throws java.lang.NumberFormatException
doubleStr
- The string to convert to a double.
java.lang.NumberFormatException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |