Interface IIResource

    • Method Detail

      • getName

        java.lang.String getName()
        Gets the name of the resource.
        Returns:
        The name of the resource (also includes the file extension).
      • getFullPath

        java.lang.String getFullPath()
                              throws java.io.IOException
        Gets the full path to the resource.
        Throws:
        java.io.IOException - For I/O errors.
      • getFile

        java.io.File getFile​(java.lang.Object monitor)
                      throws java.io.IOException
        Get the Java canonical File.
        Parameters:
        monitor - The IProgressMonitor, null for none.
        Returns:
        a File in canonical form.
        Throws:
        java.io.IOException - For I/O errors.
      • isDirectory

        boolean isDirectory()
        Checks if this resource is a directory.
      • equals

        default boolean equals​(IIResource resource)
        Compares two resources.
        Parameters:
        resource - The resource to compare to.
        Returns:
        true if file names are equal.