public class AbstractHostedCapability extends AbstractElement implements HostedCapability, XCapability
HostedCapability.| Constructor and Description |
|---|
AbstractHostedCapability(XResource resource,
XCapability capability) |
| Modifier and Type | Method and Description |
|---|---|
<T extends XCapability> |
adapt(Class<T> clazz)
Adapt this capability to another type
|
boolean |
equals(Object obj) |
Object |
getAttribute(String key)
Get the value of the given attribute
|
Map<String,Object> |
getAttributes()
Get the attributes
|
org.osgi.resource.Capability |
getDeclaredCapability()
Return the Capability hosted by the Resource.
|
String |
getDirective(String key)
Get the value of the given directive
|
Map<String,String> |
getDirectives()
Get the directives
|
String |
getNamespace() |
XResource |
getResource()
Return the Resource that hosts this Capability.
|
int |
hashCode() |
boolean |
isMutable() |
String |
toString() |
void |
validate()
Validate the capability
|
getAttachment, putAttachment, removeAttachmentclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttachment, putAttachment, removeAttachmentpublic AbstractHostedCapability(XResource resource, XCapability capability)
public XResource getResource()
HostedCapabilitygetResource in interface XCapabilitygetResource in interface org.osgi.resource.CapabilitygetResource in interface HostedCapabilitypublic boolean isMutable()
public org.osgi.resource.Capability getDeclaredCapability()
HostedCapabilitygetDeclaredCapability in interface HostedCapabilitypublic String getNamespace()
getNamespace in interface org.osgi.resource.Capabilitypublic Map<String,String> getDirectives()
XDirectiveSupportgetDirectives in interface XDirectiveSupportgetDirectives in interface org.osgi.resource.Capabilitypublic Map<String,Object> getAttributes()
XAttributeSupportgetAttributes in interface XAttributeSupportgetAttributes in interface org.osgi.resource.Capabilitypublic Object getAttribute(String key)
XAttributeSupportgetAttribute in interface XAttributeSupportpublic String getDirective(String key)
XDirectiveSupportgetDirective in interface XDirectiveSupportpublic void validate()
XCapabilityvalidate in interface XCapabilitypublic <T extends XCapability> T adapt(Class<T> clazz)
XCapabilityadapt in interface XCapabilitypublic boolean equals(Object obj)
public int hashCode()
Copyright © 2016 JBoss by Red Hat. All rights reserved.