com.puppycrawl.tools.checkstyle.checks
Class TranslationCheck
java.lang.Object
com.puppycrawl.tools.checkstyle.api.AutomaticBean
com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
com.puppycrawl.tools.checkstyle.checks.TranslationCheck
- All Implemented Interfaces:
- Configurable, Contextualizable, FileSetCheck
public class TranslationCheck
- extends AbstractFileSetCheck
The TranslationCheck class helps to ensure the correct translation of code by
checking property files for consistency regarding their keys.
Two property files describing one and the same context are consistent if they
contain the same keys.
An example of how to configure the check is:
<module name="Translation"/>
- Author:
- Alexandra Bunge, lkuehne
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TranslationCheck
public TranslationCheck()
- Creates a new
TranslationCheck
instance.
beginProcessing
public void beginProcessing(String aCharset)
- Description copied from class:
AbstractFileSetCheck
- Called when about to be called to process a set of files.
- Specified by:
beginProcessing
in interface FileSetCheck
- Overrides:
beginProcessing
in class AbstractFileSetCheck
- Parameters:
aCharset
- the character set used to read the files.
processFiltered
protected void processFiltered(File aFile,
List<String> aLines)
- Description copied from class:
AbstractFileSetCheck
- Called to process a file that matches the specified file extensions.
- Specified by:
processFiltered
in class AbstractFileSetCheck
- Parameters:
aFile
- the file to be processedaLines
- an immutable list of the contents of the file.
finishProcessing
public void finishProcessing()
- Description copied from class:
AbstractFileSetCheck
- Called when all the files have been processed. This is the time to
perform any checks that need to be done across a set of files. In this
method, the implementation is responsible for the logging of messages.
- Specified by:
finishProcessing
in interface FileSetCheck
- Overrides:
finishProcessing
in class AbstractFileSetCheck
Copyright © 2001-2012. All Rights Reserved.