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 <adams.core.io.fileuse.AbstractFileUseCheck> [-check ...] (property: checks)
        The schemes to use for checking the 'in use' state.
        default: 
     
    Version:
    $Revision$
    Author:
    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.
        Parameters:
        value - the checks
      • getChecks

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

        public String checksTipText()
        Returns the tip text for this property.
        Returns:
        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
        Parameters:
        file - the file to check
        Returns:
        true if in use