Interface LengthConstraint

All Superinterfaces:
Constraint, DataTypeConstraint, Serializable
All Known Implementing Classes:
SimpleConstraint

public interface LengthConstraint extends DataTypeConstraint
Constraint that restricts the length of a string to some predefined maximum and/or minimum
Since:
1.1
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Method Summary

    Modifier and Type
    Method
    Description
    Determines the maximum size of the field
    Determines the minimum size of the field

    Methods inherited from interface org.kuali.rice.krad.datadictionary.validation.constraint.DataTypeConstraint

    getDataType
  • Method Details

    • getMaxLength

      Integer getMaxLength()
      Determines the maximum size of the field

      The maximum size is used for data entry, data edit and display purposes.

      Returns:
      Integer specifying maximum length of field
    • getMinLength

      Integer getMinLength()
      Determines the minimum size of the field

      The minimum size is used for data entry, data edit and display purposes.

      Returns:
      Integer specifying minimum length of field