public class HeaderCheck extends AbstractHeaderCheck
| Constructor and Description |
|---|
HeaderCheck() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isMatch(int lineNumber,
String line)
Checks if a code line matches the required header line.
|
protected void |
processFiltered(File file,
List<String> lines)
Called to process a file that matches the specified file extensions.
|
void |
setIgnoreLines(int[] list)
Set the lines numbers to ignore in the header check.
|
finishLocalSetup, getHeaderLines, postprocessHeaderLines, setCharset, setHeader, setHeaderFilebeginProcessing, destroy, finishProcessing, fireErrors, getMessageCollector, getMessageDispatcher, init, log, log, process, setFileExtensions, setMessageDispatchergetCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverityconfigure, contextualize, getConfiguration, setupChildclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigurecontextualizepublic HeaderCheck()
protected boolean isMatch(int lineNumber, String line)
lineNumber - the line number to check against the headerline - the line contentspublic void setIgnoreLines(int[] list)
list - comma separated list of line numbers to ignore in header.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.Copyright © 2001–2015. All rights reserved.