public class LicenseComponent extends Object implements Serializable
Constructor and Description |
---|
LicenseComponent(String function,
String version,
long capacity,
boolean hardLimited)
Create a new LicenseComponent with the specified function, version, and
capacity.
|
Modifier and Type | Method and Description |
---|---|
void |
checkValidity()
Throws a LicenseException if this LicenseComponent is not valid.
|
long |
getCapacity()
Returns the capacity for this LicenseComponent.
|
String |
getFunction()
Returns the function for this LicenseComponent.
|
boolean |
getHardLimited()
Returns whether the capacity of this LicenseComponent can be exceeded or
not.
|
String |
getVersion()
Returns the version for this LicenseComponent.
|
String |
toString() |
public LicenseComponent(String function, String version, long capacity, boolean hardLimited) throws LicenseException
function
- the functionversion
- the versioncapacity
- the capacityhardLimited
- whether the capacity of the license can be exceeded (false) or
not (true).LicenseException
- if an invalid function, version, or capacity was specified.public void checkValidity() throws LicenseException
LicenseException
public String getFunction()
public String getVersion()
public long getCapacity()
public boolean getHardLimited()