public class RegexpHeaderCheck extends AbstractHeaderCheck
regular expression
for each line of the source header. In default configuration,
if header is not specified, the default value of header is set to null
and the check does not rise any violations.| Constructor and Description |
|---|
RegexpHeaderCheck() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
postProcessHeaderLines()
Hook method for post processing header lines.
|
protected void |
processFiltered(File file,
List<String> lines)
Called to process a file that matches the specified file extensions.
|
void |
setHeader(String header)
Validates the
header by compiling it with
Pattern.compile(String) and throws
PatternSyntaxException if header isn't a valid pattern. |
void |
setMultiLines(int... list)
Set the lines numbers to repeat in the header check.
|
finishLocalSetup, getHeaderLines, setCharset, setHeaderFilebeginProcessing, destroy, finishProcessing, fireErrors, getFileExtensions, 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 RegexpHeaderCheck()
public void setMultiLines(int... list)
list - comma separated list of line numbers to repeat 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.protected void postProcessHeaderLines()
AbstractHeaderCheckpostProcessHeaderLines in class AbstractHeaderCheckpublic void setHeader(String header)
header by compiling it with
Pattern.compile(String) and throws
PatternSyntaxException if header isn't a valid pattern.setHeader in class AbstractHeaderCheckheader - the header value to validate and set (in that order)Copyright © 2001-2015. All Rights Reserved.