1 15 package org.apache.tapestry.valid; 16 17 import org.apache.tapestry.IMarkupWriter; 18 import org.apache.tapestry.IRequestCycle; 19 import org.apache.tapestry.form.IFormComponent; 20 21 33 34 public interface IValidator 35 { 36 40 41 public boolean isRequired(); 42 43 47 48 public String toString(IFormComponent field, Object value); 49 50 60 61 public Object toObject(IFormComponent field, String input) throws ValidatorException; 62 63 70 71 public void renderValidatorContribution(IFormComponent field, IMarkupWriter writer, 72 IRequestCycle cycle); 73 74 } | Popular Tags |