|
||||||||||
| 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.standalone.JavaFileHandle
org.eclipse.ocl.examples.modelregistry.standalone.JavaProjectHandle
public class JavaProjectHandle
| Field Summary |
|---|
| Fields inherited from class org.eclipse.ocl.examples.modelregistry.standalone.JavaFileHandle |
|---|
file, projectHandle |
| Fields inherited from interface org.eclipse.ocl.examples.modelregistry.environment.ProjectHandle |
|---|
DEFAULT_MODEL_REGISTRY_NAME, DEFAULT_MODEL_REGISTRY_NAME2, DEFAULT_MODEL_REGISTRY_PATH, DEFAULT_MODEL_REGISTRY_PATH2 |
| Constructor Summary | |
|---|---|
JavaProjectHandle(java.io.File projectFile,
java.lang.String registryPath)
|
|
JavaProjectHandle(java.lang.String projectFile,
java.lang.String registryPath)
|
|
| Method Summary | |
|---|---|
JavaFileHandle |
getFileHandle(java.io.File file)
|
JavaFileHandle |
getFileHandle(java.lang.String name)
Return the FileHandle for the model located at name relative to the project, if the name does not start with a /, or with respect to the root if it does. |
JavaFileHandle |
getParentFileHandle()
Return the handle of the parent of this handle. |
java.io.File |
getRegistryFile()
|
java.lang.String |
getRegistryName()
Get the name of the registry model with respect to the project. |
java.util.List<java.lang.String> |
getRegistryNames()
|
org.eclipse.emf.common.util.URI |
getRegistryURI()
Get the preferred URI of the registry model. |
java.util.List<org.eclipse.emf.common.util.URI> |
getRegistryURIs()
Get all possible URIs of the registry model. |
java.lang.String |
getRoot()
|
org.eclipse.emf.common.util.URI |
getURI()
Get the URI of the file. |
void |
refreshRegistry()
Respond to a notification that the registry has changed. |
void |
setRegistryName(java.lang.String name)
Define the name of the registry model with respect to the project. |
void |
setRegistryNames(java.util.List<java.lang.String> names)
|
void |
setRoot(java.lang.String rootPath)
|
| Methods inherited from class org.eclipse.ocl.examples.modelregistry.standalone.JavaFileHandle |
|---|
createCanonicalFileName, exists, getAbsoluteName, getContents, getFile, getName, getProjectHandle, getProjectRelativeName, getProjectRelativePath, isFile, isFolder, isProject, 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.ocl.examples.modelregistry.environment.FileHandle |
|---|
exists, getAbsoluteName, getContents, getName, getProjectHandle, getProjectRelativeName, isFile, isFolder, isProject |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Constructor Detail |
|---|
public JavaProjectHandle(java.lang.String projectFile,
java.lang.String registryPath)
throws java.io.IOException
java.io.IOException
public JavaProjectHandle(java.io.File projectFile,
java.lang.String registryPath)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public JavaFileHandle getFileHandle(java.lang.String name)
throws java.io.IOException
ProjectHandle
getFileHandle in interface ProjectHandlejava.io.IOException
public JavaFileHandle getFileHandle(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic JavaFileHandle getParentFileHandle()
FileHandle
getParentFileHandle in interface FileHandlegetParentFileHandle in class JavaFileHandlepublic java.io.File getRegistryFile()
public java.lang.String getRegistryName()
ProjectHandle
getRegistryName in interface ProjectHandlepublic java.util.List<java.lang.String> getRegistryNames()
public org.eclipse.emf.common.util.URI getRegistryURI()
ProjectHandle
getRegistryURI in interface ProjectHandlepublic java.util.List<org.eclipse.emf.common.util.URI> getRegistryURIs()
ProjectHandle
getRegistryURIs in interface ProjectHandlepublic java.lang.String getRoot()
public org.eclipse.emf.common.util.URI getURI()
FileHandle
getURI in interface FileHandlegetURI in class JavaFileHandlepublic void refreshRegistry()
ProjectHandle
refreshRegistry in interface ProjectHandlepublic void setRegistryName(java.lang.String name)
ProjectHandle
setRegistryName in interface ProjectHandlename - registry namepublic void setRegistryNames(java.util.List<java.lang.String> names)
public void setRoot(java.lang.String rootPath)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||