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"/>
DEFAULT_ERROR_SCORE, DEFAULT_INFO_SCORE, DEFAULT_WARNING_SCORE, mScoring, mViolationSize
コンストラクタと説明 |
---|
TranslationCheck()
Creates a new
TranslationCheck instance. |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
beginProcessing(String aCharset)
Called when about to be called to process a set of files.
|
void |
finishProcessing()
Called when all the files have been processed.
|
protected void |
processFiltered(File aFile,
List<String> aLines)
Called to process a file that matches the specified file extensions.
|
destroy, fireErrors, getMessageCollector, getMessageDispatcher, init, log, log, process, setFileExtensions, setMessageDispatcher
calculateScore, getCustomMessages, getErrorScore, getId, getInfoScore, getMessageBundle, getScore, getScoring, getSeverity, getSeverityLevel, getWarningScore, log, setErrorScore, setId, setInfoScore, setScore, setScoring, setSeverity, setWarningScore
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure
contextualize
public void beginProcessing(String aCharset)
AbstractFileSetCheck
beginProcessing
インタフェース内 FileSetCheck
beginProcessing
クラス内 AbstractFileSetCheck
aCharset
- the character set used to read the files.protected void processFiltered(File aFile, List<String> aLines)
AbstractFileSetCheck
processFiltered
クラス内 AbstractFileSetCheck
aFile
- the file to be processedaLines
- an immutable list of the contents of the file.public void finishProcessing()
AbstractFileSetCheck
finishProcessing
インタフェース内 FileSetCheck
finishProcessing
クラス内 AbstractFileSetCheck
Copyright © 2001-2013. All Rights Reserved.