1 15 package org.apache.tapestry.form.translator; 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 import org.apache.tapestry.valid.IValidator; 22 23 30 public class TranslatorBinding extends AbstractBinding 31 { 32 private final Translator _translator; 33 34 public TranslatorBinding(String description, ValueConverter valueConverter, Location location, 35 Translator translator) 36 { 37 super(description, valueConverter, location); 38 39 Defense.notNull(translator, "translator"); 40 41 _translator = translator; 42 } 43 44 47 48 public Object getObject() 49 { 50 return _translator; 51 } 52 53 } 54 | Popular Tags |