1 15 package org.apache.tapestry.form.validator; 16 17 import org.apache.hivemind.impl.MessageFormatter; 18 19 23 class ValidatorMessages 24 { 25 private static final MessageFormatter _formatter = new MessageFormatter( 26 ValidatorMessages.class, "ValidatorStrings"); 27 28 public static String unknownValidator(String name) 29 { 30 return _formatter.format("unknown-validator", name); 31 } 32 33 public static String needsConfiguration(String name) 34 { 35 return _formatter.format("needs-configuration", name); 36 } 37 38 public static String notConfigurable(String name, String value) 39 { 40 return _formatter.format("not-configurable", name, value); 41 } 42 43 public static String errorInitializingValidator(String name, Class validatorClass, 44 Throwable cause) 45 { 46 return _formatter.format( 47 "error-initializing-validator", 48 name, 49 validatorClass.getName(), 50 cause); 51 } 52 53 public static String badSpecification(String specification) 54 { 55 return _formatter.format("bad-specification", specification); 56 } 57 } 58 | Popular Tags |