Interface ConfigObjectConverter


  • public interface ConfigObjectConverter
    Interface to define an object that converts a HierarchicalConfiguration objects to and from an arbitrary type.
    • Method Detail

      • getClassToConvert

        Class getClassToConvert()
        Returns the class that this converter can convert
        Returns:
        must not be null
      • fromObjectToConfig

        org.apache.commons.configuration.HierarchicalConfiguration fromObjectToConfig​(Object o)
        Converts the object to a HierarchicalConfiguration
        Parameters:
        o - must not be null
        Returns:
        HierarchicalConfiguration. Never null
        Throws:
        IllegalArgumentException - if cannot convert type
      • toObject

        Object toObject​(org.apache.commons.configuration.HierarchicalConfiguration fieldValueItems,
                        Object object)
        Converts a HierarchicalConfiguration to an Object
        Parameters:
        fieldValueItems - - must not be null
        object - - object to convert. Must not be null
        Returns:
        the object, with any values in the passed in the list set