Package megamek.client.ui.util.verifier
Interface DataVerifier
- All Known Implementing Classes:
VerifyInRange,VerifyIsInteger,VerifyIsPositiveInteger,VerifyNotEmpty,VerifyNotNull,VerifyNotNullOrEmpty
public interface DataVerifier
Interface for a data verification object. Implementing classes should evaluate the value passed into the
verify(java.lang.Object) method to make sure it is valid according to the needs of the implementer.- Since:
- 3/14/14 1:11 PM
-
Method Summary
-
Method Details
-
verify
Performs a verification of the given value. If the value is good, a null is returned. Otherwise, aStringexplaining how the verification failed will be returned.- Parameters:
value- The value to be evaluated.- Returns:
- NULL if the value is good, otherwise a description of how the evaluation failed.
-