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 For contained items like
bundles, artifacts and configurations a copy is created as well.
|
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.
|
Map<String,String> |
getFrameworkProperties()
Get the framework properties
The returned object is modifiable.
|
ArtifactId |
getId()
Get the id of the artifact.
|
String |
getLicense()
Get the license
|
String |
getLocation()
Get the location.
|
Prototype |
getPrototype()
Get the optional prototype feature.
|
List<MatchingRequirement> |
getRequirements()
Get the list of requirements.
|
String |
getTitle()
Get the title
|
Map<String,String> |
getVariables()
Obtain the variables of the feature
|
String |
getVendor()
Get the vendor
|
int |
hashCode() |
boolean |
isAssembled()
Check whether the feature is already assembled
|
boolean |
isComplete()
Check whether the feature is complete.
|
boolean |
isFinal()
Check whether the feature is final.
|
void |
setAssembled(boolean flag)
Set the assembled flag
|
void |
setComplete(boolean flag)
Set the complete flag
|
void |
setDescription(String description)
Set the description
|
void |
setFinal(boolean flag)
Set the final flag
|
void |
setLicense(String license)
Set the vendor
|
void |
setLocation(String value)
Set the location.
|
void |
setPrototype(Prototype prototype)
Set the optional prototype feature.
|
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 Map<String,String> getFrameworkProperties()
public List<MatchingRequirement> getRequirements()
public List<org.osgi.resource.Capability> getCapabilities()
public Prototype getPrototype()
null if none.public void setPrototype(Prototype prototype)
prototype - The prototype feature or null if none.public Extensions getExtensions()
public String getTitle()
nullpublic void setTitle(String title)
title - The titlepublic String getDescription()
nullpublic void setDescription(String description)
description - The descriptionpublic Map<String,String> getVariables()
public String getVendor()
nullpublic void setVendor(String vendor)
vendor - The vendorpublic String getLicense()
nullpublic void setLicense(String license)
license - The licensepublic boolean isFinal()
true if it is final, false otherwisepublic void setFinal(boolean flag)
flag - The flagpublic boolean isComplete()
true if it is complete, false otherwisepublic void setComplete(boolean flag)
flag - The flagpublic 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–2020 The Apache Software Foundation. All rights reserved.