Examples of MatchesConstraint


Examples of org.drools.factconstraints.server.predefined.MatchesConstraint

    } else if (RangeConstraint.NAME.equals(config.getConstraintName())) {
      return new RangeConstraint();
    } else if (NotMatchesConstraint.NAME.equals(config.getConstraintName())) {
      return new NotMatchesConstraint();
    }else if (MatchesConstraint.NAME.equals(config.getConstraintName())) {
      return new MatchesConstraint();
    }else if (InvalidFieldConstraint.NAME.equals(config.getConstraintName())) {
      return new InvalidFieldConstraint();
    } else {
      throw new IllegalArgumentException("Constraint unknown: " + config.getConstraintName());
    }
View Full Code Here

Examples of org.drools.ide.common.server.factconstraints.predefined.MatchesConstraint

        } else if (RangeConstraint.NAME.equals(config.getConstraintName())) {
            return new RangeConstraint();
        } else if (NotMatchesConstraint.NAME.equals(config.getConstraintName())) {
            return new NotMatchesConstraint();
        }else if (MatchesConstraint.NAME.equals(config.getConstraintName())) {
            return new MatchesConstraint();
        }else if (InvalidFieldConstraint.NAME.equals(config.getConstraintName())) {
            return new InvalidFieldConstraint();
        } else {
            throw new IllegalArgumentException("Constraint unknown: " + config.getConstraintName());
        }
View Full Code Here

Examples of org.drools.ide.common.server.factconstraints.predefined.MatchesConstraint

        } else if (RangeConstraint.NAME.equals(config.getConstraintName())) {
            return new RangeConstraint();
        } else if (NotMatchesConstraint.NAME.equals(config.getConstraintName())) {
            return new NotMatchesConstraint();
        }else if (MatchesConstraint.NAME.equals(config.getConstraintName())) {
            return new MatchesConstraint();
        }else if (InvalidFieldConstraint.NAME.equals(config.getConstraintName())) {
            return new InvalidFieldConstraint();
        }else if (MandatoryFieldConstraint.NAME.equals(config.getConstraintName())) {
            return new MandatoryFieldConstraint();
        } else {
View Full Code Here

Examples of org.grails.validation.MatchesConstraint

    public String getMatches() {
        if (isNotValidStringType()) {
            throw new MissingPropertyException("Matches constraint only applies to a String property",
                    MATCHES_CONSTRAINT, owningClass);
        }
        MatchesConstraint c = (MatchesConstraint)appliedConstraints.get(MATCHES_CONSTRAINT);
        return c == null ? null : c.getRegex();
    }
View Full Code Here

Examples of org.grails.validation.MatchesConstraint

        if (regex == null) {
            appliedConstraints.remove(MATCHES_CONSTRAINT);
        }
        else {
            if (c == null) {
                c = new MatchesConstraint();
                c.setOwningClass(owningClass);
                c.setPropertyName(propertyName);
                appliedConstraints.put(MATCHES_CONSTRAINT,c);
            }
            c.setParameter(regex);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.