Class JAXBDataBinding

    • Constructor Detail

      • JAXBDataBinding

        public JAXBDataBinding()
      • JAXBDataBinding

        public JAXBDataBinding​(boolean q)
      • JAXBDataBinding

        public JAXBDataBinding​(Class<?>... classes)
                        throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • JAXBDataBinding

        public JAXBDataBinding​(boolean qualified,
                               Map<String,​Object> props)
                        throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • JAXBDataBinding

        public JAXBDataBinding​(javax.xml.bind.JAXBContext context)
    • Method Detail

      • getQualifiedSchemas

        protected boolean getQualifiedSchemas()
      • getContext

        public javax.xml.bind.JAXBContext getContext()
      • setContext

        public final void setContext​(javax.xml.bind.JAXBContext ctx)
      • getEscapeHandler

        public Object getEscapeHandler()
      • setEscapeHandler

        public void setEscapeHandler​(Object handler)
      • applyEscapeHandler

        public void applyEscapeHandler​(boolean escape,
                                       Consumer<Object> consumer)
      • initialize

        public void initialize​(Service service)
        Description copied from interface: DataBinding
        Initialize the service info (i.e. type & element names, Schemas) with information from the databinding.
        Specified by:
        initialize in interface DataBinding
      • justCheckForJAXBAnnotations

        protected void justCheckForJAXBAnnotations​(ServiceInfo serviceInfo)
      • getNamespaceToUse

        protected String getNamespaceToUse​(Service service)
      • setExtraClass

        public void setExtraClass​(Class<?>[] userExtraClass)
      • getExtraClass

        public Class<?>[] getExtraClass()
      • createJAXBContext

        public javax.xml.bind.JAXBContext createJAXBContext​(Set<Class<?>> classes)
                                                     throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • createJAXBContext

        public javax.xml.bind.JAXBContext createJAXBContext​(Set<Class<?>> classes,
                                                            String defaultNs)
                                                     throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • getContextClasses

        public Set<Class<?>> getContextClasses()
      • getContextProperties

        public Map<String,​Object> getContextProperties()
        Return a map of properties. These properties are passed to JAXBContext.newInstance when this object creates a context.
        Returns:
        the map of JAXB context properties.
      • setContextProperties

        public void setContextProperties​(Map<String,​Object> contextProperties)
        Set a map of JAXB context properties. These properties are passed to JAXBContext.newInstance when this object creates a context. Note that if you create a JAXB context elsewhere, you will not respect these properties unless you handle it manually.
        Parameters:
        contextProperties - map of properties.
      • getConfiguredXmlAdapters

        public List<javax.xml.bind.annotation.adapters.XmlAdapter<?,​?>> getConfiguredXmlAdapters()
      • setConfiguredXmlAdapters

        public void setConfiguredXmlAdapters​(List<javax.xml.bind.annotation.adapters.XmlAdapter<?,​?>> adpters)
      • getMarshallerProperties

        public Map<String,​Object> getMarshallerProperties()
        Return a map of properties. These properties are set into the JAXB Marshaller (via Marshaller.setProperty(...) when the marshaller is created.
        Returns:
        the map of JAXB marshaller properties.
      • setMarshallerProperties

        public void setMarshallerProperties​(Map<String,​Object> marshallerProperties)
        Set a map of JAXB marshaller properties. These properties are set into the JAXB Marshaller (via Marshaller.setProperty(...) when the marshaller is created.
        Parameters:
        marshallerProperties - map of properties.
      • getUnmarshallerProperties

        public Map<String,​Object> getUnmarshallerProperties()
        Return a map of properties. These properties are set into the JAXB Unmarshaller (via Unmarshaller.setProperty(...) when the unmarshaller is created.
        Returns:
        the map of JAXB unmarshaller properties.
      • setUnmarshallerProperties

        public void setUnmarshallerProperties​(Map<String,​Object> unmarshallerProperties)
        Set a map of JAXB unmarshaller properties. These properties are set into the JAXB Unmarshaller (via Unmarshaller.setProperty(...) when the unmarshaller is created.
        Parameters:
        unmarshallerProperties - map of properties.
      • getUnmarshallerListener

        public javax.xml.bind.Unmarshaller.Listener getUnmarshallerListener()
        Returns the Unmarshaller.Listener that will be registered on the Unmarshallers
        Returns:
      • setUnmarshallerListener

        public void setUnmarshallerListener​(javax.xml.bind.Unmarshaller.Listener unmarshallerListener)
        Sets the Unmarshaller.Listener that will be registered on the Unmarshallers
        Parameters:
        unmarshallerListener -
      • getMarshallerListener

        public javax.xml.bind.Marshaller.Listener getMarshallerListener()
        Returns the Marshaller.Listener that will be registered on the Marshallers
        Returns:
      • setMarshallerListener

        public void setMarshallerListener​(javax.xml.bind.Marshaller.Listener marshallerListener)
        Sets the Marshaller.Listener that will be registered on the Marshallers
        Parameters:
        marshallerListener -
      • getValidationEventHandler

        public javax.xml.bind.ValidationEventHandler getValidationEventHandler()
      • setValidationEventHandler

        public void setValidationEventHandler​(javax.xml.bind.ValidationEventHandler validationEventHandler)
      • isUnwrapJAXBElement

        public boolean isUnwrapJAXBElement()
      • setUnwrapJAXBElement

        public void setUnwrapJAXBElement​(boolean unwrapJAXBElement)
      • isInBuiltInSchemas

        public static boolean isInBuiltInSchemas​(DOMResult schema)