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, removeAttachment
getAttribute, getAttributes
getDirective, getDirectives
XResource getResource()
getResource
in interface org.osgi.resource.Requirement
org.osgi.framework.Filter getFilter()
boolean isOptional()
void validate()
<T extends XRequirement> T adapt(Class<T> clazz)
boolean matches(org.osgi.resource.Capability cap)
Copyright © 2013 JBoss by Red Hat. All rights reserved.