Package org.apache.commons.configuration2.convert
This package contains interfaces and classes related to data type conversions.
An AbstractConfiguration object is associated with an object responsible for data type conversions. Each
conversion is done by this object. By replacing the default conversion handler by a custom version, client
applications can adapt and extend the type conversions available.
Related to data type conversion is also the topic of list delimiter parsing and splitting; before a string value can be converted to a target data type, it must be clear whether it is to be interpreted as a single value or as a list containing multiple values. In this package there are classes implementing different strategies for list delimiter handling. Client code can choose the one which is most suitable for the current use case.
-
ClassDescriptionAn abstract base class for concrete
ListDelimiterHandlerimplementations.An interface defining the possible data type conversions supported by the configuration framework.A default implementation of theConversionHandlerinterface.The default implementation of theListDelimiterHandlerinterface.A specialized implementation of theListDelimiterHandlerinterface which disables list splitting.A specialized implementation ofListDelimiterHandlerwhich simulates the list delimiter handling as it was used byPropertiesConfigurationin Commons Configuration 1.x.Definition of an interface that controls the handling of list delimiters in configuration properties.A utility class to convert the configuration properties into any type.Definition of an interface used byListDelimiterHandlerto perform additional transformations on behalf of a configuration when a property value is escaped.