java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.gmt.umlx.registry.eclipse.EclipseFileHandle
public class EclipseFileHandle
Constructor Summary | |
---|---|
EclipseFileHandle(EclipseProjectHandle projectHandle,
org.eclipse.core.resources.IResource resource)
|
Method Summary | |
---|---|
boolean |
exists()
Return true if file exists. |
java.lang.String |
getAbsoluteName()
Return a name that can access the physical storage without reference to any other context. |
java.io.InputStream |
getContents()
Return a stream from which the contents can be read. |
java.lang.String |
getName()
Return a name that can access the physical storage with respect to its parent. |
EclipseFileHandle |
getParentFileHandle()
Return the handle of the parent of this handle. |
AbstractProjectHandle |
getProjectHandle()
Return the handle of the project. |
java.lang.String |
getProjectRelativeName()
Return a name that can access the physical storage with respect to the project. |
org.eclipse.core.runtime.IPath |
getProjectRelativePath()
|
org.eclipse.core.resources.IResource |
getResource()
|
org.eclipse.emf.common.util.URI |
getURI()
Get the URI of the file. |
org.eclipse.core.resources.IFile |
isFile()
Return a non-null file object if this Handle applies to a file. |
org.eclipse.core.resources.IFolder |
isFolder()
Return a non-null folder object if this Handle applies to a folder or directory. |
org.eclipse.core.resources.IProject |
isProject()
Return a non-null project object if this Handle applies to a project. |
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.core.runtime.PlatformObject |
---|
getAdapter |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Constructor Detail |
---|
public EclipseFileHandle(EclipseProjectHandle projectHandle, org.eclipse.core.resources.IResource resource)
Method Detail |
---|
public boolean exists()
AbstractFileHandle
exists
in interface AbstractFileHandle
public java.lang.String getAbsoluteName()
AbstractFileHandle
getAbsoluteName
in interface AbstractFileHandle
public java.io.InputStream getContents() throws org.eclipse.core.runtime.CoreException
AbstractFileHandle
getContents
in interface AbstractFileHandle
org.eclipse.core.runtime.CoreException
- if Eclipse resource access problempublic java.lang.String getName()
AbstractFileHandle
getName
in interface AbstractFileHandle
public EclipseFileHandle getParentFileHandle()
AbstractFileHandle
getParentFileHandle
in interface AbstractFileHandle
public AbstractProjectHandle getProjectHandle()
AbstractFileHandle
getProjectHandle
in interface AbstractFileHandle
public java.lang.String getProjectRelativeName()
AbstractFileHandle
getProjectRelativeName
in interface AbstractFileHandle
public org.eclipse.core.runtime.IPath getProjectRelativePath()
public org.eclipse.core.resources.IResource getResource()
public org.eclipse.emf.common.util.URI getURI()
AbstractFileHandle
getURI
in interface AbstractFileHandle
public org.eclipse.core.resources.IFile isFile()
AbstractFileHandle
isFile
in interface AbstractFileHandle
public org.eclipse.core.resources.IFolder isFolder()
AbstractFileHandle
isFolder
in interface AbstractFileHandle
public org.eclipse.core.resources.IProject isProject()
AbstractFileHandle
isProject
in interface AbstractFileHandle
public java.lang.String toString()
toString
in class java.lang.Object