|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jp.protection.priv.products.ProductFeature
public class ProductFeature
This class represents single feature of the product
Field Summary | |
---|---|
protected boolean |
fEnabled
|
protected boolean |
fEvaluationEnabled
|
protected boolean |
fExpiredEnabled
|
protected boolean |
fExpiredEvaluationEnabled
|
protected java.lang.String |
fID
|
protected boolean |
fInvalidEnabled
|
protected ProductFeature |
fMasterProductFeature
|
protected java.lang.String |
fName
|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
ProductFeature()
Creates a new instance of the ProductFeature |
|
ProductFeature(ProductFeature aMasterProductFeature)
Creates a new instance of the ProductFeature that will be a feature of
product edition and attaches it to the "master" product feature. |
Method Summary | |
---|---|
ProductFeature |
cloneProductFeature()
Returns a copy of this product's feature |
ProductFeature |
cloneProductFeature(Product aProduct)
Returns a copy of this product's feature. |
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getID()
Returns identifier |
ProductFeature |
getMasterProductFeature()
Returns "master" product feature |
java.lang.String |
getName()
Return feature's name; master's feature name for "slave" product feature |
java.lang.String |
getNameStr()
Returns feature's name of "N/A" if its name is not yet specified |
boolean |
isEnabled()
Returns whether this feature is enabled for the valid commercial license |
boolean |
isEvaluationEnabled()
Returns whether this feature is enabled for the valid evaluation license |
boolean |
isExpiredEnabled()
Returns whether this feature is enabled for the expired commercial license |
boolean |
isExpiredEvaluationEnabled()
Returns whether this feature is enabled for the expired evaluation license |
boolean |
isInvalidEnabled()
Returns whether this feature is enabled for an invalid license |
void |
putProductFeature(LicenseImpl aLicense)
Puts this product's feature "enabled" attibutes into the specified license |
void |
setEnabled(boolean aEnabled)
Specifies this feature should be enabled for the valid commercial license |
void |
setEvaluationEnabled(boolean aEvaluationEnabled)
Specifies that this feature should be enabled for the valid evaluation license |
void |
setExpiredEnabled(boolean anExpiredEnabled)
Specifies that this feature should enabled for the expired commercial license |
void |
setExpiredEvaluationEnabled(boolean anExpiredEvaluationEnabled)
Specifies that this feature should be enabled for the expired evaluation license |
void |
setID(java.lang.String aID)
Specifies identifier |
void |
setInvalidEnabled(boolean aInvalidEnabled)
Specifies that this feature should be enabled for an invalid license |
void |
setName(java.lang.String aName)
Specifies name of the feature |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
protected java.lang.String fName
protected java.lang.String fID
protected boolean fEnabled
protected boolean fEvaluationEnabled
protected boolean fExpiredEnabled
protected boolean fExpiredEvaluationEnabled
protected boolean fInvalidEnabled
protected ProductFeature fMasterProductFeature
Constructor Detail |
---|
public ProductFeature()
ProductFeature
public ProductFeature(ProductFeature aMasterProductFeature)
ProductFeature
that will be a feature of
product edition and attaches it to the "master" product feature. Such a "slave"
product feature holds only "enabled" values while all other attributes come from "master"
product feature.
aMasterProductFeature
- "master" product featureMethod Detail |
---|
public boolean isInvalidEnabled()
true
if this feature is enabled for an invalid license; false
otherwisepublic void setInvalidEnabled(boolean aInvalidEnabled)
aInvalidEnabled
- enabled valuepublic boolean isExpiredEnabled()
true
if this feature is enabled for the expired commercial license;
false
otherwisepublic void setExpiredEnabled(boolean anExpiredEnabled)
anExpiredEnabled
- enabled valuepublic boolean isExpiredEvaluationEnabled()
true
if this feature is enabled for the expired evaluation license;
false
otherwisepublic void setExpiredEvaluationEnabled(boolean anExpiredEvaluationEnabled)
anExpiredEvaluationEnabled
- enabled valuepublic boolean isEvaluationEnabled()
true
if this feature is enabled for the valid evaluation license;
false
otherwisepublic void setEvaluationEnabled(boolean aEvaluationEnabled)
aEvaluationEnabled
- enabled valuepublic java.lang.String getID()
public void setID(java.lang.String aID)
aID
- identifierpublic void setName(java.lang.String aName)
aName
- name of the featurepublic ProductFeature getMasterProductFeature()
public boolean isEnabled()
true
if this feature is enabled for the valid commercial license;
false
otherwisepublic void setEnabled(boolean aEnabled)
aEnabled
- enabled valuepublic java.lang.String getNameStr()
public java.lang.String getName()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public ProductFeature cloneProductFeature()
ProductFeature
public ProductFeature cloneProductFeature(Product aProduct)
aProduct
- a product
ProductFeature
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void putProductFeature(LicenseImpl aLicense)
aLicense
- license to put feature to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |