Interface Constrained


public interface Constrained
A interface for something that is constrained by various criteria
Since:
2.4
  • Method Details

    • hasAppliedConstraint

      boolean hasAppliedConstraint(String constraintName)
      Parameters:
      constraintName - The name of the constraint to check
      Returns:
      Returns true if the specified constraint name is being applied to this property
    • getPropertyType

      Class<?> getPropertyType()
      Returns:
      Returns the propertyType.
    • getMax

      Comparable getMax()
      Returns:
      Returns the maximum possible value.
    • getMin

      Comparable getMin()
      Returns:
      Returns the minimum possible value.
    • getInList

      List getInList()
      Returns:
      Constrains the be within the list of given values
    • getRange

      groovy.lang.Range getRange()
      Returns:
      Constrains the be within the range of given values
    • getScale

      Integer getScale()
    • getSize

      groovy.lang.Range getSize()
    • isBlank

      boolean isBlank()
    • isEmail

      boolean isEmail()
    • isCreditCard

      boolean isCreditCard()
    • getMatches

      String getMatches()
    • getNotEqual

      Object getNotEqual()
    • getMaxSize

      Integer getMaxSize()
    • getMinSize

      Integer getMinSize()
    • isNullable

      boolean isNullable()
    • isUrl

      boolean isUrl()
    • isDisplay

      boolean isDisplay()
    • isEditable

      boolean isEditable()
    • getOrder

      int getOrder()
    • getFormat

      String getFormat()
    • isPassword

      boolean isPassword()
    • supportsContraint

      boolean supportsContraint(String constraintName)
    • applyConstraint

      void applyConstraint(String constraintName, Object constrainingValue)
    • getOwner

      Class getOwner()