org.nuiton.license.plugin.repository
Class License

java.lang.Object
  extended by org.nuiton.license.plugin.repository.License

public class License
extends Object

The model of a license.

Author:
chemit

Field Summary
protected  String description
          the description of the license
protected  URL headerURL
          url of the header's template
protected  URL licenseURL
          url of the license's content
protected  String name
          the name of the licenses (ex lgpl-3.0)
 
Constructor Summary
License()
           
 
Method Summary
 String getDescription()
           
 String getHeaderContent(String encoding)
           
 URL getHeaderURL()
           
 String getLicenseContent(String encoding)
           
 URL getLicenseURL()
           
 String getName()
           
 void setDescription(String description)
           
 void setHeaderURL(URL headerURL)
           
 void setLicenseURL(URL licenseURL)
           
 void setName(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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 header's template

Constructor Detail

License

public License()
Method Detail

getName

public String getName()

getLicenseURL

public URL getLicenseURL()

getHeaderURL

public URL getHeaderURL()

getDescription

public String getDescription()

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)

setLicenseURL

public void setLicenseURL(URL licenseURL)

setHeaderURL

public void setHeaderURL(URL headerURL)

setDescription

public void setDescription(String description)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2010 CodeLutin. All Rights Reserved.