com.novell.zos.jdl
Class EqConstraint

java.lang.Object
  extended by com.novell.zos.jdl.Constraint
      extended by com.novell.zos.jdl.BinaryConstraint
          extended by com.novell.zos.jdl.EqConstraint

public class EqConstraint
extends BinaryConstraint

Representation of the Equals Constraint. This constraint can be used independently or added to a And, Or, Not constraint to combine with other constraints.

Example of a Constraint to find resources that are running on linux:

      eq = EqConstraint()
      eq.setFact("resource.os.family")
      eq.setValue("linux")
 
Example of a Constraint to match resource id's using a regular expression:
      eq = EqConstraint()
      eq.setFact("resource.id")
      eq.setValue("webserver*")
      eq.setMatchMode(EqConstraint.MATCH_MODE_REGEXP)
 
Supported match modes:


Field Summary
 
Fields inherited from class com.novell.zos.jdl.BinaryConstraint
MATCH_MODE_EXACT, MATCH_MODE_GLOB, MATCH_MODE_REGEXP
 
Constructor Summary
EqConstraint()
           
 
Method Summary
 
Methods inherited from class com.novell.zos.jdl.BinaryConstraint
getMatchMode, setMatchMode
 
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

EqConstraint

public EqConstraint()


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