public class Feature extends Object implements Comparable<Feature>
ArtifactId
| Constructor and Description |
|---|
Feature(ArtifactId id)
Construct a new feature.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Feature o) |
Feature |
copy()
Create a copy of the feature
|
Feature |
copy(ArtifactId id)
Create a copy of the feature with a different id
|
boolean |
equals(Object obj) |
Bundles |
getBundles()
Get the bundles.
|
List<org.osgi.resource.Capability> |
getCapabilities()
Get the list of capabilities.
|
Configurations |
getConfigurations()
Get the configurations.
|
String |
getDescription()
Get the description
|
Extensions |
getExtensions()
Get the list of extensions.
|
KeyValueMap |
getFrameworkProperties()
Get the framework properties
The returned object is modifiable.
|
ArtifactId |
getId()
Get the id of the artifact.
|
List<Include> |
getIncludes()
Get the list of includes.
|
String |
getLicense()
Get the license
|
String |
getLocation()
Get the location.
|
List<org.osgi.resource.Requirement> |
getRequirements()
Get the list of requirements.
|
String |
getTitle()
Get the title
|
KeyValueMap |
getVariables()
Obtain the variables of the feature
|
String |
getVendor()
Get the vendor
|
int |
hashCode() |
boolean |
isAssembled()
Check whether the feature is already assembled
|
void |
setAssembled(boolean flag)
Set the assembled flag
|
void |
setDescription(String description)
Set the description
|
void |
setLicense(String license)
Set the vendor
|
void |
setLocation(String value)
Set the location.
|
void |
setTitle(String title)
Set the title
|
void |
setVendor(String vendor)
Set the vendor
|
String |
toString() |
public Feature(ArtifactId id)
id - The id of the feature.IllegalArgumentException - If id is null.public ArtifactId getId()
public String getLocation()
null.public void setLocation(String value)
value - The new location.public Bundles getBundles()
public Configurations getConfigurations()
public KeyValueMap getFrameworkProperties()
public List<org.osgi.resource.Requirement> getRequirements()
public List<org.osgi.resource.Capability> getCapabilities()
public List<Include> getIncludes()
public Extensions getExtensions()
public String getTitle()
nullpublic void setTitle(String title)
title - The titlepublic String getDescription()
nullpublic void setDescription(String description)
description - The descriptionpublic KeyValueMap getVariables()
public String getVendor()
nullpublic void setVendor(String vendor)
vendor - The vendorpublic String getLicense()
nullpublic void setLicense(String license)
license - The licensepublic boolean isAssembled()
true if it is assembled, false if it needs to be assembledpublic void setAssembled(boolean flag)
flag - The flagpublic Feature copy()
public Feature copy(ArtifactId id)
id - The new idpublic int compareTo(Feature o)
compareTo in interface Comparable<Feature>Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.