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, setMessageDispatcher
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure
contextualize
public static final String MSG_KEY
public static final String IO_EXCEPTION_KEY
public UniquePropertiesCheck()
protected void processFiltered(File file, List<String> lines)
AbstractFileSetCheck
processFiltered
in class AbstractFileSetCheck
file
- 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.