public class AbstractPackageRequirement extends AbstractRequirement implements XPackageRequirement
XPackageRequirement.| Constructor and Description |
|---|
AbstractPackageRequirement(org.osgi.framework.resource.Resource res,
Map<String,Object> attrs,
Map<String,String> dirs,
boolean isdynamic) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
addAttachment(Class<T> clazz,
T value)
Attach an arbirtary object with this element.
|
<T> T |
getAttachment(Class<T> clazz)
Get the attached object for a given key
|
protected Set<String> |
getMandatoryAttributes() |
String |
getPackageName() |
org.jboss.osgi.metadata.VersionRange |
getVersionRange() |
boolean |
isDynamic() |
boolean |
matches(org.osgi.framework.resource.Capability cap) |
boolean |
matchNamespaceValue(org.osgi.framework.resource.Capability cap) |
<T> T |
removeAttachment(Class<T> clazz)
Remove an attached object for a given key
|
String |
toString() |
getAttribute, getAttributes, getDirective, getDirectives, getNamespace, getResource, isOptional, matchFilterValue, validateAttributesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisOptionaladdAttachment, getAttachment, removeAttachmentgetAttribute, getAttributesgetDirective, getDirectivesprotected Set<String> getMandatoryAttributes()
getMandatoryAttributes in class AbstractRequirementpublic String getPackageName()
getPackageName in interface XPackageRequirementpublic org.jboss.osgi.metadata.VersionRange getVersionRange()
getVersionRange in interface XPackageRequirementpublic boolean isDynamic()
isDynamic in interface XPackageRequirementpublic boolean matchNamespaceValue(org.osgi.framework.resource.Capability cap)
matchNamespaceValue in class AbstractRequirementpublic boolean matches(org.osgi.framework.resource.Capability cap)
matches in interface org.osgi.framework.resource.Requirementmatches in class AbstractRequirementpublic String toString()
toString in class AbstractRequirementpublic <T> T addAttachment(Class<T> clazz, T value)
XAttachmentSupportaddAttachment in interface XAttachmentSupportclazz - key for the attachmentpublic <T> T getAttachment(Class<T> clazz)
XAttachmentSupportgetAttachment in interface XAttachmentSupportclazz - key for the attachmentpublic <T> T removeAttachment(Class<T> clazz)
XAttachmentSupportremoveAttachment in interface XAttachmentSupportclazz - key for the attachmentCopyright © 2012 JBoss by Red Hat. All Rights Reserved.