Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

Inheritance diagram for alma::acs::config::validators::ConfigFileRedeemer:

Inheritance 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]
 

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.

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.

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.


Member Data Documentation

Logger alma::acs::config::validators::ConfigFileRedeemer::logger [protected]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:52:21 2009 for ACS Java API by doxygen 1.3.8