public final class CrossLanguageRegexpHeaderCheck extends AbstractFileSetCheck
RegexpHeaderCheck,
but works for all text files, not just java code.| Constructor and Description |
|---|
CrossLanguageRegexpHeaderCheck()
Creates a new instance and initializes the file extentions
to the default value, which represents most of the typical
text files that require a copyright header.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finishLocalSetup()
Checks that required args were specified.
|
void |
process(File[] aFiles)
Processes a set of files and fires errors to the MessageDispatcher.
|
void |
setHeader(String aHeader)
Set the header to check against.
|
void |
setHeaderFile(String aFileName)
Set the header file to check against.
|
void |
setMultiLines(int[] aList)
Set the lines numbers to repeat in the header check.
|
destroy, filter, fireErrors, getCharset, getMessageCollector, getMessageDispatcher, log, log, setCharset, setFileExtensions, setMessageDispatchergetId, getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, setId, setSeverityconfigure, contextualize, getConfiguration, setupChildclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigurecontextualizepublic CrossLanguageRegexpHeaderCheck()
public void setMultiLines(int[] aList)
aList - comma separated list of line numbers to repeat in header.public void setHeaderFile(String aFileName) throws org.apache.commons.beanutils.ConversionException
aFileName - the file that contains the header to check against.org.apache.commons.beanutils.ConversionException - if the file cannot be loadedpublic void setHeader(String aHeader)
aHeader - header content to check against.org.apache.commons.beanutils.ConversionException - if the header cannot be interpretedprotected void finishLocalSetup()
throws CheckstyleException
finishLocalSetup in class AutomaticBeanCheckstyleException - if there is a configuration error.AutomaticBean.finishLocalSetup()public void process(File[] aFiles)
aFiles - the files to be audited.FileSetCheck.destroy()