pp108 : StringFormat

StringFormat

This component enables to validate the string against the length and character set.

The following table lists the methods that can be defined for the component:

Method

Description

setMinLength

Sets the minimum length of the string

getMinLength

Returns the minimum length of the string

setMaxLength

Sets the maximum length of the string

getMaxLength

Returns the maximum length of the string

setLegalCharacterSet

Sets the legal character set

getLegalCharacterSet

Returns the legal character set

setIllegalCharacterSet

Sets the illegal character set

getIllegalCharacterSet

Returns the illegal character set