Class DomHandlerConverter

  • All Implemented Interfaces:
    java.io.Serializable, org.eclipse.persistence.core.mappings.converters.CoreConverter<org.eclipse.persistence.mappings.DatabaseMapping,​org.eclipse.persistence.sessions.Session>, org.eclipse.persistence.mappings.converters.Converter, org.eclipse.persistence.oxm.mappings.converters.XMLConverter

    public class DomHandlerConverter
    extends java.lang.Object
    implements org.eclipse.persistence.oxm.mappings.converters.XMLConverter
    INTERNAL:

    Purpose:Provide support for the JAXB DomHandler API through the use of an EclipseLink Converter.

    Responsibilities:

    • Wrap a provided instance of a DomHandler implementation.
    • Invoke the createUnmarshaller method on DomHandler and to a transform on unmarshal
    • Invoke the marshal method on the DomHandler on a marshal
    Author:
    mmacivor
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DomHandlerConverter​(java.lang.String domHandlerClassName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object convertDataValueToObjectValue​(java.lang.Object dataValue, org.eclipse.persistence.sessions.Session session)  
      java.lang.Object convertDataValueToObjectValue​(java.lang.Object dataValue, org.eclipse.persistence.sessions.Session session, org.eclipse.persistence.oxm.XMLUnmarshaller unmarshaller)  
      java.lang.Object convertObjectValueToDataValue​(java.lang.Object objectValue, org.eclipse.persistence.sessions.Session session)  
      java.lang.Object convertObjectValueToDataValue​(java.lang.Object objectValue, org.eclipse.persistence.sessions.Session session, org.eclipse.persistence.oxm.XMLMarshaller marshaller)  
      void initialize​(org.eclipse.persistence.mappings.DatabaseMapping mapping, org.eclipse.persistence.sessions.Session session)  
      boolean isMutable()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DomHandlerConverter

        public DomHandlerConverter​(java.lang.String domHandlerClassName)
    • Method Detail

      • initialize

        public void initialize​(org.eclipse.persistence.mappings.DatabaseMapping mapping,
                               org.eclipse.persistence.sessions.Session session)
        Specified by:
        initialize in interface org.eclipse.persistence.mappings.converters.Converter
        Specified by:
        initialize in interface org.eclipse.persistence.core.mappings.converters.CoreConverter<org.eclipse.persistence.mappings.DatabaseMapping,​org.eclipse.persistence.sessions.Session>
      • convertDataValueToObjectValue

        public java.lang.Object convertDataValueToObjectValue​(java.lang.Object dataValue,
                                                              org.eclipse.persistence.sessions.Session session,
                                                              org.eclipse.persistence.oxm.XMLUnmarshaller unmarshaller)
        Specified by:
        convertDataValueToObjectValue in interface org.eclipse.persistence.oxm.mappings.converters.XMLConverter
      • convertObjectValueToDataValue

        public java.lang.Object convertObjectValueToDataValue​(java.lang.Object objectValue,
                                                              org.eclipse.persistence.sessions.Session session,
                                                              org.eclipse.persistence.oxm.XMLMarshaller marshaller)
        Specified by:
        convertObjectValueToDataValue in interface org.eclipse.persistence.oxm.mappings.converters.XMLConverter
      • isMutable

        public boolean isMutable()
        Specified by:
        isMutable in interface org.eclipse.persistence.mappings.converters.Converter
      • convertDataValueToObjectValue

        public java.lang.Object convertDataValueToObjectValue​(java.lang.Object dataValue,
                                                              org.eclipse.persistence.sessions.Session session)
        Specified by:
        convertDataValueToObjectValue in interface org.eclipse.persistence.mappings.converters.Converter
        Specified by:
        convertDataValueToObjectValue in interface org.eclipse.persistence.core.mappings.converters.CoreConverter<org.eclipse.persistence.mappings.DatabaseMapping,​org.eclipse.persistence.sessions.Session>
      • convertObjectValueToDataValue

        public java.lang.Object convertObjectValueToDataValue​(java.lang.Object objectValue,
                                                              org.eclipse.persistence.sessions.Session session)
        Specified by:
        convertObjectValueToDataValue in interface org.eclipse.persistence.mappings.converters.Converter
        Specified by:
        convertObjectValueToDataValue in interface org.eclipse.persistence.core.mappings.converters.CoreConverter<org.eclipse.persistence.mappings.DatabaseMapping,​org.eclipse.persistence.sessions.Session>