Class VisitableFile


  • public class VisitableFile
    extends java.lang.Object
    A little tiny interface to visit File objects. This has to be used to avoid multiple and annoying project refresh operations trigerring unwanted changes.
    • Constructor Summary

      Constructors 
      Constructor Description
      VisitableFile​(java.io.File pFile)
      Create a new visitable file, ready to accept a visit.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(IFileVisitor pVisitor)
      Welcome a visitor and let him explore the file hierarchy as he needs to.
      boolean exists()  
      boolean isDirectory()  
      boolean isFile()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VisitableFile

        public VisitableFile​(java.io.File pFile)
        Create a new visitable file, ready to accept a visit.
        Parameters:
        pFile - the file to visit later.
    • Method Detail

      • exists

        public boolean exists()
        Returns:
        if the file exists
      • isDirectory

        public boolean isDirectory()
        Returns:
        if the visitable file has been correctly initialised and is a directory
      • isFile

        public boolean isFile()
        Returns:
        if the visitable file has been correctly initialised and is a file
      • accept

        public void accept​(IFileVisitor pVisitor)
        Welcome a visitor and let him explore the file hierarchy as he needs to.
        Parameters:
        pVisitor - the File visitor