Public Member Functions | |
ConfigFileRedeemer (Logger logger) | |
final boolean | isNotAConfigFile (File file) |
abstract String[] | getFileEndings () |
String | getName () |
Protected Member Functions | |
abstract boolean | _isNotAConfigFile (File file) |
Protected Attributes | |
Logger | logger |
alma.acs.config.validators.ConfigFileRedeemer.ConfigFileRedeemer | ( | Logger | logger | ) |
abstract boolean alma.acs.config.validators.ConfigFileRedeemer._isNotAConfigFile | ( | File | file | ) | [protected, pure virtual] |
Called by isNotAConfigFile(File) only if the file ending matches one of the endings in getFileEndings().
Implemented in alma.acs.config.validators.ConfigFileRedeemerFilepath, alma.acs.config.validators.ConfigFileRedeemerTestDir, and alma.acs.config.validators.ConfigFileRedeemerXml.
Referenced by alma.acs.config.validators.ConfigFileRedeemer.isNotAConfigFile().
abstract String [] alma.acs.config.validators.ConfigFileRedeemer.getFileEndings | ( | ) | [pure virtual] |
Subclasses supply the endings of files that they can possibly redeem.
Note that in order to match, the file name must end with one of the given strings, see String#endsWith(java.lang.String). The ending may therefore contain more than one '.'.
Implemented in alma.acs.config.validators.ConfigFileRedeemerFilepath, alma.acs.config.validators.ConfigFileRedeemerTestDir, and alma.acs.config.validators.ConfigFileRedeemerXml.
Referenced by alma.acs.config.validators.ConfigFileFinder.addRedeemer(), and alma.acs.config.validators.ConfigFileRedeemer.isNotAConfigFile().
String alma.acs.config.validators.ConfigFileRedeemer.getName | ( | ) |
final boolean alma.acs.config.validators.ConfigFileRedeemer.isNotAConfigFile | ( | File | file | ) |
Checks whether the given file is known to be not a config file, but to serve a more respectable purpose.
Note that the selection is negative: from all files that are suspected based on their file ending, we prune those which are known to be not config files.
References alma.acs.config.validators.ConfigFileRedeemer._isNotAConfigFile(), and alma.acs.config.validators.ConfigFileRedeemer.getFileEndings().
Logger alma.acs.config.validators.ConfigFileRedeemer.logger [protected] |