org.eclipse.xtext.generator
Class InMemoryFileSystemAccess
java.lang.Object
org.eclipse.xtext.generator.AbstractFileSystemAccess
org.eclipse.xtext.generator.InMemoryFileSystemAccess
- All Implemented Interfaces:
- IFileSystemAccess, IFileSystemAccessExtension, IFileSystemAccessExtension2
public class InMemoryFileSystemAccess
- extends AbstractFileSystemAccess
- Since:
- 2.0
- Author:
- Sven Efftinge - Initial contribution and API
Method Summary |
void |
deleteFile(java.lang.String fileName,
java.lang.String outputConfigName)
|
void |
generateFile(java.lang.String fileName,
java.lang.String outputConfigName,
java.lang.CharSequence contents)
|
java.util.Map<java.lang.String,java.lang.CharSequence> |
getFiles()
|
org.eclipse.emf.common.util.URI |
getURI(java.lang.String fileName,
java.lang.String outputConfiguration)
Returns an URI for the specified file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InMemoryFileSystemAccess
public InMemoryFileSystemAccess()
generateFile
public void generateFile(java.lang.String fileName,
java.lang.String outputConfigName,
java.lang.CharSequence contents)
- Parameters:
fileName
- using '/' as file separatoroutputConfigName
- the name of the output configurationcontents
- the to-be-written contents.
deleteFile
public void deleteFile(java.lang.String fileName,
java.lang.String outputConfigName)
- Specified by:
deleteFile
in interface IFileSystemAccessExtension
- Overrides:
deleteFile
in class AbstractFileSystemAccess
- Parameters:
fileName
- using '/' as file separatoroutputConfigName
- the name of the output configuration
getFiles
public java.util.Map<java.lang.String,java.lang.CharSequence> getFiles()
getURI
public org.eclipse.emf.common.util.URI getURI(java.lang.String fileName,
java.lang.String outputConfiguration)
- Description copied from interface:
IFileSystemAccessExtension2
- Returns an URI for the specified file.
For workspace files a platform:/resource URI should be returned in order to pick up project specific preferences.
- Since:
- 2.3