|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.ocl.examples.modelregistry.eclipse.EclipseFileHandle
public class EclipseFileHandle
| Field Summary | |
|---|---|
protected EclipseProjectHandle |
projectHandle
|
protected org.eclipse.core.resources.IResource |
resource
|
| Constructor Summary | |
|---|---|
|
EclipseFileHandle(EclipseProjectHandle projectHandle,
org.eclipse.core.resources.IResource resource)
|
protected |
EclipseFileHandle(org.eclipse.core.resources.IProject project)
|
| 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. |
ProjectHandle |
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Field Detail |
|---|
protected final EclipseProjectHandle projectHandle
protected final org.eclipse.core.resources.IResource resource
| Constructor Detail |
|---|
protected EclipseFileHandle(org.eclipse.core.resources.IProject project)
public EclipseFileHandle(EclipseProjectHandle projectHandle,
org.eclipse.core.resources.IResource resource)
| Method Detail |
|---|
public boolean exists()
FileHandle
exists in interface FileHandlepublic java.lang.String getAbsoluteName()
FileHandle
getAbsoluteName in interface FileHandle
public java.io.InputStream getContents()
throws org.eclipse.core.runtime.CoreException
FileHandle
getContents in interface FileHandleorg.eclipse.core.runtime.CoreException - if Eclipse resource access problempublic java.lang.String getName()
FileHandle
getName in interface FileHandlepublic EclipseFileHandle getParentFileHandle()
FileHandle
getParentFileHandle in interface FileHandlepublic ProjectHandle getProjectHandle()
FileHandle
getProjectHandle in interface FileHandlepublic java.lang.String getProjectRelativeName()
FileHandle
getProjectRelativeName in interface FileHandlepublic org.eclipse.core.runtime.IPath getProjectRelativePath()
public org.eclipse.core.resources.IResource getResource()
public org.eclipse.emf.common.util.URI getURI()
FileHandle
getURI in interface FileHandlepublic org.eclipse.core.resources.IFile isFile()
FileHandle
isFile in interface FileHandlepublic org.eclipse.core.resources.IFolder isFolder()
FileHandle
isFolder in interface FileHandlepublic org.eclipse.core.resources.IProject isProject()
FileHandle
isProject in interface FileHandlepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||