Annotation Interface SaneParameter
@Documented
@Retention(RUNTIME)
@Target({METHOD,FIELD,PARAMETER,TYPE_USE})
@Constraint(validatedBy=uk.ac.manchester.spinnaker.alloc.compat.IsSaneValidator.class)
public @interface SaneParameter
Validates that an argument is a sane value to pass in a classic spalloc API
call. That means "is it a string, a boolean or a number"? Null is not
permitted.
- Author:
- Donal Fellows
-
Optional Element Summary
Optional Elements
-
Element Details
-
message
String messageMessage on constraint violated.- Returns:
- Message
- Default:
- "${validatedValue} is a bad spalloc parameter"
-