public class Feature extends ExtensionPoint
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler| Constructor and Description |
|---|
Feature()
Default mutable constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within
the target extension profile.
|
static ExtensionDescription |
getDefaultDescription(boolean required,
boolean repeatable)
Returns the extension description, specifying whether it is required, and
whether it is repeatable.
|
FeatureName |
getFeatureName()
Returns the feature name.
|
FeatureRate |
getFeatureRate()
Returns the feature rate.
|
boolean |
hasFeatureName()
Returns whether it has the feature name.
|
boolean |
hasFeatureRate()
Returns whether it has the feature rate.
|
void |
setFeatureName(FeatureName featureName)
Sets the feature name.
|
void |
setFeatureRate(FeatureRate featureRate)
Sets the feature rate.
|
java.lang.String |
toString() |
addExtension, addRepeatingExtension, generateCumulativeXmlBlob, getExtension, getExtensions, getHandler, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visitdisableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutablepublic void declareExtensions(ExtensionProfile extProfile)
ExtensionPointdeclareExtensions in class ExtensionPointextProfile - the ExtensionProfile to initialize.public FeatureName getFeatureName()
public void setFeatureName(FeatureName featureName)
featureName - feature name or null to resetpublic boolean hasFeatureName()
public FeatureRate getFeatureRate()
public void setFeatureRate(FeatureRate featureRate)
featureRate - feature rate or null to resetpublic boolean hasFeatureRate()
public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
required - whether it is requiredrepeatable - whether it is repeatablepublic java.lang.String toString()
toString in class java.lang.Object