Interface Requirement
-
- All Known Implementing Classes:
RequirementImpl
public interface RequirementA named requirement specifies the need for certain capabilities with the same name. A requirement is said to be satisfied by a capability if and only if:- they have the same nsame
- the filter matches the capability properties
- Version:
- $Revision: 1.4 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getAttributes()Return a map of attributes.java.lang.StringgetComment()java.util.Map<java.lang.String,java.lang.String>getDirectives()Return the map of directives for this requirement.java.lang.StringgetFilter()Return the filter.java.lang.StringgetName()Return the name of the requirement.booleanisExtend()booleanisMultiple()booleanisOptional()booleanisSatisfied(Capability capability)Check if the given capability satisfied this requirement.
-
-
-
Method Detail
-
getAttributes
java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Return a map of attributes. Requirements can have attributes, but these are not used for matching. They are for informational purposes only.- Returns:
- The map of attributes.
-
getDirectives
java.util.Map<java.lang.String,java.lang.String> getDirectives()
Return the map of directives for this requirement. This requirements map does *not* contain requirements that are modeled via direct APIs on this interface, such as the filter, cardinality and resolution.- Returns:
-
getName
java.lang.String getName()
Return the name of the requirement.
-
getFilter
java.lang.String getFilter()
Return the filter.
-
isMultiple
boolean isMultiple()
-
isOptional
boolean isOptional()
-
isExtend
boolean isExtend()
-
getComment
java.lang.String getComment()
-
isSatisfied
boolean isSatisfied(Capability capability)
Check if the given capability satisfied this requirement.- Parameters:
capability- the capability to check- Returns:
trueis the capability satisfies this requirement,falseotherwise
-
-