Class UpdateFileHeaderFilter

java.lang.Object
org.nuiton.processor.filters.DefaultFilter
org.codehaus.mojo.license.header.FileHeaderFilter
org.codehaus.mojo.license.header.UpdateFileHeaderFilter
All Implemented Interfaces:
org.nuiton.processor.filters.Filter

public class UpdateFileHeaderFilter extends FileHeaderFilter
Implementation of FileHeaderFilter to update an incoming header.
Since:
1.0
Author:
tchemit dev@tchemit.fr
  • Constructor Details

    • UpdateFileHeaderFilter

      public UpdateFileHeaderFilter()
  • Method Details

    • getNewHeader

      protected FileHeader getNewHeader(FileHeader oldHeader)
      Description copied from class: FileHeaderFilter
      Obtains the new header to use according to the old one. Note: If the new header should not be updated, then the result is null.
      Specified by:
      getNewHeader in class FileHeaderFilter
      Parameters:
      oldHeader - the old header found in file.
      Returns:
      null if header is still the same, otherwise the new header to apply
    • setUpdateCopyright

      public void setUpdateCopyright(boolean updateCopyright)
    • setUpdateDescription

      public void setUpdateDescription(boolean updateDescription)
    • setUpdateLicense

      public void setUpdateLicense(boolean updateLicense)