|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.resolver.spi.AbstractElement
org.jboss.osgi.resolver.spi.AbstractRequirement
public class AbstractRequirement
The abstract implementation of a XRequirement.
| Constructor Summary | |
|---|---|
AbstractRequirement(XResource resource,
String namespace,
Map<String,Object> atts,
Map<String,String> dirs)
|
|
| Method Summary | ||
|---|---|---|
|
adapt(Class<T> clazz)
Adapt this requirement to another type |
|
Object |
getAttribute(String key)
Get the value of the given attribute |
|
Map<String,Object> |
getAttributes()
Get the attributes |
|
String |
getDirective(String key)
Get the value of the given directive |
|
Map<String,String> |
getDirectives()
Get the directives |
|
org.osgi.framework.Filter |
getFilter()
Get the filter associated with this requirement. |
|
String |
getNamespace()
|
|
String |
getPackageName()
The package name |
|
org.osgi.resource.Resource |
getResource()
|
|
String |
getSymbolicName()
The bundle symbolic name |
|
org.osgi.framework.VersionRange |
getVersionRange()
The bundle version range |
|
String |
getVisibility()
Get the value of the visibility directive |
|
boolean |
isDynamic()
A flag indicating that this is a dynamic package 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. |
|
String |
toString()
|
|
void |
validate()
Validate the requirement |
|
| Methods inherited from class org.jboss.osgi.resolver.spi.AbstractElement |
|---|
addAttachment, getAttachment, removeAttachment |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.osgi.resolver.XAttachmentSupport |
|---|
addAttachment, getAttachment, removeAttachment |
| Methods inherited from interface org.osgi.resource.Requirement |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public AbstractRequirement(XResource resource,
String namespace,
Map<String,Object> atts,
Map<String,String> dirs)
| Method Detail |
|---|
public org.osgi.framework.Filter getFilter()
XRequirement
getFilter in interface XRequirementpublic org.osgi.resource.Resource getResource()
getResource in interface org.osgi.resource.Requirementpublic void validate()
XRequirement
validate in interface XRequirementpublic String getNamespace()
getNamespace in interface org.osgi.resource.Requirementpublic boolean isOptional()
XRequirement
isOptional in interface XRequirementpublic Map<String,String> getDirectives()
XDirectiveSupport
getDirectives in interface XDirectiveSupportgetDirectives in interface org.osgi.resource.Requirementpublic String getDirective(String key)
XDirectiveSupport
getDirective in interface XDirectiveSupportpublic Map<String,Object> getAttributes()
XAttributeSupport
getAttributes in interface XAttributeSupportgetAttributes in interface org.osgi.resource.Requirementpublic Object getAttribute(String key)
XAttributeSupport
getAttribute in interface XAttributeSupportpublic <T extends XRequirement> T adapt(Class<T> clazz)
XRequirement
adapt in interface XRequirementpublic boolean matches(org.osgi.resource.Capability cap)
XRequirement
matches in interface XRequirementpublic String getVisibility()
XResourceRequirement
getVisibility in interface XResourceRequirementBundleNamespace#REQUIREMENT_VISIBILITY_DIRECTIVE}public String getSymbolicName()
XHostRequirement
getSymbolicName in interface XHostRequirementgetSymbolicName in interface XResourceRequirementpublic String getPackageName()
XPackageRequirement
getPackageName in interface XPackageRequirementpublic org.osgi.framework.VersionRange getVersionRange()
XResourceRequirement
getVersionRange in interface XResourceRequirementpublic boolean isDynamic()
XPackageRequirement
isDynamic in interface XPackageRequirementpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||