Class MethodDescriptionComposite
java.lang.Object
org.apache.axis2.jaxws.description.builder.MethodDescriptionComposite
- All Implemented Interfaces:
TMAnnotationComposite,TMFAnnotationComposite
public class MethodDescriptionComposite
extends Object
implements TMAnnotationComposite, TMFAnnotationComposite
-
Constructor Summary
ConstructorsConstructorDescriptionMethodDescriptionComposite(String methodName, String returnType, WebMethodAnnot webMethodAnnot, WebResultAnnot webResultAnnot, boolean oneWayAnnotated, HandlerChainAnnot handlerChainAnnot, SoapBindingAnnot soapBindingAnnot, WebServiceRefAnnot webServiceRefAnnot, WebEndpointAnnot webEndpointAnnot, RequestWrapperAnnot requestWrapperAnnot, ResponseWrapperAnnot responseWrapperAnnot) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameterDescriptionComposite(ParameterDescriptionComposite parameterDescription) voidaddParameterDescriptionComposite(ParameterDescriptionComposite parameterDescription, int index) booleanString[]Class[]getParameterDescriptionComposite(int index) Returns the String descrbing this method result type.Returns the class associated with the method result type.booleanisFinal()booleanbooleanisOneWay()booleanisStatic()voidsetActionAnnot(ActionAnnot actionAnnot) voidsetDeclaringClass(String declaringClass) voidvoidsetExceptions(String[] exceptions) voidsetFinalModifier(boolean finalModifier) voidsetHandlerChainAnnot(HandlerChainAnnot handlerChainAnnot) voidsetIsListType(boolean isListType) voidsetMethodName(String methodName) voidsetOneWayAnnot(boolean oneWayAnnotated) voidsetParameterDescriptionCompositeList(List<ParameterDescriptionComposite> parameterDescriptionList) voidsetRequestWrapperAnnot(RequestWrapperAnnot requestWrapperAnnot) voidsetResponseWrapperAnnot(ResponseWrapperAnnot responseWrapperAnnot) voidsetReturnType(String returnType) voidsetSoapBindingAnnot(SoapBindingAnnot soapBindingAnnot) voidsetStaticModifier(boolean staticModifier) voidsetWebEndpointAnnot(WebEndpointAnnot webEndpointAnnot) voidsetWebMethodAnnot(WebMethodAnnot webMethodAnnot) voidsetWebResultAnnot(WebResultAnnot webResultAnnot) voidsetWebServiceRefAnnot(WebServiceRefAnnot webServiceRefAnnot) toString()Convenience method for unit testing.
-
Constructor Details
-
MethodDescriptionComposite
public MethodDescriptionComposite() -
MethodDescriptionComposite
public MethodDescriptionComposite(String methodName, String returnType, WebMethodAnnot webMethodAnnot, WebResultAnnot webResultAnnot, boolean oneWayAnnotated, HandlerChainAnnot handlerChainAnnot, SoapBindingAnnot soapBindingAnnot, WebServiceRefAnnot webServiceRefAnnot, WebEndpointAnnot webEndpointAnnot, RequestWrapperAnnot requestWrapperAnnot, ResponseWrapperAnnot responseWrapperAnnot)
-
-
Method Details
-
getMethodName
- Returns:
- Returns the methodName
-
getReturnType
Returns the String descrbing this method result type. Note that this string is unparsed. For example, if it represents a java.util.List<my.package.Foo>, then that excact string will be returned, i.e. "java.util.List<my.package.Foo>". You can use other methods on this object to retrieve parsed values for Generics and Holders.- Returns:
- Returns the returnType
-
getReturnTypeClass
Returns the class associated with the method result type. Note that if the resturn type a generic (such as java.util.List<my.package.Foo>) then the class associated with the raw type is returned (i.e. java.util.List). There are other methods that return the class for the actual type for certain JAX-WS specific generics such as Response- Returns:
- Returns the parameterTypeClass.
-
isOneWay
public boolean isOneWay()- Returns:
- returns whether this is OneWay
-
getWebEndpointAnnot
- Returns:
- Returns the webEndpointAnnot.
-
getRequestWrapperAnnot
- Returns:
- Returns the requestWrapperAnnot.
-
getResponseWrapperAnnot
- Returns:
- Returns the responseWrapperAnnot.
-
getHandlerChainAnnot
- Returns:
- Returns the handlerChainAnnot.
-
getSoapBindingAnnot
- Returns:
- Returns the soapBindingAnnot.
-
getWebMethodAnnot
- Returns:
- Returns the webMethodAnnot.
-
getWebResultAnnot
- Returns:
- Returns the webResultAnnot.
-
getWebServiceRefAnnot
- Returns:
- Returns the webServiceRefAnnot.
-
getActionAnnot
- Returns:
- Returns the actionAnnot.
-
getExceptions
- Returns:
- Returns the exceptions.
-
getExceptionTypes
- Returns:
- Returns the exceptions.
-
getDeclaringClass
- Returns:
- Returns the fully qualified name of the declaring class.
-
getDescriptionBuilderCompositeRef
- Returns:
- Returns the ModuleClassType.
-
setMethodName
- Parameters:
methodName- The methodName to set.
-
setReturnType
- Parameters:
returnType- The returnType to set.
-
setOneWayAnnot
public void setOneWayAnnot(boolean oneWayAnnotated) - Parameters:
oneWayAnnotated- The oneWay boolean to set
-
setWebEndpointAnnot
- Parameters:
webEndpointAnnotImpl- The webEndpointAnnotImpl to set.
-
setRequestWrapperAnnot
- Parameters:
requestWrapperAnnot- The requestWrapperAnnot to set.
-
setResponseWrapperAnnot
- Parameters:
responseWrapperAnnot- The responseWrapperAnnot to set.
-
setHandlerChainAnnot
- Specified by:
setHandlerChainAnnotin interfaceTMFAnnotationComposite- Parameters:
handlerChainAnnot- The handlerChainAnnot to set.
-
setSoapBindingAnnot
- Specified by:
setSoapBindingAnnotin interfaceTMAnnotationComposite- Parameters:
soapBindingAnnot- The soapBindingAnnot to set.
-
setWebMethodAnnot
- Parameters:
webMethodAnnot- The webMethodAnnot to set.
-
setWebResultAnnot
- Parameters:
webResultAnnot- The webResultAnnot to set.
-
setWebServiceRefAnnot
- Specified by:
setWebServiceRefAnnotin interfaceTMFAnnotationComposite- Parameters:
webServiceRefAnnot- The webServiceRefAnnot to set.
-
setActionAnnot
- Parameters:
actionAnnot- The actionAnnot to set.
-
addParameterDescriptionComposite
- Parameters:
parameterDescription- The parameterDescription to add to the set.
-
addParameterDescriptionComposite
public void addParameterDescriptionComposite(ParameterDescriptionComposite parameterDescription, int index) - Parameters:
parameterDescription- The parameterDescription to add to the set.index- The index at which to place this parameterDescription
-
setParameterDescriptionCompositeList
public void setParameterDescriptionCompositeList(List<ParameterDescriptionComposite> parameterDescriptionList) - Parameters:
parameterDescription- The parameterDescription to add to the set.
-
getParameterDescriptionComposite
- Parameters:
parameterDescription- The parameterDescription to add to the set.
-
getParameterDescriptionCompositeList
-
setExceptions
- Parameters:
exceptions- The exceptions to set.
-
setDeclaringClass
- Parameters:
declaringClass- The wrapper class to set.
-
setDescriptionBuilderCompositeRef
-
isStatic
public boolean isStatic() -
setStaticModifier
public void setStaticModifier(boolean staticModifier) -
isFinal
public boolean isFinal() -
setFinalModifier
public void setFinalModifier(boolean finalModifier) -
compare
-
setIsListType
public void setIsListType(boolean isListType) -
isListType
public boolean isListType() -
toString
Convenience method for unit testing. We will print all of the data members here.
-