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> lines,
String keyName)
Method returns line number the key is detected in the checked properties
files first.
|
protected void |
processFiltered(File file,
List<String> lines)
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 file, List<String> lines)
AbstractFileSetCheckprocessFiltered in class AbstractFileSetCheckfile - the file to be processedlines - an immutable list of the contents of the file.protected int getLineNumber(List<String> lines, String keyName)
lines - properties file lines listkeyName - key name to look forCopyright © 2001–2015. All rights reserved.