|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BinaryConstraint
Binary Operator Constraints that have both a left and right side.
Field Summary | |
---|---|
static int |
MATCH_MODE_EXACT
Exactly match left and right sides of operation |
static int |
MATCH_MODE_GLOB
If possible perform glob style matching by treating the right side of the operation as a glob expression. |
static int |
MATCH_MODE_REGEXP
If possible perform regular expresion matching by treating the right side of the operation as a regular expression. |
Fields inherited from interface com.novell.zos.constraint.Constraint |
---|
TYPE_ACCEPT, TYPE_ALLOCATION, TYPE_CONTINUE, TYPE_DEFAULT, TYPE_HEALTH, TYPE_PROVISION, TYPE_REPOSITORY, TYPE_RESET, TYPE_RESOURCE, TYPE_START, TYPE_TRIGGER, TYPE_VMHOST, TYPES |
Method Summary | |
---|---|
String |
getFactName()
Retrieve the fact name of the left side of the operation. |
String |
getFactValue()
Retrieve the fact name whose value is used right side of the operation if set with setFactValue() otherwise this will return null. |
int |
getMatchMode()
Retrieve the match mode for this binary constraint operation. |
Object |
getValue()
Retrieve the value of the right side of the operation if set as a value or the value of the fact is specified with setFactValue(). |
void |
setFactName(String factname)
Sets the fact name for the left side of the operation. |
void |
setFactValue(String factName)
Sets the fact name whose value is used in the right side of the operation and in doing so negates any previous setValue() call. |
void |
setMatchMode(int matchMode)
Sets the match mode used by some individual binary operator constraints. |
void |
setValue(Object value)
Sets the value of the right side of the operation and in doing so negates any previous setFactValue() call. |
Methods inherited from interface com.novell.zos.constraint.Constraint |
---|
getReason, setReason, toString, toXmlDocument, validate |
Field Detail |
---|
static final int MATCH_MODE_EXACT
static final int MATCH_MODE_REGEXP
static final int MATCH_MODE_GLOB
Method Detail |
---|
String getFactName()
void setFactName(String factname)
factname
- the fact nameObject getValue()
void setValue(Object value)
value
- the right side value of the operationString getFactValue()
void setFactValue(String factName)
factName
- the fact namevoid setMatchMode(int matchMode) throws ConstraintException
matchMode
- the (advisory) match mode
FactException
- if value does not confirm to the specified match
mode. E.g. a regular express cannot be compiled.
ConstraintException
int getMatchMode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |