Interface Requirement
-
- All Known Implementing Classes:
AbstractRequirement
,DockerRequirement
,PathRequirement
,RserveRequirement
public interface Requirement
This interface define a requirement for an Eoulsan Step.- Since:
- 2.0
- Author:
- Laurent Jourdren
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
configure(Set<Parameter> parameters)
Configure the requirement.String
getName()
The name of the requirement.Set<Parameter>
getParameters()
Get the parameters of the requirementvoid
install(Progress progress)
Install the requirement.boolean
isAvailable()
Test if the requirement is available.boolean
isInstallable()
Test if the requirement is installable.boolean
isOptional()
Test if the requirement is optional.
-
-
-
Method Detail
-
getName
String getName()
The name of the requirement.- Returns:
- the name of the requirement
-
isOptional
boolean isOptional()
Test if the requirement is optional.- Returns:
- true if he requirement is optional
-
isAvailable
boolean isAvailable()
Test if the requirement is available.- Returns:
- true if he requirement is optional
-
isInstallable
boolean isInstallable()
Test if the requirement is installable.- Returns:
- true if the requirement is installable
-
getParameters
Set<Parameter> getParameters()
Get the parameters of the requirement- Returns:
- a set of parameters
-
configure
void configure(Set<Parameter> parameters) throws EoulsanException
Configure the requirement.- Parameters:
parameters
- the parameters of the requirement- Throws:
EoulsanException
- if an error occurs while configuring the requirement
-
install
void install(Progress progress) throws EoulsanException
Install the requirement.- Throws:
EoulsanException
- if the requirement cannot be installed
-
-