public interface FileSetCheck extends Configurable, Contextualizable
修飾子とタイプ | メソッドと説明 |
---|---|
void |
beginProcessing(String aCharset)
Called when about to be called to process a set of files.
|
void |
destroy()
Cleans up the object.
|
void |
finishProcessing()
Called when all the files have been processed.
|
void |
init()
Initialise the instance.
|
TreeSet<LocalizedMessage> |
process(File aFile,
List<String> aLines)
Request to process a file.
|
void |
setMessageDispatcher(MessageDispatcher aDispatcher)
Sets the MessageDispatcher that is used to dispatch error
messages to AuditListeners during processing.
|
configure
contextualize
void setMessageDispatcher(MessageDispatcher aDispatcher)
aDispatcher
- the dispatchervoid init()
void destroy()
void beginProcessing(String aCharset)
aCharset
- the character set used to read the files.TreeSet<LocalizedMessage> process(File aFile, List<String> aLines)
The file set to process might contain files that are not interesting to the FileSetCheck. Such files should be ignored, no error message should be fired for them. For example a FileSetCheck that checks java files should ignore HTML or properties files.
The method should return the set of messages to be logged.
aFile
- the file to be processedaLines
- an immutable list of the contents of the file.void finishProcessing()
Copyright © 2001-2013. All Rights Reserved.