Class MultiCheck

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, SizeOfHandler, Serializable

    public class MultiCheck
    extends AbstractFileUseCheck
    Applies the specified checks sequentially, stops as soon one of them returns that the file is 'in use'.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
    -check <> [-check ...] (property: checks)
        The schemes to use for checking the 'in use' state.
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • MultiCheck

        public MultiCheck()
    • Method Detail

      • setChecks

        public void setChecks​(AbstractFileUseCheck[] value)
        Sets the check schemes to use.
        value - the checks
      • getChecks

        public AbstractFileUseCheck[] getChecks()
        Returns the check schemes to use.
        the checks
      • checksTipText

        public String checksTipText()
        Returns the tip text for this property.
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • isInUse

        public boolean isInUse​(File file)
        Checks whether the file is in use.
        Specified by:
        isInUse in class AbstractFileUseCheck
        file - the file to check
        true if in use