Class ConverterUtils
java.lang.Object
org.apache.axis2.jaxws.description.builder.converter.ConverterUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidattachFieldDescriptionComposites(DescriptionBuilderComposite composite, List<FieldDescriptionComposite> fdcList) This method will add FieldDescriptionComposite objects to a DescriptionBuilderCompositestatic voidattachHandlerChainAnnotation(TMFAnnotationComposite composite, AnnotatedElement annotatedElement) This method is use to attach @HandlerChain annotation data to a composite object.static voidattachMethodDescriptionComposites(DescriptionBuilderComposite composite, List<MethodDescriptionComposite> mdcList) This method will add MethodDescriptionComposite objects to a DescriptionBuilderCompositestatic voidattachParameterDescriptionComposites(List<ParameterDescriptionComposite> pdcList, MethodDescriptionComposite mdc) This method will add ParameterDescriptionComposite objects to a MethodDescriptionCompositestatic voidattachSoapBindingAnnotation(TMAnnotationComposite composite, AnnotatedElement annotatedElement) This method is use to attach @SOAPBinding annotation data to a composite object.static voidattachWebServiceRefAnnotation(TMFAnnotationComposite composite, AnnotatedElement annotatedElement) This method is use to attach @WebServiceRef annotation data to a composite object.static HandlerChainAnnotcreateHandlerChainAnnot(jakarta.jws.HandlerChain handlerChain) This is a helper method to create aHandlerChainAnnotsince thestatic SoapBindingAnnotcreateSoapBindingAnnot(jakarta.jws.soap.SOAPBinding soapBinding) This is a helper method to create aSoapBindingAnnotsince thestatic WebServiceRefAnnotcreateWebServiceRefAnnot(jakarta.xml.ws.WebServiceRef webServiceRef) This is a helper method to create aWebServiceRefAnnotsince thestatic AnnotationgetAnnotation(Class annotationClass, AnnotatedElement element) Helper method to retrieve the annotation specified by a certainClassstatic <T extends Annotation>
List<Annotation>getAnnotations(Class<T> annotationClass, AnnotatedElement element) Helper method to retrieve a list of all annotations that match the following conditions: - Annotations that extend the parameterized type T - Annotations that themselves are annotated with type Tstatic StringgetFullType(ParameterizedType pt, String paramType) This method will construct aStringthat represents the full type of a parameterized variable.static Stringstatic booleanhasXmlListAnnotation(Annotation[] annotations) This method will search array of parameter annotations for the presence of the @XmlList annotation.static booleanisInherited(Method method, String declaringClass) This method will check to see if a method's declaring class is the Object class.
-
Constructor Details
-
ConverterUtils
public ConverterUtils()
-
-
Method Details
-
getAnnotation
Helper method to retrieve the annotation specified by a certainClass- Parameters:
annotationClass- -Classthe annotationClasselement- -AnnotatedElement- the element on which we are looking for the annotation (i.e. Class, Method, Field)- Returns:
- -
Annotationannotation represented by the givenClass
-
getAnnotations
public static <T extends Annotation> List<Annotation> getAnnotations(Class<T> annotationClass, AnnotatedElement element) Helper method to retrieve a list of all annotations that match the following conditions: - Annotations that extend the parameterized type T - Annotations that themselves are annotated with type T- Parameters:
annotationClass-element-- Returns:
-
createHandlerChainAnnot
This is a helper method to create aHandlerChainAnnotsince the- Parameters:
handlerChain- -HandlerChain- Returns:
- -
HandlerChainAnnot
-
createSoapBindingAnnot
This is a helper method to create aSoapBindingAnnotsince the- Parameters:
soapBinding- -SOAPBinding- Returns:
- -
SoapBindingAnnot
-
createWebServiceRefAnnot
public static WebServiceRefAnnot createWebServiceRefAnnot(jakarta.xml.ws.WebServiceRef webServiceRef) This is a helper method to create aWebServiceRefAnnotsince the- Parameters:
webServiceRef- -WebServiceRef- Returns:
- -
WebServiceRefAnnot
-
attachHandlerChainAnnotation
public static void attachHandlerChainAnnotation(TMFAnnotationComposite composite, AnnotatedElement annotatedElement) This method is use to attach @HandlerChain annotation data to a composite object.- Parameters:
composite- -TMFAnnotationCompositeannotatedElement- -AnnotatedElement
-
attachSoapBindingAnnotation
public static void attachSoapBindingAnnotation(TMAnnotationComposite composite, AnnotatedElement annotatedElement) This method is use to attach @SOAPBinding annotation data to a composite object.- Parameters:
composite- -TMAnnotationCompositeannotatedElement- -AnnotatedElement
-
attachWebServiceRefAnnotation
public static void attachWebServiceRefAnnotation(TMFAnnotationComposite composite, AnnotatedElement annotatedElement) This method is use to attach @WebServiceRef annotation data to a composite object.- Parameters:
composite- -TMFAnnotationCompositeannotatedElement- -AnnotatedElement
-
attachFieldDescriptionComposites
public static void attachFieldDescriptionComposites(DescriptionBuilderComposite composite, List<FieldDescriptionComposite> fdcList) This method will add FieldDescriptionComposite objects to a DescriptionBuilderComposite -
attachMethodDescriptionComposites
public static void attachMethodDescriptionComposites(DescriptionBuilderComposite composite, List<MethodDescriptionComposite> mdcList) This method will add MethodDescriptionComposite objects to a DescriptionBuilderComposite -
attachParameterDescriptionComposites
public static void attachParameterDescriptionComposites(List<ParameterDescriptionComposite> pdcList, MethodDescriptionComposite mdc) This method will add ParameterDescriptionComposite objects to a MethodDescriptionComposite -
isInherited
This method will check to see if a method's declaring class is the Object class.- Parameters:
method- -Method- Returns:
- -
boolean
-
getFullType
This method will construct aStringthat represents the full type of a parameterized variable.- Parameters:
pt- -ParameterizedTypeparamType- -String- Returns:
- -
String
-
getType
-
hasXmlListAnnotation
This method will search array of parameter annotations for the presence of the @XmlList annotation.
-