1 27 package org.objectweb.jonas_ws.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 import org.objectweb.jonas_lib.deployment.rules.JRuleSetBase; 31 32 37 38 public class VariableMappingRuleSet extends JRuleSetBase { 39 40 44 public VariableMappingRuleSet(String prefix) { 45 super(prefix); 46 } 47 51 52 public void addRuleInstances(Digester digester) { 53 digester.addObjectCreate(prefix + "variable-mapping", 54 "org.objectweb.jonas_ws.deployment.xml.VariableMapping"); 55 digester.addSetNext(prefix + "variable-mapping", 56 "addVariableMapping", 57 "org.objectweb.jonas_ws.deployment.xml.VariableMapping"); 58 digester.addCallMethod(prefix + "variable-mapping/java-variable-name", 59 "setJavaVariableName", 0); 60 digester.addCallMethod(prefix + "variable-mapping/data-member", 61 "setDataMember"); 62 digester.addCallMethod(prefix + "variable-mapping/xml-element-name", 63 "setXmlElementName", 0); 64 } 65 } 66 | Popular Tags |