Package org.codehaus.mojo.license.header
Class FileHeader
java.lang.Object
org.codehaus.mojo.license.header.FileHeader
Contract of a file header.
A header has three sections like in this example :
Description %-- Copyright (C) firstYear[ - lastYear] holder %-- License
- Since:
- 1.0
- Author:
- tchemit dev@tchemit.fr
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setCopyright
(Copyright copyright) void
setDescription
(String description) void
setLicense
(String license)
-
Field Details
-
description
Description of the project or module to add in header. -
copyright
Copyright model. -
license
License used in the header.
-
-
Constructor Details
-
FileHeader
public FileHeader()
-
-
Method Details
-
getDescription
- Returns:
- the project name, or nay other common informations for all files of a project (or module)
-
getCopyright
- Returns:
- the copyright model.
-
getLicense
- Returns:
- the license content (this is not the fully license content, but just a per file license resume)
-
setCopyright
-
setDescription
-
setLicense
-