market
Interface ValueChecker
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- VCDate, VCDummy, VCPositiveDouble, VCPositiveInteger
- public interface ValueChecker
- extends Serializable
Implementations of this interface provide an easy way to check if a String complies with a special
format.
If it doesn't, a ValueChecker can return a String describing the kind of error that was detected.
isValidValue
public boolean isValidValue(String content)
- Parameters:
content
- the String to be tested
- Returns:
true
if the String is valid conforming with the particular ValueChecker's
implementation, otherwise false
.
getErrorString
public String getErrorString()
- Returns:
- a descriptive String depending on the kind of detected error