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 SummaryModifier and TypeMethodDescription- default 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.- booleanChecks if this resource is a directory.
- Method Details- getNameString getName()Gets the name of the resource.- Returns:
- The name of the resource (also includes the file extension).
 
- getFullPathGets the full path to the resource.- Throws:
- IOException- For I/O errors.
 
- getFileGet the Java canonical File.- Parameters:
- monitor- The IProgressMonitor, null for none.
- Returns:
- a File in canonical form.
- Throws:
- IOException- For I/O errors.
 
- isDirectoryboolean isDirectory()Checks if this resource is a directory.
- equalsCompares two resources.- Parameters:
- resource- The resource to compare to.
- Returns:
- true if file names are equal.