org.drools.ide.common.server.factconstraints.predefined
Class RangeConstraint

java.lang.Object
  extended by org.drools.ide.common.server.factconstraints.predefined.RangeConstraint
All Implemented Interfaces:
Serializable, Constraint

public class RangeConstraint
extends Object
implements Constraint

See Also:
Serialized Form

Field Summary
static String NAME
           
static String RANGE_CONSTRAINT_MAX
           
static String RANGE_CONSTRAINT_MIN
           
 
Constructor Summary
RangeConstraint()
           
 
Method Summary
 List<String> getArgumentKeys()
           
 String getConstraintName()
           
 String getMax(ConstraintConfiguration conf)
           
 String getMin(ConstraintConfiguration conf)
           
 String getVerifierRule(ConstraintConfiguration config)
           
 ValidationResult validate(Object value, ConstraintConfiguration config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

RANGE_CONSTRAINT_MIN

public static final String RANGE_CONSTRAINT_MIN
See Also:
Constant Field Values

RANGE_CONSTRAINT_MAX

public static final String RANGE_CONSTRAINT_MAX
See Also:
Constant Field Values
Constructor Detail

RangeConstraint

public RangeConstraint()
Method Detail

getConstraintName

public String getConstraintName()
Specified by:
getConstraintName in interface Constraint

getVerifierRule

public String getVerifierRule(ConstraintConfiguration config)
Specified by:
getVerifierRule in interface Constraint

validate

public ValidationResult validate(Object value,
                                 ConstraintConfiguration config)
Specified by:
validate in interface Constraint

getMin

public String getMin(ConstraintConfiguration conf)

getMax

public String getMax(ConstraintConfiguration conf)

getArgumentKeys

public List<String> getArgumentKeys()
Specified by:
getArgumentKeys in interface Constraint


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.