Interface IAbstractResource

  • All Known Subinterfaces:
    IAbstractFile, IAbstractFolder
    All Known Implementing Classes:
    FileWrapper, FolderWrapper

    public interface IAbstractResource
    Base representation of a file system resource.

    This somewhat limited interface is designed to let classes use file-system resources, without having the manually handle either the standard Java file or the Eclipse file API..

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean delete()
      Deletes the resource.
      boolean exists()
      Returns whether the resource actually exists.
      java.lang.String getName()
      Returns the name of the resource.
      java.lang.String getOsLocation()
      Returns the OS path of the folder location (may be absolute).
      IAbstractFolder getParentFolder()
      Returns the parent folder or null if there is no parent.
      java.lang.String getPath()
      Returns the path of the resource.
    • Method Detail

      • getName

        java.lang.String getName()
        Returns the name of the resource.
      • getOsLocation

        java.lang.String getOsLocation()
        Returns the OS path of the folder location (may be absolute).
      • getPath

        java.lang.String getPath()
        Returns the path of the resource.
      • exists

        boolean exists()
        Returns whether the resource actually exists.
      • getParentFolder

        IAbstractFolder getParentFolder()
        Returns the parent folder or null if there is no parent.
      • delete

        boolean delete()
        Deletes the resource.