Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sourcetap.license
Class License  view License download License.java

java.lang.Object
  extended bycom.sourcetap.license.License

public class License
extends java.lang.Object

License Information. Basic information (company Name, email Address, and expiration date) and a license key is encapsulated within.

Version:
$Revision$

Field Summary
private  java.lang.String companyName
           
private  java.lang.String email
           
private  java.util.Date expirationDate
           
 
Constructor Summary
License(java.lang.String licenseKey)
          constructor to create a license from the specified license key
License(java.lang.String companyName, java.lang.String email, java.util.Date expirationDate)
          constructor to create a license from the specified license data.
License(java.lang.String companyName, java.lang.String email, java.lang.String expirationDate)
          constructor to create a license from the specified license data.
 
Method Summary
 java.lang.String getCompanyName()
           
 java.lang.String getEmailAddress()
           
 java.util.Date getExpirationDate()
           
 java.lang.String getExpirationDateString()
           
 java.lang.String getLicenseKey()
           
 boolean isExpired()
          determine if the license is expired.
 void setCompanyName(java.lang.String companyName)
           
 void setEmailAddress(java.lang.String email)
           
 void setExpirationDate(java.util.Date expirationDate)
           
 void setExpirationDate(java.lang.String expirationDateStr)
          parses the string and converts it to a date
 void setLicenseKey(java.lang.String licenseKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

companyName

private java.lang.String companyName

email

private java.lang.String email

expirationDate

private java.util.Date expirationDate
Constructor Detail

License

public License(java.lang.String licenseKey)
        throws LicenseException
constructor to create a license from the specified license key


License

public License(java.lang.String companyName,
               java.lang.String email,
               java.lang.String expirationDate)
        throws LicenseException
constructor to create a license from the specified license data.


License

public License(java.lang.String companyName,
               java.lang.String email,
               java.util.Date expirationDate)
constructor to create a license from the specified license data.

Method Detail

getCompanyName

public java.lang.String getCompanyName()

setCompanyName

public void setCompanyName(java.lang.String companyName)

setLicenseKey

public void setLicenseKey(java.lang.String licenseKey)
                   throws LicenseException

getLicenseKey

public java.lang.String getLicenseKey()

getEmailAddress

public java.lang.String getEmailAddress()

setEmailAddress

public void setEmailAddress(java.lang.String email)

getExpirationDate

public java.util.Date getExpirationDate()

getExpirationDateString

public java.lang.String getExpirationDateString()

setExpirationDate

public void setExpirationDate(java.lang.String expirationDateStr)
                       throws LicenseException
parses the string and converts it to a date


setExpirationDate

public void setExpirationDate(java.util.Date expirationDate)

isExpired

public boolean isExpired()
determine if the license is expired.