1 7 8 10 package org.jboss.net.axis; 11 12 import org.jboss.axis.deployment.wsdd.WSDDException; 13 import org.jboss.axis.deployment.wsdd.WSDDTypeMapping; 14 import org.jboss.axis.utils.LockableHashtable; 15 import org.w3c.dom.Element ; 16 17 import java.util.Map ; 18 19 25 26 27 public class TypeMapping extends WSDDTypeMapping 28 { 29 30 34 35 protected LockableHashtable parameters = new LockableHashtable(); 36 37 41 44 public TypeMapping() 45 { 46 super(); 47 } 48 49 54 public TypeMapping(Element e) throws WSDDException 55 { 56 super(e); 57 readParams(e); 58 } 59 60 64 65 protected void readParams(Element e) 66 { 67 Element [] paramElements = getChildElements(e, "parameter"); 68 69 for (int i = 0; i < paramElements.length; i++) 70 { 71 Element param = paramElements[i]; 72 String pname = param.getAttribute("name"); 73 String value = param.getAttribute("value"); 74 String locked = param.getAttribute("locked"); 75 parameters.put(pname, 76 value, 77 (locked != null && locked.equalsIgnoreCase("true"))); 78 } 79 80 } 81 82 86 87 public Map getParametersTable() 88 { 89 return parameters; 90 } 91 92 } | Popular Tags |