1 package org.apache.turbine.services.intake.validator; 2 3 18 19 25 public interface Validator 26 { 27 28 String FLEXIBLE_RULE_NAME = "flexible"; 29 30 31 String FORMAT_RULE_NAME = "format"; 32 33 34 String INVALID_NUMBER_RULE_NAME = "invalidNumber"; 35 36 37 String MASK_RULE_NAME = "mask"; 38 39 40 String MAX_LENGTH_RULE_NAME = "maxLength"; 41 42 43 String MAX_VALUE_RULE_NAME = "maxValue"; 44 45 46 String MIN_LENGTH_RULE_NAME = "minLength"; 47 48 49 String MIN_VALUE_RULE_NAME = "minValue"; 50 51 52 String REQUIRED_RULE_NAME = "required"; 53 54 61 boolean isValid(String testValue); 62 63 71 void assertValidity(String testValue) 72 throws ValidationException; 73 74 79 String getMessage(); 80 } 81 | Popular Tags |