com.novell.zos.jdl
Class BinaryConstraint

java.lang.Object
  extended by com.novell.zos.jdl.Constraint
      extended by com.novell.zos.jdl.BinaryConstraint
Direct Known Subclasses:
ContainsConstraint, EqConstraint, GeConstraint, GtConstraint, LeConstraint, LtConstraint, NeConstraint

public class BinaryConstraint
extends Constraint

Representation of a Constraint operating on left and right operands. This is a base class and is not directly constructed.


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.
 
Method Summary
 int getMatchMode()
          Retrieve the match mode for this binary constraint operation.
 void setMatchMode(int matchMode)
          Sets the match mode used by some individual binary operator constraints.
 
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
 

Field Detail

MATCH_MODE_EXACT

public static final int MATCH_MODE_EXACT
Exactly match left and right sides of operation

See Also:
Constant Field Values

MATCH_MODE_REGEXP

public static final int MATCH_MODE_REGEXP
If possible perform regular expresion matching by treating the right side of the operation as a regular expression.
This is only considered for String arguments.

See Also:
Constant Field Values

MATCH_MODE_GLOB

public static final int MATCH_MODE_GLOB
If possible perform glob style matching by treating the right side of the operation as a glob expression.
This is only considered for String arguments.

See Also:
Constant Field Values
Method Detail

setMatchMode

public void setMatchMode(int matchMode)
Sets the match mode used by some individual binary operator constraints. The match mode only has effect if the operator supports the specified type and the type of the left and right side of the operation are compatible with the mode otherwise the default of MATCH_MODE_EXACT is assumed.

Parameters:
matchMode - the (advisory) match mode

getMatchMode

public int getMatchMode()
Retrieve the match mode for this binary constraint operation.

Returns:
the match mode


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