Package com.iizix.app.builder
Interface IIResource
- All Known Subinterfaces:
IIDirectory
,IIFile
- All Known Implementing Classes:
EclipseIFile
,EclipseIFolder
,EclipseIPathDirectory
,EclipseIPathFile
,EclipseIProject
,JavaDirectory
,JavaFile
public interface IIResource
The interface to an interface of a resource (file or directory). The file is either a plain Java File or an Eclipse IFile, IFolder or IPath.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
equals
(IIResource resource) Compares two resources.Get the Java canonical File.Gets the full path to the resource.getName()
Gets the name of the resource.boolean
Checks if this resource is a directory.
Method Details
getName
String getName()Gets the name of the resource.- Returns:
- The name of the resource (also includes the file extension).
getFullPath
Gets the full path to the resource.- Throws:
IOException
- For I/O errors.
getFile
Get the Java canonical File.- Parameters:
monitor
- The IProgressMonitor, null for none.- Returns:
- a File in canonical form.
- Throws:
IOException
- For I/O errors.
isDirectory
boolean isDirectory()Checks if this resource is a directory.equals
Compares two resources.- Parameters:
resource
- The resource to compare to.- Returns:
- true if file names are equal.