Class DomConverterRegistry


  • public class DomConverterRegistry
    extends Object
    • Constructor Detail

      • DomConverterRegistry

        public DomConverterRegistry()
    • Method Detail

      • getInstance

        public static DomConverterRegistry getInstance()
        Gets the singleton instance of the registry.
        Returns:
        The instance.
      • setDomConverter

        public void setDomConverter​(Class<?> type,
                                    DomConverter converter)
        Sets the converter to be used for the specified type.
        Parameters:
        type - The type.
        converter - The converter.
      • getConverter

        public DomConverter getConverter​(Class<?> type)
        Gets the converter registered with the given type.
        Parameters:
        type - The type.
        Returns:
        The converter for the given type or null if no such converter exists.