org.nuiton.license
Class License
java.lang.Object
org.nuiton.license.License
public class License
- extends java.lang.Object
The model of a license.
- Author:
- chemit
|
Field Summary |
protected java.net.URL |
headerURL
url of the header's template |
protected java.net.URL |
licenseURL
url of the license's content |
protected java.lang.String |
name
the name of the licenses (ex lgpl-3.0) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
protected java.lang.String name
- the name of the licenses (ex lgpl-3.0)
licenseURL
protected java.net.URL licenseURL
- url of the license's content
headerURL
protected java.net.URL headerURL
- url of the header's template
License
public License()
getName
public java.lang.String getName()
getLicenseURL
public java.net.URL getLicenseURL()
getHeaderURL
public java.net.URL getHeaderURL()
getLicenseContent
public java.lang.String getLicenseContent(java.lang.String encoding)
throws java.io.IOException
- Throws:
java.io.IOException
getHeaderContent
public java.lang.String getHeaderContent(java.lang.String encoding)
throws java.io.IOException
- Throws:
java.io.IOException
setName
public void setName(java.lang.String name)
setLicenseURL
public void setLicenseURL(java.net.URL licenseURL)
setHeaderURL
public void setHeaderURL(java.net.URL headerURL)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2009 CodeLutin. All Rights Reserved.