Class JAXBEncoderDecoder


  • public final class JAXBEncoderDecoder
    extends Object
    Utility functions for JAXB.
    • Method Detail

      • marshall

        public static void marshall​(javax.xml.bind.Marshaller marshaller,
                                    Object elValue,
                                    org.apache.cxf.service.model.MessagePartInfo part,
                                    Object source)
      • marshalWithBridge

        public static void marshalWithBridge​(QName qname,
                                             Class<?> cls,
                                             Annotation[] anns,
                                             Set<Class<?>> ctxClasses,
                                             Object elValue,
                                             Object source,
                                             javax.xml.bind.attachment.AttachmentMarshaller am)
      • unmarshalWithBridge

        public static Object unmarshalWithBridge​(QName qname,
                                                 Class<?> cls,
                                                 Annotation[] anns,
                                                 Set<Class<?>> ctxClasses,
                                                 Object source,
                                                 javax.xml.bind.attachment.AttachmentUnmarshaller am)
      • marshallException

        public static void marshallException​(javax.xml.bind.Marshaller marshaller,
                                             Exception elValue,
                                             org.apache.cxf.service.model.MessagePartInfo part,
                                             Object source)
      • unmarshallException

        public static Exception unmarshallException​(javax.xml.bind.Unmarshaller u,
                                                    Object source,
                                                    org.apache.cxf.service.model.MessagePartInfo part)
      • marshallNullElement

        public static void marshallNullElement​(javax.xml.bind.Marshaller marshaller,
                                               Object source,
                                               org.apache.cxf.service.model.MessagePartInfo part)
      • unmarshall

        public static Object unmarshall​(javax.xml.bind.Unmarshaller u,
                                        Object source,
                                        org.apache.cxf.service.model.MessagePartInfo part,
                                        boolean unwrap)
      • unmarshall

        public static Object unmarshall​(javax.xml.bind.Unmarshaller u,
                                        Object source,
                                        QName elName,
                                        Class<?> clazz,
                                        boolean unwrap)
      • getElementValue

        public static Object getElementValue​(Object obj)
      • getClassFromType

        public static Class<?> getClassFromType​(Type t)