Package net.sourceforge.jnlp.config
Interface ValueValidator
- All Known Implementing Classes:
BasicValueValidators.RustCpValidator
public interface ValueValidator
A class implements the ValueValidator interface to indicate that it can validate
values.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns a string describing possible values in human-readable form that thisValueValidator
acceptsvoid
This method checks if the given object is a valid value for this specificValueValidator
.
-
Method Details
-
validate
This method checks if the given object is a valid value for this specificValueValidator
. Any arbitrary operation can be performed to ensure that the value is valid.- Parameters:
value
- The object to validate- Throws:
IllegalArgumentException
- if the value is invalid
-
getPossibleValues
String getPossibleValues()Returns a string describing possible values in human-readable form that thisValueValidator
accepts- Returns:
- a string describing possible values that this
ValueValidator
accepts
-