Class License

java.lang.Object
org.codehaus.mojo.license.model.License

public class License extends Object
The model of a license.
Since:
1.0
Author:
tchemit dev@tchemit.fr
  • Field Details

    • LICENSE_HEADER_FILE

      public static final String LICENSE_HEADER_FILE
      See Also:
    • LICENSE_CONTENT_FILE

      public static final String LICENSE_CONTENT_FILE
      See Also:
    • TEMPLATE_SUFFIX

      public static final String TEMPLATE_SUFFIX
      See Also:
    • baseURL

      protected URL baseURL
      base url of license (directory where to find license files).
    • name

      protected String name
      the name of the licenses (ex lgpl-3.0).
    • description

      protected String description
      the description of the license.
    • licenseURL

      protected URL licenseURL
      url of the license's content.
    • headerURL

      protected URL headerURL
      url of the license header's content.
  • Constructor Details

    • License

      public License()
  • Method Details

    • getName

      public String getName()
    • getLicenseURL

      public URL getLicenseURL()
    • getHeaderURL

      public URL getHeaderURL()
    • getDescription

      public String getDescription()
    • getBaseURL

      public URL getBaseURL()
    • isHeaderContentTemplateAware

      public boolean isHeaderContentTemplateAware()
    • isLicenseContentTemplateAware

      public boolean isLicenseContentTemplateAware()
    • getLicenseContent

      public String getLicenseContent(String encoding) throws IOException
      Throws:
      IOException
    • getHeaderContent

      public String getHeaderContent(String encoding) throws IOException
      Throws:
      IOException
    • setName

      public void setName(String name)
    • setDescription

      public void setDescription(String description)
    • setBaseURL

      public void setBaseURL(URL baseURL)
    • setLicenseURL

      public void setLicenseURL(URL licenseURL)
    • setHeaderURL

      public void setHeaderURL(URL headerURL)
    • toString

      public String toString()
      Overrides:
      toString in class Object