|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.aries.application.modelling.impl.ImportedBundleImpl
public class ImportedBundleImpl
A model of a Bundle imported, or required, by something. For example, an entry in an APPLICATION.MF.
Constructor Summary | |
---|---|
ImportedBundleImpl(String filterString,
Map<String,String> attributes)
Build an ImportedBundleImpl from filter string and a set of attributes. |
|
ImportedBundleImpl(String bundleName,
String versionRange)
Build an ImportedBundleImpl from a bundle name and version range. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Equal if symbolic names match and version strings match |
String |
getAttributeFilter()
|
String |
getSymbolicName()
Get the symbolic name of the imported bundle |
org.apache.aries.application.modelling.ResourceType |
getType()
|
String |
getVersionRange()
Get the version range on this bundle import |
int |
hashCode()
|
boolean |
isMultiple()
|
boolean |
isOptional()
|
boolean |
isSatisfied(org.apache.aries.application.modelling.Provider capability)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImportedBundleImpl(String filterString, Map<String,String> attributes) throws org.apache.aries.application.InvalidAttributeException
filterString
- For example as obtained from Requirement.getFilter()attributes
-
org.apache.aries.application.InvalidAttributeException
public ImportedBundleImpl(String bundleName, String versionRange) throws org.apache.aries.application.InvalidAttributeException
bundleName
- Bundle symbolic nameversionRange
- Bundle version range
org.apache.aries.application.InvalidAttributeException
Method Detail |
---|
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 getVersionRange()
getVersionRange
in interface org.apache.aries.application.modelling.ImportedBundle
public String getSymbolicName()
getSymbolicName
in interface org.apache.aries.application.modelling.ImportedBundle
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |