Class FileTypeConverter

  • All Implemented Interfaces:
    TypeConverter

    public final class FileTypeConverter
    extends Object
    implements TypeConverter
    A TypeConverter for options of type File or Path which offers some additional features like a common base directory for all output files. In order to use these features, the options need to be annotated with FileOption.

    This type converter should be registered for the type FileOption.

    The additional features are:

    • All specified relative paths are resolved against a given root directory.
    • All relative paths of output files are resolved against a separate output directory.
    • All output files can be disabled by a central switch.

    In order to configure these features, the normal configuration options are used.