public interface XRequirement extends XElement, XAttributeSupport, XDirectiveSupport, org.osgi.resource.Requirement
Requirement| Modifier and Type | Method and Description |
|---|---|
<T extends XRequirement> |
adapt(Class<T> clazz)
Adapt this requirement to another type
|
org.osgi.framework.Filter |
getFilter()
Get the filter associated with this requirement.
|
XResource |
getResource()
Get the resource declaring this requirement.
|
boolean |
isOptional()
A flag indicating that this is an optional requirement.
|
boolean |
matches(org.osgi.resource.Capability cap)
Matches this requirement against the given capability.
|
void |
validate()
Validate the requirement
|
getAttachment, putAttachment, removeAttachmentgetAttribute, getAttributesgetDirective, getDirectivesXResource getResource()
getResource in interface org.osgi.resource.Requirementorg.osgi.framework.Filter getFilter()
boolean isOptional()
void validate()
<T extends XRequirement> T adapt(Class<T> clazz)
boolean matches(org.osgi.resource.Capability cap)
Copyright © 2016 JBoss by Red Hat. All rights reserved.