com.novell.zos.jdl
Class EqConstraint
java.lang.Object
com.novell.zos.jdl.Constraint
com.novell.zos.jdl.BinaryConstraint
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:
- Strings -- MATCH_MODE_REGEXP & MATCH_MODE_GLOB
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EqConstraint
public EqConstraint()
Copyright (c) 2009 Novell, Inc. All rights reserved.