org.nuiton.license
Class License

java.lang.Object
  extended by 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)
 
Constructor Summary
License()
           
 
Method Summary
 java.lang.String getHeaderContent(java.lang.String encoding)
           
 java.net.URL getHeaderURL()
           
 java.lang.String getLicenseContent(java.lang.String encoding)
           
 java.net.URL getLicenseURL()
           
 java.lang.String getName()
           
 void setHeaderURL(java.net.URL headerURL)
           
 void setLicenseURL(java.net.URL licenseURL)
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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

Constructor Detail

License

public License()
Method Detail

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.