Package net.sourceforge.jnlp.config
Class BasicValueValidators.RustCpValidator
- java.lang.Object
-
- net.sourceforge.jnlp.config.BasicValueValidators.RustCpValidator
-
- All Implemented Interfaces:
ValueValidator
- Enclosing class:
- BasicValueValidators
public static class BasicValueValidators.RustCpValidator extends java.lang.Object implements ValueValidator
-
-
Constructor Summary
Constructors Constructor Description RustCpValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPossibleValues()
Returns a string describing possible values in human-readable form that thisValueValidator
acceptsvoid
validate(java.lang.Object value)
This method checks if the given object is a valid value for this specificValueValidator
.
-
-
-
Method Detail
-
validate
public void validate(java.lang.Object value) throws java.lang.IllegalArgumentException
Description copied from interface:ValueValidator
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.- Specified by:
validate
in interfaceValueValidator
- Parameters:
value
- The object to validate- Throws:
java.lang.IllegalArgumentException
- if the value is invalid
-
getPossibleValues
public java.lang.String getPossibleValues()
Description copied from interface:ValueValidator
Returns a string describing possible values in human-readable form that thisValueValidator
accepts- Specified by:
getPossibleValues
in interfaceValueValidator
- Returns:
- a string describing possible values that this
ValueValidator
accepts
-
-