org.kuali.rice.krad.datadictionary.validation.constraint
Interface LengthConstraint

All Superinterfaces:
Constraint, DataTypeConstraint, Serializable
All Known Subinterfaces:
LengthConstrainable
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
 Integer getMaxLength()
          Determines the maximum size of the field
 Integer getMinLength()
          Determines the minimum size of the field
 
Methods inherited from interface org.kuali.rice.krad.datadictionary.validation.constraint.DataTypeConstraint
getDataType
 

Method Detail

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


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.