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, removeAttachment
public AbstractHostedCapability(XResource resource, XCapability capability)
public XResource getResource()
HostedCapability
getResource
in interface XCapability
getResource
in interface org.osgi.resource.Capability
getResource
in interface HostedCapability
public boolean isMutable()
public org.osgi.resource.Capability getDeclaredCapability()
HostedCapability
getDeclaredCapability
in interface HostedCapability
public String getNamespace()
getNamespace
in interface org.osgi.resource.Capability
public Map<String,String> getDirectives()
XDirectiveSupport
getDirectives
in interface XDirectiveSupport
getDirectives
in interface org.osgi.resource.Capability
public Map<String,Object> getAttributes()
XAttributeSupport
getAttributes
in interface XAttributeSupport
getAttributes
in interface org.osgi.resource.Capability
public Object getAttribute(String key)
XAttributeSupport
getAttribute
in interface XAttributeSupport
public String getDirective(String key)
XDirectiveSupport
getDirective
in interface XDirectiveSupport
public void validate()
XCapability
validate
in interface XCapability
public <T extends XCapability> T adapt(Class<T> clazz)
XCapability
adapt
in interface XCapability
public boolean equals(Object obj)
public int hashCode()
Copyright © 2013 JBoss by Red Hat. All rights reserved.