|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.zos.jdl.Constraint com.novell.zos.jdl.BetweenConstraint
public class BetweenConstraint
Representation of the Between Constraint. Evaluates to true only if the left side fact is between the values specified in the right side. Contains is typically used to check membership of a value in a group fact.
Example of building a ContainsConstraint
to constrain that a resource belongs to a group:
c = BetweenConstraint() c.setFact("matrix.time") c.setBeginValue("9:00 AM") c.setEndFactValue("user.home.time")This constraint can be used independently or added to a And, Or, Not constraint to combine with other constraints.
Constructor Summary | |
---|---|
BetweenConstraint()
|
Method Summary | |
---|---|
java.lang.String |
getBeginFactValue()
Retrieve the fact name whose value is used as the begin value in the right side of the operation if set with setBeginFactValue() otherwise this will return None. |
org.python.core.PyObject |
getBeginValue()
Retrieve the begin value of the right side of the operation if set as a value or null. |
java.lang.String |
getEndFactValue()
Retrieve the fact name whose value is used as the end value in the right side of the operation if set with setEndFactValue() otherwise this will return None. |
org.python.core.PyObject |
getEndValue()
Retrieve the end value of the right side of the operation if set as a value or null. |
void |
setBeginFactValue(java.lang.String factvalue)
Sets the fact name whose value is used as the begin value in the right side of the operation and in doing so negates any previous setBeginValue() call. |
void |
setBeginValue(org.python.core.PyObject value)
Sets the begin value of the right side of the operation and in doing so negates any previous setFactValue() call. |
void |
setEndFactValue(java.lang.String factvalue)
Sets the fact name whose value is used as the end value in the right side of the operation and in doing so negates any previous setEndValue() call. |
void |
setEndValue(org.python.core.PyObject value)
Sets the end value of the right side of the operation and in doing so negates any previous setFactValue() call. |
void |
validate()
|
Methods inherited from class com.novell.zos.jdl.Constraint |
---|
getFact, getFactValue, getReason, getValue, setFact, setFactValue, setReason, setValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BetweenConstraint()
Method Detail |
---|
public void validate()
validate
in class Constraint
public void setBeginFactValue(java.lang.String factvalue)
factvalue
- the fact name whose value to retrievepublic java.lang.String getBeginFactValue()
public void setBeginValue(org.python.core.PyObject value)
value
- the right side value of the operationpublic org.python.core.PyObject getBeginValue()
public void setEndFactValue(java.lang.String factvalue)
factvalue
- the fact name whose value to retrievepublic java.lang.String getEndFactValue()
public void setEndValue(org.python.core.PyObject value)
value
- the right side value of the operationpublic org.python.core.PyObject getEndValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |