Package com.iizix.app.builder
Class JavaDirectory
- java.lang.Object
- com.iizix.app.builder.JavaDirectory
 
- All Implemented Interfaces:
- IIDirectory,- IIResource
 - public class JavaDirectory extends java.lang.Object implements IIDirectory The Java file wrapper.- Author:
- Christopher Mindus
 
- Constructor Summary- Constructors - Constructor - Description - JavaDirectory(java.io.File dir)Constructs a directory.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - boolean- equals(java.lang.Object o)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.- int- hashCode()The hash code.- boolean- isDirectory()Checks if this resource is a directory.- java.util.List<IIResource>- listDirectory(java.lang.Object monitor)Lists the contents of the directory.- java.lang.String- toString()Resource String representation is the file name.- Methods inherited from class java.lang.Object- clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - Methods inherited from interface com.iizix.app.builder.IIResource- equals
 
 
- Method Detail- getFullPath- public java.lang.String getFullPath() Gets the full path to the resource.- Specified by:
- getFullPathin interface- IIResource
 
 - getFile- public java.io.File getFile(java.lang.Object monitor) Get the Java canonical File.- Specified by:
- getFilein interface- IIResource
- Parameters:
- monitor- The IProgressMonitor, null for none.
- Returns:
- a File in canonical form.
 
 - listDirectory- public java.util.List<IIResource> listDirectory(java.lang.Object monitor) throws java.io.IOException Lists the contents of the directory.- Specified by:
- listDirectoryin interface- IIDirectory
- Parameters:
- monitor- The IProgressMonitor, null for none.
- Throws:
- java.io.FileNotFoundException- If directory doesn't exist.
- java.io.IOException- For I/O errors.
 
 - isDirectory- public boolean isDirectory() Checks if this resource is a directory.- Specified by:
- isDirectoryin interface- IIResource
- Returns:
- true.
 
 - getName- public java.lang.String getName() Gets the name of the resource.- Specified by:
- getNamein interface- IIResource
- Returns:
- The name of the resource (also includes the file extension).
 
 - equals- public boolean equals(java.lang.Object o) Compares two resources.- Overrides:
- equalsin class- java.lang.Object
 
 - hashCode- public int hashCode() The hash code.- Overrides:
- hashCodein class- java.lang.Object
 
 - toString- public java.lang.String toString() Resource String representation is the file name.- Overrides:
- toStringin class- java.lang.Object