Requirement
public class RequirementImpl extends Object implements Requirement
Constructor | Description |
---|---|
RequirementImpl() |
|
RequirementImpl(String name) |
Modifier and Type | Method | Description |
---|---|---|
void |
addText(String s) |
|
boolean |
equals(Object o) |
|
Map<String,Object> |
getAttributes() |
Return a map of attributes.
|
String |
getComment() |
|
Map<String,String> |
getDirectives() |
Return the map of directives for this requirement.
|
String |
getFilter() |
Return the filter.
|
String |
getName() |
Return the name of the requirement.
|
int |
hashCode() |
|
boolean |
isExtend() |
|
boolean |
isMultiple() |
|
boolean |
isOptional() |
|
boolean |
isSatisfied(Capability capability) |
Check if the given capability satisfied this requirement.
|
void |
setAttributes(Map<String,Object> attributes) |
|
void |
setDirectives(Map<String,String> directives) |
|
void |
setExtend(boolean extend) |
|
void |
setFilter(String filter) |
|
void |
setMultiple(boolean multiple) |
|
void |
setName(String name) |
|
void |
setOptional(boolean optional) |
|
String |
toString() |
public RequirementImpl()
public RequirementImpl(String name)
public Map<String,Object> getAttributes()
Requirement
getAttributes
in interface Requirement
public Map<String,String> getDirectives()
Requirement
getDirectives
in interface Requirement
public String getName()
Requirement
getName
in interface Requirement
public void setName(String name)
public String getFilter()
Requirement
getFilter
in interface Requirement
public void setFilter(String filter)
public boolean isSatisfied(Capability capability)
Requirement
isSatisfied
in interface Requirement
capability
- the capability to checktrue
is the capability satisfies this requirement, false
otherwisepublic boolean isExtend()
isExtend
in interface Requirement
public void setExtend(boolean extend)
public boolean isMultiple()
isMultiple
in interface Requirement
public void setMultiple(boolean multiple)
public boolean isOptional()
isOptional
in interface Requirement
public void setOptional(boolean optional)
public String getComment()
getComment
in interface Requirement
public void addText(String s)
Copyright © 2018. All rights reserved.