FileDocCategorySizeDatePackage
FileMock.javaAPI DocAndroid 1.5 API14262Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.mock

FileMock

public class FileMock extends Object implements org.eclipse.core.resources.IFile
Mock implementation of {@link IFile}. Optionally backed by an in-memory byte array

Supported methods:

  • getName()
  • getContents()
  • getContents(boolean force)

Fields Summary
private String
mName
private byte[]
mContentData
Constructors Summary
public FileMock(String name)

        this(name, new byte[0]);
    
public FileMock(String name, byte[] fileData)

        mName = name;
        mContentData = fileData;
    
Methods Summary
public voidaccept(org.eclipse.core.resources.IResourceVisitor visitor)

        throw new NotImplementedException();
    
public voidaccept(org.eclipse.core.resources.IResourceProxyVisitor visitor, int memberFlags)

        throw new NotImplementedException();
    
public voidaccept(org.eclipse.core.resources.IResourceVisitor visitor, int depth, boolean includePhantoms)

        throw new NotImplementedException();
    
public voidaccept(org.eclipse.core.resources.IResourceVisitor visitor, int depth, int memberFlags)

        throw new NotImplementedException();
    
public voidappendContents(java.io.InputStream source, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidappendContents(java.io.InputStream source, boolean force, boolean keepHistory, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidclearHistory(org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public booleancontains(org.eclipse.core.runtime.jobs.ISchedulingRule rule)

        throw new NotImplementedException();
    
public voidcopy(org.eclipse.core.runtime.IPath destination, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidcopy(org.eclipse.core.runtime.IPath destination, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidcopy(org.eclipse.core.resources.IProjectDescription description, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidcopy(org.eclipse.core.resources.IProjectDescription description, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidcreate(java.io.InputStream source, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidcreate(java.io.InputStream source, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidcreateLink(org.eclipse.core.runtime.IPath localLocation, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidcreateLink(java.net.URI location, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public org.eclipse.core.resources.IMarkercreateMarker(java.lang.String type)

        throw new NotImplementedException();
    
public org.eclipse.core.resources.IResourceProxycreateProxy()

        throw new NotImplementedException();
    
public voiddelete(boolean force, boolean keepHistory, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voiddelete(boolean force, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voiddelete(int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voiddeleteMarkers(java.lang.String type, boolean includeSubtypes, int depth)

        throw new NotImplementedException();
    
public booleanexists()

        throw new NotImplementedException();
    
public org.eclipse.core.resources.IMarkerfindMarker(long id)

        throw new NotImplementedException();
    
public org.eclipse.core.resources.IMarker[]findMarkers(java.lang.String type, boolean includeSubtypes, int depth)

        throw new NotImplementedException();
    
public intfindMaxProblemSeverity(java.lang.String type, boolean includeSubtypes, int depth)

        throw new NotImplementedException();
    
public java.lang.ObjectgetAdapter(java.lang.Class adapter)

        throw new NotImplementedException();
    
public java.lang.StringgetCharset()

        throw new NotImplementedException();
    
public java.lang.StringgetCharset(boolean checkImplicit)

        throw new NotImplementedException();
    
public java.lang.StringgetCharsetFor(java.io.Reader reader)

        throw new NotImplementedException();
    
public org.eclipse.core.runtime.content.IContentDescriptiongetContentDescription()

        throw new NotImplementedException();
    
public java.io.InputStreamgetContents()

        return new ByteArrayInputStream(mContentData);
    
public java.io.InputStreamgetContents(boolean force)

        // ignore force
        return getContents();
    
public intgetEncoding()

        throw new NotImplementedException();
    
public java.lang.StringgetFileExtension()

        throw new NotImplementedException();
    
public org.eclipse.core.runtime.IPathgetFullPath()

        throw new NotImplementedException();
    
public org.eclipse.core.resources.IFileState[]getHistory(org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public longgetLocalTimeStamp()

        throw new NotImplementedException();
    
public org.eclipse.core.runtime.IPathgetLocation()

        return new Path(mName);
    
public java.net.URIgetLocationURI()

        throw new NotImplementedException();
    
public org.eclipse.core.resources.IMarkergetMarker(long id)

        throw new NotImplementedException();
    
public longgetModificationStamp()

        throw new NotImplementedException();
    
public java.lang.StringgetName()

        return mName;
    
public org.eclipse.core.resources.IContainergetParent()

        throw new NotImplementedException();
    
public java.util.MapgetPersistentProperties()

        throw new NotImplementedException();
    
public java.lang.StringgetPersistentProperty(org.eclipse.core.runtime.QualifiedName key)

        throw new NotImplementedException();
    
public org.eclipse.core.resources.IProjectgetProject()

        throw new NotImplementedException();
    
public org.eclipse.core.runtime.IPathgetProjectRelativePath()

        throw new NotImplementedException();
    
public org.eclipse.core.runtime.IPathgetRawLocation()

        throw new NotImplementedException();
    
public java.net.URIgetRawLocationURI()

        throw new NotImplementedException();
    
public org.eclipse.core.resources.ResourceAttributesgetResourceAttributes()

        throw new NotImplementedException();
    
public java.util.MapgetSessionProperties()

        throw new NotImplementedException();
    
public java.lang.ObjectgetSessionProperty(org.eclipse.core.runtime.QualifiedName key)

        throw new NotImplementedException();
    
public intgetType()

        throw new NotImplementedException();
    
public org.eclipse.core.resources.IWorkspacegetWorkspace()

        throw new NotImplementedException();
    
public booleanisAccessible()

        throw new NotImplementedException();
    
public booleanisConflicting(org.eclipse.core.runtime.jobs.ISchedulingRule rule)

        throw new NotImplementedException();
    
public booleanisDerived()

        throw new NotImplementedException();
    
public booleanisDerived(int options)

        throw new NotImplementedException();
    
public booleanisHidden()

        throw new NotImplementedException();
    
public booleanisHidden(int options)

        throw new NotImplementedException();
    
public booleanisLinked()

        throw new NotImplementedException();
    
public booleanisLinked(int options)

        throw new NotImplementedException();
    
public booleanisLocal(int depth)

        throw new NotImplementedException();
    
public booleanisPhantom()

        throw new NotImplementedException();
    
public booleanisReadOnly()

        throw new NotImplementedException();
    
public booleanisSynchronized(int depth)

        throw new NotImplementedException();
    
public booleanisTeamPrivateMember()

        throw new NotImplementedException();
    
public booleanisTeamPrivateMember(int options)

        throw new NotImplementedException();
    
public voidmove(org.eclipse.core.runtime.IPath destination, boolean force, boolean keepHistory, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidmove(org.eclipse.core.runtime.IPath destination, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidmove(org.eclipse.core.runtime.IPath destination, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidmove(org.eclipse.core.resources.IProjectDescription description, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidmove(org.eclipse.core.resources.IProjectDescription description, boolean force, boolean keepHistory, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidrefreshLocal(int depth, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidrevertModificationStamp(long value)

        throw new NotImplementedException();
    
public voidsetCharset(java.lang.String newCharset)

        throw new NotImplementedException();
    
public voidsetCharset(java.lang.String newCharset, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidsetContents(java.io.InputStream source, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidsetContents(org.eclipse.core.resources.IFileState source, int updateFlags, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidsetContents(java.io.InputStream source, boolean force, boolean keepHistory, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidsetContents(org.eclipse.core.resources.IFileState source, boolean force, boolean keepHistory, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public voidsetDerived(boolean isDerived)

        throw new NotImplementedException();
    
public voidsetHidden(boolean isHidden)

        throw new NotImplementedException();
    
public voidsetLocal(boolean flag, int depth, org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();
    
public longsetLocalTimeStamp(long value)

        throw new NotImplementedException();
    
public voidsetPersistentProperty(org.eclipse.core.runtime.QualifiedName key, java.lang.String value)

        throw new NotImplementedException();
    
public voidsetReadOnly(boolean readOnly)

        throw new NotImplementedException();
    
public voidsetResourceAttributes(org.eclipse.core.resources.ResourceAttributes attributes)

        throw new NotImplementedException();
    
public voidsetSessionProperty(org.eclipse.core.runtime.QualifiedName key, java.lang.Object value)

        throw new NotImplementedException();
    
public voidsetTeamPrivateMember(boolean isTeamPrivate)

        throw new NotImplementedException();
    
public voidtouch(org.eclipse.core.runtime.IProgressMonitor monitor)

        throw new NotImplementedException();