Interface Constrained


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

      • hasAppliedConstraint

        boolean hasAppliedConstraint​(java.lang.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

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

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

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

        java.util.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

        java.lang.Integer getScale()
      • getSize

        groovy.lang.Range getSize()
      • isBlank

        boolean isBlank()
      • isEmail

        boolean isEmail()
      • isCreditCard

        boolean isCreditCard()
      • getMatches

        java.lang.String getMatches()
      • getNotEqual

        java.lang.Object getNotEqual()
      • getMaxSize

        java.lang.Integer getMaxSize()
      • getMinSize

        java.lang.Integer getMinSize()
      • isNullable

        boolean isNullable()
      • isUrl

        boolean isUrl()
      • isDisplay

        boolean isDisplay()
      • isEditable

        boolean isEditable()
      • getOrder

        int getOrder()
      • getFormat

        java.lang.String getFormat()
      • isPassword

        boolean isPassword()
      • supportsContraint

        boolean supportsContraint​(java.lang.String constraintName)
      • applyConstraint

        void applyConstraint​(java.lang.String constraintName,
                             java.lang.Object constrainingValue)
      • getOwner

        java.lang.Class getOwner()