public class UniquePropertiesCheck extends AbstractFileSetCheck
| Modifier and Type | Field and Description |
|---|---|
static String |
IO_EXCEPTION_KEY
Localization key for IO exception occurred on file open.
|
static String |
MSG_KEY
Localization key for check violation.
|
| Constructor and Description |
|---|
UniquePropertiesCheck()
Construct the check with default values.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getLineNumber(List<String> aLines,
String aKeyNane)
Method returns line number the key is detected in the checked properties
files first.
|
protected void |
processFiltered(File aFile,
List<String> aLines)
Called to process a file that matches the specified file extensions.
|
beginProcessing, destroy, finishProcessing, fireErrors, getMessageCollector, getMessageDispatcher, init, log, log, process, setFileExtensions, setMessageDispatchergetCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverityconfigure, contextualize, finishLocalSetup, getConfiguration, setupChildclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigurecontextualizepublic static final String MSG_KEY
public static final String IO_EXCEPTION_KEY
public UniquePropertiesCheck()
protected void processFiltered(File aFile, List<String> aLines)
AbstractFileSetCheckprocessFiltered in class AbstractFileSetCheckaFile - the file to be processedaLines - an immutable list of the contents of the file.protected int getLineNumber(List<String> aLines, String aKeyNane)
aLines - properties file lines listaKeyNane - key name to look forCopyright © 2001-2014. All Rights Reserved.