1 16 17 18 package org.apache.axis.tools.ant.wsdl; 19 20 import org.apache.tools.ant.ProjectComponent; 21 22 import java.util.HashMap ; 23 import java.util.Iterator ; 24 import java.util.LinkedList ; 25 import java.util.List ; 26 27 30 public class MappingSet implements Mapper { 31 32 List mappings=new LinkedList (); 33 34 38 public void addMapping(NamespaceMapping mapping) { 39 mappings.add(mapping); 40 } 41 42 46 public void addMappingSet(MappingSet mappingset) { 47 mappings.add(mappingset); 48 } 49 50 56 public void execute(ProjectComponent owner, HashMap map, boolean packageIsKey) { 57 Iterator it=mappings.iterator(); 58 while (it.hasNext()) { 59 Mapper mapper = (Mapper) it.next(); 60 mapper.execute(owner,map, packageIsKey); 61 } 62 } 63 } 64 | Popular Tags |