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 IIResourceThe 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- All Methods Instance Methods Abstract Methods Default Methods - Modifier and Type - Method - Description - default boolean- equals(IIResource resource)Compares two resources.- java.io.File- getFile(java.lang.Object monitor)Get the Java canonical File.- java.lang.String- getFullPath()Gets the full path to the resource.- java.lang.String- getName()Gets the name of the resource.- boolean- isDirectory()Checks if this resource is a directory.
 
- 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.IOExceptionGets 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.IOExceptionGet 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.