FileDocCategorySizeDatePackage
FolderWrapper.javaAPI DocAndroid 1.5 API2020Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.editors.resources.manager.files

FolderWrapper

public class FolderWrapper extends Object implements IAbstractFolder
An implementation of {@link IAbstractFolder} on top of a {@link File} object.

Fields Summary
private File
mFolder
Constructors Summary
public FolderWrapper(File folder)
Constructs a {@link FileWrapper} object. If {@link File#isDirectory()} returns false then an {@link IOException} is thrown.

        if (folder.isDirectory() == false) {
            throw new IOException("FileWrapper must wrap a File object representing an existing folder!"); //$NON-NLS-1$
        }
        
        mFolder = folder;
    
Methods Summary
public booleanequals(java.lang.Object obj)

        if (obj instanceof FolderWrapper) {
            return mFolder.equals(((FolderWrapper)obj).mFolder);
        }
        
        if (obj instanceof File) {
            return mFolder.equals(obj);
        }

        return super.equals(obj);
    
public org.eclipse.core.resources.IFoldergetIFolder()

        return null;
    
public java.lang.StringgetName()

        return mFolder.getName();
    
public booleanhasFile(java.lang.String name)

        return false;
    
public inthashCode()

        return mFolder.hashCode();