@Component(role=FileHeaderFilter.class, hint="update-file-header") public class UpdateFileHeaderFilter extends FileHeaderFilter
FileHeaderFilter to update an incoming header.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
updateCopyright
Flag sets to
true if copyright can be updated. |
protected boolean |
updateDescription
Flag sets to
true if description can be updated. |
protected boolean |
updateLicense
Flag set to
true if license can be updated. |
detectHeader, fileHeader, fullHeaderContent, headerContent, log, modified, processTagHeaderContent, touched, transformer| Constructor and Description |
|---|
UpdateFileHeaderFilter()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected FileHeader |
getNewHeader(FileHeader oldHeader)
Obtains the new header to use according to the old one.
|
boolean |
isUpdateCopyright() |
boolean |
isUpdateDescription() |
boolean |
isUpdateLicense() |
void |
setUpdateCopyright(boolean updateCopyright) |
void |
setUpdateDescription(boolean updateDescription) |
void |
setUpdateLicense(boolean updateLicense) |
changeState, getFileHeader, getFooter, getFullHeaderContent, getHeader, getHeaderContent, getLog, getProcessTagHeaderContent, getTransformer, isDetectHeader, isModified, isTouched, performInFilter, performOutFilter, reset, resetContent, setFileHeader, setLog, setTransformerprotected boolean updateDescription
true if description can be updated.protected boolean updateLicense
true if license can be updated.protected boolean updateCopyright
true if copyright can be updated.protected FileHeader getNewHeader(FileHeader oldHeader)
null.getNewHeader in class FileHeaderFilteroldHeader - the old header found in file.null if header is still the same, otherwise the new header to applypublic boolean isUpdateCopyright()
public void setUpdateCopyright(boolean updateCopyright)
public boolean isUpdateDescription()
public void setUpdateDescription(boolean updateDescription)
public boolean isUpdateLicense()
public void setUpdateLicense(boolean updateLicense)
Copyright © 2010–2014 Codehaus. All rights reserved.