Public Member Functions | Protected Member Functions | Protected Attributes

alma.acs.config.validators.ConfigFileRedeemer Class Reference

Inheritance diagram for alma.acs.config.validators.ConfigFileRedeemer:
alma.acs.config.validators.ConfigFileRedeemerFilepath alma.acs.config.validators.ConfigFileRedeemerTestDir alma.acs.config.validators.ConfigFileRedeemerXml

List of all members.

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

Constructor & Destructor Documentation

alma.acs.config.validators.ConfigFileRedeemer.ConfigFileRedeemer ( Logger  logger  ) 

Member Function Documentation

abstract boolean alma.acs.config.validators.ConfigFileRedeemer._isNotAConfigFile ( File  file  )  [protected, pure virtual]
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 '.'.

Returns:

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().


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties