1 15 package org.apache.tapestry.parse; 16 17 import org.apache.hivemind.impl.BaseLocatable; 18 import org.apache.tapestry.spec.IBindingSpecification; 19 import org.apache.tapestry.spec.IContainedComponent; 20 21 27 class BindingSetter extends BaseLocatable 28 { 29 private IContainedComponent _component; 30 private String _name; 31 private String _value; 32 33 BindingSetter(IContainedComponent component, String name, String value) 34 { 35 _component = component; 36 _name = name; 37 _value = value; 38 } 39 40 void apply(IBindingSpecification spec) 41 { 42 spec.setLocation(getLocation()); 43 _component.setBinding(_name, spec); 44 } 45 46 public String getValue() 47 { 48 return _value; 49 } 50 } 51 | Popular Tags |