1 16 package org.apache.axis2.description; 17 18 import org.apache.axis2.modules.Module; 19 20 import javax.xml.namespace.QName ; 21 import java.util.HashMap ; 22 23 32 public class ModuleDescription implements FlowInclude, ParameterInclude { 33 34 private Module module; 35 38 private QName name; 39 40 43 private final FlowInclude flowInclude = new FlowIncludeImpl(); 44 45 private HashMap opeartions ; 47 48 51 private final ParameterInclude parameters = new ParameterIncludeImpl(); 52 53 56 public ModuleDescription() { 57 opeartions = new HashMap (); 58 } 59 60 65 public ModuleDescription(QName name) { 66 this(); 67 this.name = name; 68 } 69 70 73 public Flow getFaultInFlow() { 74 return flowInclude.getFaultInFlow(); 75 } 76 77 public Flow getFaultOutFlow() { 78 return flowInclude.getFaultOutFlow(); 79 } 80 81 84 public Flow getInFlow() { 85 return flowInclude.getInFlow(); 86 } 87 88 91 public Flow getOutFlow() { 92 return flowInclude.getOutFlow(); 93 } 94 95 98 public void setFaultInFlow(Flow faultFlow) { 99 flowInclude.setFaultInFlow(faultFlow); 100 } 101 102 105 public void setFaultOutFlow(Flow faultFlow) { 106 flowInclude.setFaultOutFlow(faultFlow); 107 } 108 109 112 public void setInFlow(Flow inFlow) { 113 flowInclude.setInFlow(inFlow); 114 } 115 116 119 public void setOutFlow(Flow outFlow) { 120 flowInclude.setOutFlow(outFlow); 121 } 122 123 126 public void addParameter(Parameter param) { 127 parameters.addParameter(param); 128 } 129 130 134 public Parameter getParameter(String name) { 135 return parameters.getParameter(name); 136 } 137 138 141 public QName getName() { 142 return name; 143 } 144 145 148 public void setName(QName name) { 149 this.name = name; 150 } 151 154 public Module getModule() { 155 return module; 156 } 157 158 161 public void setModule(Module module) { 162 this.module = module; 163 } 164 165 public void addOperation(OperationDescription operation){ 166 opeartions.put(operation.getName(),operation); 167 } 168 169 public HashMap getOperations(){ 170 return opeartions; 171 } 172 173 } 174 | Popular Tags |