Class Constraint.Factory

  • Enclosing class:
    Constraint

    public static final class Constraint.Factory
    extends java.lang.Object
    A factory class for programmatically creating Constraint instances using an anonymous inner class
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Constraint createConstraint​(java.lang.String id, java.lang.String level, java.lang.String location, java.lang.String description, java.lang.String expression, java.lang.String source, boolean modelChecked, boolean generated)  
      static Constraint createConstraint​(java.lang.String id, java.lang.String level, java.lang.String location, java.lang.String description, java.lang.String expression, java.lang.String source, boolean modelChecked, boolean generated, java.lang.Class<? extends ConstraintValidator<?>> validatorClass)  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createConstraint

        public static Constraint createConstraint​(java.lang.String id,
                                                  java.lang.String level,
                                                  java.lang.String location,
                                                  java.lang.String description,
                                                  java.lang.String expression,
                                                  java.lang.String source,
                                                  boolean modelChecked,
                                                  boolean generated)
      • createConstraint

        public static Constraint createConstraint​(java.lang.String id,
                                                  java.lang.String level,
                                                  java.lang.String location,
                                                  java.lang.String description,
                                                  java.lang.String expression,
                                                  java.lang.String source,
                                                  boolean modelChecked,
                                                  boolean generated,
                                                  java.lang.Class<? extends ConstraintValidator<?>> validatorClass)