java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.gmt.umlx.registry.standalone.FileHandle
org.eclipse.gmt.umlx.registry.standalone.ProjectHandle
public class ProjectHandle
Field Summary |
---|
Fields inherited from interface org.eclipse.gmt.umlx.registry.environment.AbstractProjectHandle |
---|
DEFAULT_MODEL_REGISTRY_NAME |
Constructor Summary | |
---|---|
ProjectHandle(java.io.File projectFile,
java.lang.String registryPath)
|
|
ProjectHandle(java.lang.String projectFile,
java.lang.String registryPath)
|
Method Summary | |
---|---|
FileHandle |
getFileHandle(java.io.File file)
|
FileHandle |
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. |
FileHandle |
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. |
org.eclipse.emf.common.util.URI |
getRegistryURI()
Get the URI 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 |
setRoot(java.lang.String rootPath)
|
Methods inherited from class org.eclipse.gmt.umlx.registry.standalone.FileHandle |
---|
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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.gmt.umlx.registry.environment.AbstractFileHandle |
---|
exists, getAbsoluteName, getContents, getName, getProjectHandle, getProjectRelativeName, isFile, isFolder, isProject |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Constructor Detail |
---|
public ProjectHandle(java.lang.String projectFile, java.lang.String registryPath) throws java.io.IOException
java.io.IOException
public ProjectHandle(java.io.File projectFile, java.lang.String registryPath) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public FileHandle getFileHandle(java.lang.String name) throws java.io.IOException
AbstractProjectHandle
getFileHandle
in interface AbstractProjectHandle
java.io.IOException
public FileHandle getFileHandle(java.io.File file) throws java.io.IOException
java.io.IOException
public FileHandle getParentFileHandle()
AbstractFileHandle
getParentFileHandle
in interface AbstractFileHandle
getParentFileHandle
in class FileHandle
public java.io.File getRegistryFile()
public java.lang.String getRegistryName()
AbstractProjectHandle
getRegistryName
in interface AbstractProjectHandle
public org.eclipse.emf.common.util.URI getRegistryURI()
AbstractProjectHandle
getRegistryURI
in interface AbstractProjectHandle
public java.lang.String getRoot()
public org.eclipse.emf.common.util.URI getURI()
AbstractFileHandle
getURI
in interface AbstractFileHandle
getURI
in class FileHandle
public void refreshRegistry()
AbstractProjectHandle
refreshRegistry
in interface AbstractProjectHandle
public void setRegistryName(java.lang.String name)
AbstractProjectHandle
setRegistryName
in interface AbstractProjectHandle
name
- registry namepublic void setRoot(java.lang.String rootPath)