Class DomHandlerConverter

  • All Implemented Interfaces:
    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 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 Detail

      • DomHandlerConverter

        public DomHandlerConverter​(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 Object convertDataValueToObjectValue​(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 Object convertObjectValueToDataValue​(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 Object convertDataValueToObjectValue​(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 Object convertObjectValueToDataValue​(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>