methoddescriptioncomposite.java
来自「开源的axis2框架的源码。用于开发WEBSERVER」· Java 代码 · 共 456 行 · 第 1/2 页
JAVA
456 行
}
/** @param returnType The returnType to set. */
public void setReturnType(String returnType) {
this.returnType = returnType;
}
/** @param oneWayAnnotated The oneWay boolean to set */
public void setOneWayAnnot(boolean oneWayAnnotated) {
this.oneWayAnnotated = oneWayAnnotated;
}
/** @param webEndpointAnnotImpl The webEndpointAnnotImpl to set. */
public void setWebEndpointAnnot(WebEndpointAnnot webEndpointAnnot) {
this.webEndpointAnnot = webEndpointAnnot;
}
/** @param requestWrapperAnnot The requestWrapperAnnot to set. */
public void setRequestWrapperAnnot(
RequestWrapperAnnot requestWrapperAnnot) {
this.requestWrapperAnnot = requestWrapperAnnot;
}
/** @param responseWrapperAnnot The responseWrapperAnnot to set. */
public void setResponseWrapperAnnot(
ResponseWrapperAnnot responseWrapperAnnot) {
this.responseWrapperAnnot = responseWrapperAnnot;
}
/** @param webServiceContextAnnot The webServiceContextAnnot to set. */
public void setWebServiceContextAnnot(WebServiceContextAnnot webServiceContextAnnot) {
this.webServiceContextAnnot = webServiceContextAnnot;
}
/** @param handlerChainAnnot The handlerChainAnnot to set. */
public void setHandlerChainAnnot(HandlerChainAnnot handlerChainAnnot) {
this.handlerChainAnnot = handlerChainAnnot;
}
/** @param soapBindingAnnot The soapBindingAnnot to set. */
public void setSoapBindingAnnot(SoapBindingAnnot soapBindingAnnot) {
this.soapBindingAnnot = soapBindingAnnot;
}
/** @param webMethodAnnot The webMethodAnnot to set. */
public void setWebMethodAnnot(WebMethodAnnot webMethodAnnot) {
this.webMethodAnnot = webMethodAnnot;
}
/** @param webResultAnnot The webResultAnnot to set. */
public void setWebResultAnnot(WebResultAnnot webResultAnnot) {
this.webResultAnnot = webResultAnnot;
}
/** @param webServiceRefAnnot The webServiceRefAnnot to set. */
public void setWebServiceRefAnnot(WebServiceRefAnnot webServiceRefAnnot) {
this.webServiceRefAnnot = webServiceRefAnnot;
}
/** @param parameterDescription The parameterDescription to add to the set. */
public void addParameterDescriptionComposite(
ParameterDescriptionComposite parameterDescription) {
parameterDescriptions.add(parameterDescription);
}
/**
* @param parameterDescription The parameterDescription to add to the set.
* @param index The index at which to place this parameterDescription
*/
public void addParameterDescriptionComposite(ParameterDescriptionComposite parameterDescription,
int index) {
parameterDescription.setListOrder(index);
parameterDescriptions.add(index, parameterDescription);
}
/** @param parameterDescription The parameterDescription to add to the set. */
public void setParameterDescriptionCompositeList(
List<ParameterDescriptionComposite> parameterDescriptionList) {
this.parameterDescriptions = parameterDescriptionList;
}
/** @param parameterDescription The parameterDescription to add to the set. */
public ParameterDescriptionComposite getParameterDescriptionComposite(int index) {
return parameterDescriptions.get(index);
}
/**
*/
public List<ParameterDescriptionComposite> getParameterDescriptionCompositeList() {
return parameterDescriptions;
}
/** @param exceptions The exceptions to set. */
public void setExceptions(String[] exceptions) {
this.exceptions = exceptions;
}
/** @param declaringClass The wrapper class to set. */
public void setDeclaringClass(String declaringClass) {
this.declaringClass = declaringClass;
}
/** @return Returns the ModuleClassType. */
public void setDescriptionBuilderCompositeRef(DescriptionBuilderComposite dbc) {
this.parentDBC = dbc;
}
public boolean compare(Object obj) {
if (obj instanceof MethodDescriptionComposite) {
MethodDescriptionComposite mdc = (MethodDescriptionComposite)obj;
if (!(this.methodName.equals(mdc.getMethodName()))) {
return false;
}
List<ParameterDescriptionComposite> thisParamList = this.parameterDescriptions;
List<ParameterDescriptionComposite> paramList =
mdc.getParameterDescriptionCompositeList();
if (thisParamList.size() != paramList.size()) {
return false;
}
for (int i = 0; i < thisParamList.size(); i++) {
if (!(thisParamList.get(i).compare(paramList.get(i)))) {
return false;
}
}
return true;
} else {
return super.equals(obj);
}
}
public void setIsListType(boolean isListType) {
this.isListType = isListType;
}
public boolean isListType() {
return isListType;
}
/**
* Convenience method for unit testing. We will print all of the
* data members here.
*/
public String toString() {
StringBuffer sb = new StringBuffer();
final String newLine = "\n";
final String sameLine = "; ";
sb.append(super.toString());
sb.append(newLine);
sb.append("Name: " + methodName);
sb.append(sameLine);
sb.append("ReturnType: " + returnType);
sb.append(newLine);
sb.append("Exceptions: ");
if (exceptions != null) {
for (int i = 0; i < exceptions.length; i++) {
sb.append(exceptions[i]);
sb.append(sameLine);
}
}
if (oneWayAnnotated) {
sb.append(newLine);
sb.append("OneWay");
}
if (webMethodAnnot != null) {
sb.append(newLine);
sb.append("WebMethod: ");
sb.append(webMethodAnnot.toString());
}
if (requestWrapperAnnot != null) {
sb.append(newLine);
sb.append("RequestWrapper: ");
sb.append(requestWrapperAnnot.toString());
}
if (responseWrapperAnnot != null) {
sb.append(newLine);
sb.append("ResponsetWrapper: ");
sb.append(responseWrapperAnnot.toString());
}
if (soapBindingAnnot != null) {
sb.append(newLine);
sb.append("SOAPBinding: ");
sb.append(soapBindingAnnot.toString());
}
if (webEndpointAnnot != null) {
sb.append(newLine);
sb.append("WebEndpoint: ");
sb.append(webEndpointAnnot.toString());
}
if (webResultAnnot != null) {
sb.append(newLine);
sb.append("WebResult: ");
sb.append(webResultAnnot.toString());
}
if (webServiceRefAnnot != null) {
sb.append(newLine);
sb.append("WebServiceRef: ");
sb.append(webServiceRefAnnot.toString());
}
if (handlerChainAnnot != null) {
sb.append(newLine);
sb.append("HandlerChain: ");
sb.append(handlerChainAnnot.toString());
}
sb.append(newLine);
sb.append("Number of Parameter Descriptions: " + parameterDescriptions.size());
Iterator<ParameterDescriptionComposite> pdcIter = parameterDescriptions.iterator();
while (pdcIter.hasNext()) {
sb.append(newLine);
ParameterDescriptionComposite pdc = pdcIter.next();
sb.append(pdc.toString());
}
return sb.toString();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?