planetj.dataengine
Class Feature

java.lang.Object
  |
  +--planetj.dataengine.Feature
All Implemented Interfaces:
IFeature
Direct Known Subclasses:
IFeature.OperationCountFeature

public class Feature
extends Object
implements IFeature

Identifies a DataEngine feature


Nested Class Summary
 
Nested classes inherited from class planetj.dataengine.IFeature
IFeature.OperationCountFeature
 
Field Summary
 
Fields inherited from interface planetj.dataengine.IFeature
DEFAULT_MESSAGE_FEATURE, FEATURE_DELETE, FEATURE_INSERT, FEATURE_LEVEL_ENTERPRISE, FEATURE_LEVEL_ENTRY, FEATURE_LEVEL_PROFESSIONAL, FEATURE_LEVEL_STANDARD, FEATURE_UPDATE, MESSAGE_END, MESSAGE_START
 
Constructor Summary
Feature()
          Feature constructor
Feature(int level, String displayName)
          Feature constructor
 
Method Summary
 StringBuffer appendUnsupportedHTMLMessage(StringBuffer sb)
          Gets the HTML to display when this feature is used but not supported
 String getDisplayName()
          Gets the test which identifies this feature in display messages
 int getFeatureLevel()
          Gets the feature level of this feature
 boolean isApplicable()
          Tests if this feature is applicable
 void setApplicable(boolean b)
          Sets if this feature is applicable
 void setDisplayName(String newFeatureDisplayName)
          Sets the test which identifies this feature in display messages
 void setFeatureLevel(int newFeatureLevel)
          Sets the feature level of this feature
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Feature

public Feature()
Feature constructor


Feature

public Feature(int level,
               String displayName)
Feature constructor

Method Detail

appendUnsupportedHTMLMessage

public StringBuffer appendUnsupportedHTMLMessage(StringBuffer sb)
Gets the HTML to display when this feature is used but not supported

Specified by:
appendUnsupportedHTMLMessage in interface IFeature

getDisplayName

public String getDisplayName()
Gets the test which identifies this feature in display messages


getFeatureLevel

public int getFeatureLevel()
Gets the feature level of this feature

Specified by:
getFeatureLevel in interface IFeature

isApplicable

public boolean isApplicable()
                     throws CMException
Tests if this feature is applicable

Specified by:
isApplicable in interface IFeature
CMException

setApplicable

public void setApplicable(boolean b)
Sets if this feature is applicable


setDisplayName

public void setDisplayName(String newFeatureDisplayName)
Sets the test which identifies this feature in display messages


setFeatureLevel

public void setFeatureLevel(int newFeatureLevel)
Sets the feature level of this feature