java.lang.Object | |
↳ | com.opensymphony.module.propertyset.verifiers.StringVerifier |
Handles verification of Strings.
Can be configured to only accept only strings within a given
length range. Omitted values are assumed to be unconstrained.
For example:
StringVerifier sv = new StringVerifier();
sv.setMaxLength(50);
Will accept any string that is less than 50 characters in length.
Note though that the default max length of a string is 255 chars.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a StringVerifier with the specified min and max lengths.
| |||||||||||
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.opensymphony.module.propertyset.verifiers.PropertyVerifier
|
Create a StringVerifier with the specified min and max lengths.
min | The minimum allowable string length. |
---|---|
max | The maximum allowable string length. |