public class AbstractCapability extends Object implements Capability
Capability.| Constructor and Description |
|---|
AbstractCapability(AbstractResource resource,
String namespace,
Map<String,Object> atts,
Map<String,String> dirs) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
adapt(Class<T> type)
Adapt the this type to the given type
|
Object |
getAttribute(String key)
Get the value of the given attribute
|
Map<String,Object> |
getAttributes()
Returns the attributes of this capability.
|
String |
getDirective(String key)
Get the value of the given directive
|
Map<String,String> |
getDirectives()
Returns the directives of this capability.
|
String |
getNamespace()
Returns the namespace of this capability.
|
Resource |
getResource()
Returns the resource declaring this capability.
|
static Version |
getVersion(Capability cap,
String attname) |
String |
toString() |
protected void |
validate() |
public <T> T adapt(Class<T> type)
Adaptablepublic Resource getResource()
CapabilitygetResource in interface Capabilitypublic String getNamespace()
CapabilitygetNamespace in interface Capabilitypublic Map<String,String> getDirectives()
CapabilitygetDirectives in interface Capabilitypublic String getDirective(String key)
CapabilitygetDirective in interface Capabilitypublic Map<String,Object> getAttributes()
CapabilitygetAttributes in interface Capabilitypublic Object getAttribute(String key)
CapabilitygetAttribute in interface Capabilitypublic static Version getVersion(Capability cap, String attname)
protected void validate()
Copyright © 2015 JBoss by Red Hat. All rights reserved.