|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.aries.application.modelling.impl.ImportedPackageImpl
public class ImportedPackageImpl
An imported, or required package. Capable of generating an entry in DEPLOYMENT.MF's Import-Package header.
| Constructor Summary | |
|---|---|
ImportedPackageImpl(String pkg,
Map<String,String> attributes)
Construct a package requirement |
|
| Method Summary | |
|---|---|
String |
getAttributeFilter()
|
Map<String,String> |
getAttributes()
Get this ImportedPackageImpl's attributes |
String |
getPackageName()
Get the package name |
ResourceType |
getType()
|
String |
getVersionRange()
Get the imported package's version range |
boolean |
isMultiple()
|
boolean |
isOptional()
|
boolean |
isSatisfied(Provider capability)
|
String |
toDeploymentString()
This method turns an ImportedPackageImpl into a string suitable for a
Provision-Bundle style package import. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ImportedPackageImpl(String pkg,
Map<String,String> attributes)
throws InvalidAttributeException
pkg - The name of the required packageattributes - Other attributes - most commonly, version
InvalidAttributeException| Method Detail |
|---|
public Map<String,String> getAttributes()
getAttributes in interface ImportedPackagepublic String getPackageName()
getPackageName in interface ImportedPackagepublic String getVersionRange()
getVersionRange in interface ImportedPackagepublic String getAttributeFilter()
getAttributeFilter in interface Consumerpublic ResourceType getType()
getType in interface Consumerpublic boolean isMultiple()
isMultiple in interface Consumerpublic boolean isOptional()
isOptional in interface Consumerpublic boolean isSatisfied(Provider capability)
isSatisfied in interface Consumerpublic String toDeploymentString()
ImportedPackageImpl into a string suitable for a
Provision-Bundle style package import.
It will not include ;bundle-symbolic-name=bundleName;bundle-version=version attribute pairs
toDeploymentString in interface DeploymentMFElementpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||