public class WrappedRequirement extends BundleRequirementImpl
Constructor and Description |
---|
WrappedRequirement(BundleRevision host,
BundleRequirementImpl req) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares this
Requirement to another Requirement . |
Map<String,Object> |
getAttributes()
Returns the attributes of this requirement.
|
Map<String,String> |
getDirectives()
Returns the directives of this requirement.
|
SimpleFilter |
getFilter() |
String |
getNamespace()
Returns the namespace of this requirement.
|
BundleRequirementImpl |
getOriginalRequirement() |
BundleRevision |
getRevision()
Returns the bundle revision declaring this requirement.
|
int |
hashCode()
Returns the hashCode of this
Requirement . |
boolean |
isOptional() |
String |
toString() |
getResource, matches
public WrappedRequirement(BundleRevision host, BundleRequirementImpl req)
public boolean equals(Object obj)
Requirement
Requirement
to another Requirement
.
This Requirement
is equal to another Requirement
if they
have the same namespace, directives and attributes and are declared by
the same resource.
equals
in interface Requirement
equals
in class Object
obj
- The object to compare against this Requirement
.true
if this Requirement
is equal to the other
object; false
otherwise.public int hashCode()
Requirement
Requirement
.hashCode
in interface Requirement
hashCode
in class Object
Requirement
.public BundleRequirementImpl getOriginalRequirement()
public BundleRevision getRevision()
BundleRequirement
getRevision
in interface BundleRequirement
getRevision
in class BundleRequirementImpl
public String getNamespace()
BundleRequirement
getNamespace
in interface BundleRequirement
getNamespace
in interface Requirement
getNamespace
in class BundleRequirementImpl
public SimpleFilter getFilter()
getFilter
in class BundleRequirementImpl
public boolean isOptional()
isOptional
in class BundleRequirementImpl
public Map<String,String> getDirectives()
BundleRequirement
All requirement directives not specified by the
wiring namespaces
have no specified
semantics and are considered extra user defined information.
getDirectives
in interface BundleRequirement
getDirectives
in interface Requirement
getDirectives
in class BundleRequirementImpl
public Map<String,Object> getAttributes()
BundleRequirement
Requirement attributes have no specified semantics and are considered extra user defined information.
getAttributes
in interface BundleRequirement
getAttributes
in interface Requirement
getAttributes
in class BundleRequirementImpl
public String toString()
toString
in class BundleRequirementImpl
Copyright © 2006-2015 The Apache Software Foundation. All Rights Reserved.