1 16 package org.apache.axis2.description; 17 18 import org.apache.axis2.engine.Handler; 19 20 import javax.xml.namespace.QName ; 21 22 25 public class HandlerDescription implements ParameterInclude { 26 29 private final ParameterInclude parameterInclude; 30 31 34 private QName name; 35 36 39 private PhaseRule rules; 40 41 44 private Handler handler; 45 46 49 private String className; 50 51 54 public HandlerDescription() { 55 this.parameterInclude = new ParameterIncludeImpl(); 56 this.rules = new PhaseRule(); 57 } 58 59 64 public HandlerDescription(QName name) { 65 this(); 66 this.name = name; 67 } 68 69 72 public QName getName() { 73 return name; 74 } 75 76 81 public PhaseRule getRules() { 82 return rules; 83 } 84 85 90 public void setRules(PhaseRule rules) { 91 this.rules = rules; 92 } 93 94 97 public void setName(QName name) { 98 this.name = name; 99 } 100 101 104 public void addParameter(Parameter param) { 105 parameterInclude.addParameter(param); 106 } 107 108 112 public Parameter getParameter(String name) { 113 return parameterInclude.getParameter(name); 114 } 115 116 119 public Handler getHandler() { 120 return handler; 121 } 122 123 126 public void setHandler(Handler handler) { 127 this.handler = handler; 128 } 129 130 135 public String getClassName() { 136 return className; 137 } 138 139 144 public void setClassName(String className) { 145 this.className = className; 146 } 147 } 148 | Popular Tags |