com.novell.zos.jdl
Class BetweenConstraint

java.lang.Object
  extended by com.novell.zos.jdl.Constraint
      extended by com.novell.zos.jdl.BetweenConstraint

public class BetweenConstraint
extends Constraint

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

BetweenConstraint

public BetweenConstraint()
Method Detail

validate

public void validate()
Overrides:
validate in class Constraint

setBeginFactValue

public 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.

Parameters:
factvalue - the fact name whose value to retrieve

getBeginFactValue

public 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.

Returns:
the name of the fact whose value to retrieve

setBeginValue

public 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.

Parameters:
value - the right side value of the operation

getBeginValue

public org.python.core.PyObject getBeginValue()
Retrieve the begin value of the right side of the operation if set as a value or null.

Returns:
the right side value of the operation

setEndFactValue

public 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.

Parameters:
factvalue - the fact name whose value to retrieve

getEndFactValue

public 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.

Returns:
the name of the fact whose value to retrieve

setEndValue

public 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.

Parameters:
value - the right side value of the operation

getEndValue

public org.python.core.PyObject getEndValue()
Retrieve the end value of the right side of the operation if set as a value or null.

Returns:
the right side value of the operation


Copyright (c) 2011 Novell, Inc. All rights reserved.