|
||||||||||
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 | |
---|---|
boolean |
equals(Object thing)
|
String |
getAttributeFilter()
|
Map<String,String> |
getAttributes()
Get this ImportedPackageImpl's attributes |
String |
getPackageName()
Get the package name |
org.apache.aries.application.modelling.ResourceType |
getType()
|
String |
getVersionRange()
Get the imported package's version range |
int |
hashCode()
|
boolean |
isMultiple()
|
boolean |
isOptional()
|
boolean |
isSatisfied(org.apache.aries.application.modelling.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, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImportedPackageImpl(String pkg, Map<String,String> attributes) throws org.apache.aries.application.InvalidAttributeException
pkg
- The name of the required packageattributes
- Other attributes - most commonly, version
org.apache.aries.application.InvalidAttributeException
Method Detail |
---|
public Map<String,String> getAttributes()
getAttributes
in interface org.apache.aries.application.modelling.ImportedPackage
public String getPackageName()
getPackageName
in interface org.apache.aries.application.modelling.ImportedPackage
public String getVersionRange()
getVersionRange
in interface org.apache.aries.application.modelling.ImportedPackage
public String getAttributeFilter()
getAttributeFilter
in interface org.apache.aries.application.modelling.Consumer
public org.apache.aries.application.modelling.ResourceType getType()
getType
in interface org.apache.aries.application.modelling.Consumer
public boolean isMultiple()
isMultiple
in interface org.apache.aries.application.modelling.Consumer
public boolean isOptional()
isOptional
in interface org.apache.aries.application.modelling.Consumer
public boolean isSatisfied(org.apache.aries.application.modelling.Provider capability)
isSatisfied
in interface org.apache.aries.application.modelling.Consumer
public 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 org.apache.aries.application.modelling.DeploymentMFElement
public String toString()
toString
in class Object
public boolean equals(Object thing)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |