biz.onixs.fix.engine
Class License

java.lang.Object
  extended by biz.onixs.fix.engine.License

public abstract class License
extends Object

Base license implementation.


Nested Class Summary
static class License.Customer
          License customer.
static class License.Product
          Licensed product.
static class License.Type
          License type.
 
Constructor Summary
License()
           
 
Method Summary
 License.Customer getCustomer()
          Returns license customer.
 int getDaysLeft()
          Returns the number of days left until license is expired.
 org.joda.time.Interval getInterval()
          Returns license validity interval.
 License.Type getType()
          Returns license type.
 String getVersion()
          Returns license version.
 boolean isExpired()
          Returns whether license is expired.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

License

public License()
Method Detail

getVersion

public String getVersion()
Returns license version.

Returns:
license version

getType

public License.Type getType()
Returns license type.

Returns:
license type

getCustomer

public License.Customer getCustomer()
Returns license customer.

Returns:
license customer

getInterval

public org.joda.time.Interval getInterval()
Returns license validity interval.

Returns:
license validity interval

isExpired

public boolean isExpired()
Returns whether license is expired.

Returns:
whether license is expired

getDaysLeft

public int getDaysLeft()
Returns the number of days left until license is expired.

Returns:
number of days left until license is expired

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2012 Onix Solutions. All Rights Reserved.