1 15 package org.apache.tapestry.script; 16 17 import org.apache.tapestry.coerce.ValueConverter; 18 import org.apache.tapestry.services.ExpressionEvaluator; 19 import org.apache.tapestry.util.xml.BaseRule; 20 import org.apache.tapestry.util.xml.RuleDirectedParser; 21 import org.xml.sax.Attributes ; 22 23 29 public class ScriptRule extends BaseRule 30 { 31 32 private ExpressionEvaluator _evaluator; 33 34 35 private ValueConverter _valueConverter; 36 37 public ScriptRule(ExpressionEvaluator evaluator, ValueConverter valueConverter) 38 { 39 _evaluator = evaluator; 40 _valueConverter = valueConverter; 41 } 42 43 public void endElement(RuleDirectedParser parser) 44 { 45 parser.pop(); 46 } 47 48 public void startElement(RuleDirectedParser parser, Attributes attributes) 49 { 50 ParsedScript script = new ParsedScript(_evaluator, _valueConverter, parser.getLocation()); 51 52 parser.push(script); 53 } 54 55 } | Popular Tags |