org.jboss.osgi.resolver
Interface XRequirement

All Superinterfaces:
org.osgi.resource.Requirement, XAttachmentSupport, XAttributeSupport, XDirectiveSupport, XElement
All Known Subinterfaces:
XBundleRequirement, XCapabilityRequirement, XHostRequirement, XPackageRequirement, XResourceRequirement
All Known Implementing Classes:
AbstractBundleRequirement, AbstractRequirement

public interface XRequirement
extends XElement, XAttributeSupport, XDirectiveSupport, org.osgi.resource.Requirement

An extension to the Requirement

Since:
02-Jul-2010
Author:
thomas.diesler@jboss.com

Method Summary
<T extends XRequirement>
T
adapt(Class<T> clazz)
          Adapt this requirement to another type
 org.osgi.framework.Filter getFilter()
          Get the filter associated with 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
 
Methods inherited from interface org.jboss.osgi.resolver.XAttachmentSupport
addAttachment, getAttachment, removeAttachment
 
Methods inherited from interface org.jboss.osgi.resolver.XAttributeSupport
getAttribute, getAttributes
 
Methods inherited from interface org.jboss.osgi.resolver.XDirectiveSupport
getDirective, getDirectives
 
Methods inherited from interface org.osgi.resource.Requirement
equals, getAttributes, getDirectives, getNamespace, getResource, hashCode
 

Method Detail

getFilter

org.osgi.framework.Filter getFilter()
Get the filter associated with this requirement.


isOptional

boolean isOptional()
A flag indicating that this is an optional requirement.


validate

void validate()
Validate the requirement


adapt

<T extends XRequirement> T adapt(Class<T> clazz)
Adapt this requirement to another type


matches

boolean matches(org.osgi.resource.Capability cap)
Matches this requirement against the given capability.



Copyright © 2013 JBoss by Red Hat. All Rights Reserved.