Class PathRequirement

  • All Implemented Interfaces:
    Requirement

    public class PathRequirement
    extends AbstractRequirement
    This class define a executable requirement.
    Since:
    2.0
    Author:
    Laurent Jourdren
    • Constructor Detail

      • PathRequirement

        public PathRequirement()
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: Requirement
        The name of the requirement.
        Returns:
        the name of the requirement
      • isAvailable

        public boolean isAvailable()
        Description copied from interface: Requirement
        Test if the requirement is available.
        Returns:
        true if he requirement is optional
      • newPathRequirement

        public static Requirement newPathRequirement​(String executableName)
        Create a new mandatory executable requirement.
        Parameters:
        executableName - the executable name
        Returns:
        a new PathRequirement object
      • newPathRequirement

        public static Requirement newPathRequirement​(String executableName,
                                                     boolean optional)
        Create a new executable requirement.
        Parameters:
        executableName - the executable name
        optional - true if the executable is a mandatory requirement
        Returns:
        a new PathRequirement object