Package net.officefloor.model.generate
Class FileSystemModelContext
- java.lang.Object
-
- net.officefloor.model.generate.FileSystemModelContext
-
- All Implemented Interfaces:
ModelContext
public class FileSystemModelContext extends java.lang.Object implements ModelContext
ModelContext
that creates theModelFile
instances within a file system relative to a root directory.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description FileSystemModelContext(java.io.File rootDirectory)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelFile
createModelFile(java.lang.String relativeLocation, java.io.InputStream contents)
Creates theModelFile
within thisModelContext
.
-
-
-
Method Detail
-
createModelFile
public ModelFile createModelFile(java.lang.String relativeLocation, java.io.InputStream contents) throws java.lang.Exception
Description copied from interface:ModelContext
Creates theModelFile
within thisModelContext
.- Specified by:
createModelFile
in interfaceModelContext
- Parameters:
relativeLocation
- Relative location within thisModelContext
to create theModelFile
.contents
- Contents to be written to theModelFile
.- Returns:
- Created
ModelFile
. - Throws:
java.lang.Exception
- If fails to create theModelFile
.
-
-