1 15 package org.apache.tapestry.valid; 16 17 import org.apache.hivemind.Location; 18 import org.apache.hivemind.util.Defense; 19 import org.apache.tapestry.binding.AbstractBinding; 20 import org.apache.tapestry.coerce.ValueConverter; 21 22 34 public class ValidatorBinding extends AbstractBinding 35 { 36 private final IValidator _validator; 37 38 public ValidatorBinding(String description, ValueConverter valueConverter, Location location, 39 IValidator validator) 40 { 41 super(description, valueConverter, location); 42 43 Defense.notNull(validator, "validator"); 44 45 _validator = validator; 46 } 47 48 public Object getObject() 49 { 50 return _validator; 51 } 52 53 } | Popular Tags |