| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.mojo.license.header.FileHeader
public class FileHeader
Contract of a file header.
A header has three sections like in this example :Description %-- Copyright (C) firstYear[ - lastYear] holder %-- License
| Field Summary | |
|---|---|
| protected static String | COPYRIGHT_TO_STRING_FORMATCopyright to string format | 
| protected  Integer | copyrightFirstYearCopyright first year of application | 
| protected  String | copyrightHolderCopyright holder | 
| protected  Integer | copyrightLastYearCopyright last year of application (can be nullif copyright is only on one year). | 
| protected  String | descriptionDescription of the project or module to add in header | 
| protected  String | licenseLicense used in the header. | 
| Constructor Summary | |
|---|---|
| FileHeader() | |
| Method Summary | |
|---|---|
|  String | getCopyright()Produces a string representation of the copyright. | 
|  Integer | getCopyrightFirstYear() | 
|  String | getCopyrightHolder() | 
|  Integer | getCopyrightLastYear() | 
|  String | getDescription() | 
|  String | getLicense() | 
|  void | setCopyrightFirstYear(Integer copyrightFirstYear) | 
|  void | setCopyrightHolder(String copyrightHolder) | 
|  void | setCopyrightLastYear(Integer copyrightLastYear) | 
|  void | setDescription(String description) | 
|  void | setLicense(String license) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static final String COPYRIGHT_TO_STRING_FORMAT
protected String description
protected String copyrightHolder
protected Integer copyrightFirstYear
protected Integer copyrightLastYear
protected String license
| Constructor Detail | 
|---|
public FileHeader()
| Method Detail | 
|---|
public String getDescription()
public String getCopyrightHolder()
public Integer getCopyrightFirstYear()
public Integer getCopyrightLastYear()
getCopyrightFirstYear()).public String getCopyright()
Copyright (C) 2010 HolderIf copyright acts on more than one year :
Copyright (C) 2010 - 2012 Holder
public String getLicense()
public void setDescription(String description)
public void setCopyrightHolder(String copyrightHolder)
public void setCopyrightFirstYear(Integer copyrightFirstYear)
public void setCopyrightLastYear(Integer copyrightLastYear)
public void setLicense(String license)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||