public class Feature extends CarbonArtifact
| Constructor and Description |
|---|
Feature() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFeatureVersion()
Returns the Feature version in OSGI format.
|
String |
getId()
Returns the feature id represented by this Feature.
|
boolean |
isOptional()
Returns whether this particular feature is optional or not.
|
void |
setId(String id)
Sets the feature version for the given feature.
|
void |
setOptional(boolean optional)
Sets whether this feature is optional or not.
|
copyTo, getArtifact, getArtifactId, getBundleVersion, getCompatibility, getGroupId, getSymbolicName, getType, getVersion, setArtifact, setArtifactId, setBundleVersion, setCompatibility, setGroupId, setSymbolicName, setType, setVersionpublic String getId()
If the name of the feature id ends with '.feature', then '.feature' word is removed and the result is returned.
public void setId(String id)
id - Stringpublic boolean isOptional()
public void setOptional(boolean optional)
Note: There is no usage of this method in the plugin code. However, this is used by plexus container to inject the value.
optional - booleanpublic String getFeatureVersion()
i.e: If the maven version for this artifact is 4.2.0-SNAPSHOT, this will return 4.2.0.SNAPSHOT
Copyright © 2015 WSO2. All rights reserved.