Class ConverterUtils


  • public class ConverterUtils
    extends Object
    • Constructor Detail

      • ConverterUtils

        public ConverterUtils()
    • Method Detail

      • getAnnotation

        public static Annotation getAnnotation​(Class annotationClass,
                                               AnnotatedElement element)
        Helper method to retrieve the annotation specified by a certain Class
        Parameters:
        annotationClass - - Class the annotation Class
        element - - AnnotatedElement - the element on which we are looking for the annotation (i.e. Class, Method, Field)
        Returns:
        - Annotation annotation represented by the given Class
      • getAnnotations

        public static <T extends AnnotationList<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

        public static HandlerChainAnnot createHandlerChainAnnot​(HandlerChain handlerChain)
        This is a helper method to create a HandlerChainAnnot since the
        Parameters:
        handlerChain - - HandlerChain
        Returns:
        - HandlerChainAnnot
      • createSoapBindingAnnot

        public static SoapBindingAnnot createSoapBindingAnnot​(SOAPBinding soapBinding)
        This is a helper method to create a SoapBindingAnnot since the
        Parameters:
        soapBinding - - SOAPBinding
        Returns:
        - SoapBindingAnnot
      • createWebServiceRefAnnot

        public static WebServiceRefAnnot createWebServiceRefAnnot​(WebServiceRef webServiceRef)
        This is a helper method to create a WebServiceRefAnnot since 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 - - TMFAnnotationComposite
        annotatedElement - - 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 - - TMAnnotationComposite
        annotatedElement - - 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 - - TMFAnnotationComposite
        annotatedElement - - AnnotatedElement
      • isInherited

        public static boolean isInherited​(Method method,
                                          String declaringClass)
        This method will check to see if a method's declaring class is the Object class.
        Parameters:
        method - - Method
        Returns:
        - boolean
      • getFullType

        public static String getFullType​(ParameterizedType pt,
                                         String paramType)
        This method will construct a String that represents the full type of a parameterized variable.
        Parameters:
        pt - - ParameterizedType
        paramType - - String
        Returns:
        - String
      • hasXmlListAnnotation

        public static boolean hasXmlListAnnotation​(Annotation[] annotations)
        This method will search array of parameter annotations for the presence of the @XmlList annotation.