public abstract class AbstractLicense extends Object implements ILicense
EXPIRATION_DATE_KEY, MAXIMUM_VERSION_INCLUDED_KEY, MAXIMUM_VERSION_KEY, MINIMUM_VERSION_INCLUDED_KEY, MINIMUM_VERSION_KEY, OWNER_KEY, PRODUCT_KEY, VERSION_KEY| Constructor and Description |
|---|
AbstractLicense()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getProperty(String key)
Sets the property of the license.
|
Iterable<String> |
getPropertyNames()
Returns all property names.
|
boolean |
hasProperty(String key)
Returns whether the property is set.
|
protected Object |
initProperty(String key,
ILicenseContext context)
Initializes the given property from the context.
|
Object |
removeProperty(String key)
Sets the property of the license.
|
void |
setProperty(String key,
Object value)
Sets the property of the license.
|
protected void |
verifyEqualGreaterThan(String key,
ILicenseContext context,
boolean failIfMissing)
Verifies that the given value of this license is greater than or equal to the property in the context.
|
protected void |
verifyEqualLessThan(String key,
ILicenseContext context,
boolean failIfMissing)
Verifies that the given value of this license is less than or equal to the property in the context.
|
protected void |
verifyEquals(String key,
ILicenseContext context,
boolean failIfMissing)
Verifies that the given value of this license is equal to the property in the context.
|
protected void |
verifyGreaterThan(String key,
ILicenseContext context,
boolean failIfMissing)
Verifies that the given value of this license is greater than the property in the context.
|
protected void |
verifyLessThan(String key,
ILicenseContext context,
boolean failIfMissing)
Verifies that the given value of this license is less than the property in the context.
|
public boolean hasProperty(String key)
protected Object initProperty(String key, ILicenseContext context)
key - key to be used in context and property mapcontext - context to initialize fromprotected void verifyEquals(String key, ILicenseContext context, boolean failIfMissing)
key - key of propertycontext - context containing the comparison valuefailIfMissing - fail the verification when this license has no such valueprotected void verifyGreaterThan(String key, ILicenseContext context, boolean failIfMissing)
key - key of propertycontext - context containing the comparison valuefailIfMissing - fail the verification when this license has no such valueprotected void verifyEqualGreaterThan(String key, ILicenseContext context, boolean failIfMissing)
key - key of propertycontext - context containing the comparison valuefailIfMissing - fail the verification when this license has no such valueprotected void verifyLessThan(String key, ILicenseContext context, boolean failIfMissing)
key - key of propertycontext - context containing the comparison valuefailIfMissing - fail the verification when this license has no such valueprotected void verifyEqualLessThan(String key, ILicenseContext context, boolean failIfMissing)
key - key of propertycontext - context containing the comparison valuefailIfMissing - fail the verification when this license has no such valueCopyright © 2014. All rights reserved.