alma::acs::config::validators::ConfigFileRedeemer Class Reference

Inheritance diagram for alma::acs::config::validators::ConfigFileRedeemer:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::config::validators::ConfigFileRedeemer:
Collaboration graph
[legend]

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  )  [inline]

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

String alma::acs::config::validators::ConfigFileRedeemer::getName (  )  [inline]
final boolean alma::acs::config::validators::ConfigFileRedeemer::isNotAConfigFile ( File  file  )  [inline]

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 _isNotAConfigFile(), and getFileEndings().

Referenced by alma::acs::config::validators::ConfigFileFinder::runRecursive().


Member Data Documentation


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2