public class Feature extends FeatureIdentifier
Modifier and Type | Class and Description |
---|---|
static class |
Feature.CustomProperty
Represents a custom property of a feature.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FEATURE_TYPE_PROPERTY |
static java.lang.String |
RUNTIME_FEATURE_PROPERTY |
static java.lang.String |
TYPE_APPFRAGMENT |
static java.lang.String |
TYPE_CUSTOM |
static java.lang.String |
TYPE_ENGINEERINGBUILD |
static java.lang.String |
TYPE_HOTFIX |
static java.lang.String |
TYPE_PRODUCT |
static java.lang.String |
TYPE_RESOURCEADAPTER |
Constructor and Description |
---|
Feature()
Default constructor for data binding.
|
Feature(java.lang.String featureType,
java.lang.String name,
java.lang.String componentID,
java.lang.String versionNumber,
java.lang.String description,
boolean readOnly,
Feature.CustomProperty[] customProperties)
Construct a feature that is not owned by a product.
|
Feature(java.lang.String featureType,
java.lang.String name,
java.lang.String componentID,
java.lang.String versionNumber,
java.lang.String description,
boolean readOnly,
java.lang.String productName,
java.lang.String productVersion,
Feature.CustomProperty[] customProperties)
Construct a product feature.
|
Modifier and Type | Method and Description |
---|---|
Feature.CustomProperty[] |
getCustomProperties() |
java.lang.String |
getDescription()
Get the description of the feature.
|
java.lang.String |
getFeatureType()
Get the feature type.
|
long |
getId() |
java.lang.String[] |
getMemberBundles() |
java.lang.String |
getName()
Get the feature name.
|
java.lang.String |
getProductName()
Get the product name that owns this feature.
|
java.lang.String |
getProductVersion()
Get the product version that owns this product feature.
|
java.lang.String |
getType() |
boolean |
isProvisioned() |
boolean |
isReadOnly()
Determine whether this feature was returned by a read only staging area.
|
boolean |
isSelected() |
void |
setCustomProperties(Feature.CustomProperty[] customProperties) |
void |
setDescription(java.lang.String description)
Set the optional description of the feature.
|
void |
setFeatureType(java.lang.String featureType)
Set the type of the feature.
|
void |
setId(long id) |
void |
setMemberBundles(java.lang.String[] memberBundles) |
void |
setName(java.lang.String name)
Set the name of the feature.
|
void |
setProductName(java.lang.String productName)
Set the name of the product that owns this feature
|
void |
setProductVersion(java.lang.String productVersion)
Set the version of the product that owns this product feature.
|
void |
setProvisioned(boolean provisioned) |
void |
setReadOnly(boolean readOnly)
Set whether this feature is read only.
|
void |
setSelected(boolean selected) |
void |
setType(java.lang.String type) |
equals, getComponentID, getDescriptiveName, getProvisionType, getVersion, hashCode, isCompleteVersion, setCompleteVersion, setComponentID, setDescriptiveName, setProvisionType, setVersion, toString
public static final java.lang.String FEATURE_TYPE_PROPERTY
public static final java.lang.String RUNTIME_FEATURE_PROPERTY
public static final java.lang.String TYPE_CUSTOM
public static final java.lang.String TYPE_PRODUCT
public static final java.lang.String TYPE_HOTFIX
public static final java.lang.String TYPE_ENGINEERINGBUILD
public static final java.lang.String TYPE_APPFRAGMENT
public static final java.lang.String TYPE_RESOURCEADAPTER
public Feature(java.lang.String featureType, java.lang.String name, java.lang.String componentID, java.lang.String versionNumber, java.lang.String description, boolean readOnly, java.lang.String productName, java.lang.String productVersion, Feature.CustomProperty[] customProperties)
featureType
- Typically will be Feature.Type.Product but might be Hotfix or EngineeringBuild.name
- name of the feature to be displayed to userscomponentID
- identifier of the component that the feature providesversionNumber
- version of the featuredescription
- optional description.readOnly
- determine if the feature is read-only. If not then it can be removed from the staging area.productName
- name of the product that owns the feature.productVersion
- version of the product that owns the feature.public Feature(java.lang.String featureType, java.lang.String name, java.lang.String componentID, java.lang.String versionNumber, java.lang.String description, boolean readOnly, Feature.CustomProperty[] customProperties)
featureType
- The type of the feature.name
- name of the feature to be displayed to userscomponentID
- identifier of the component that the feature providesversionNumber
- version of the featuredescription
- optional description.readOnly
- determine if the feature is read-only. If not then it can be removed from the staging area.public Feature()
public long getId()
public void setId(long id)
public java.lang.String getFeatureType()
public java.lang.String getName()
public java.lang.String getDescription()
public void setName(java.lang.String name)
name
- non-null name.public java.lang.String getType()
public void setType(java.lang.String type)
public void setDescription(java.lang.String description)
description
- public void setFeatureType(java.lang.String featureType)
featureType
- non null type of feature.public java.lang.String getProductName()
public void setProductName(java.lang.String productName)
productName
- public java.lang.String getProductVersion()
public void setProductVersion(java.lang.String productVersion)
productVersion
- if one has been set.public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
readOnly
- public boolean isSelected()
public void setSelected(boolean selected)
public boolean isProvisioned()
public void setProvisioned(boolean provisioned)
public java.lang.String[] getMemberBundles()
public void setMemberBundles(java.lang.String[] memberBundles)
public Feature.CustomProperty[] getCustomProperties()
public void setCustomProperties(Feature.CustomProperty[] customProperties)