Package org.nuiton.eugene.plugin.writer
Class BaseChainedFileWriterToMemoryModel
java.lang.Object
org.nuiton.eugene.writer.AbstractChainedFileWriter
org.nuiton.eugene.plugin.writer.BaseChainedFileWriter
org.nuiton.eugene.plugin.writer.BaseChainedFileWriterToMemoryModel
- All Implemented Interfaces:
ChainedFileWriter,ChainedFileWriterToMemoryModel
- Direct Known Subclasses:
XmlModelChainedFileWriter,YamlModelChainedFileWriter
public abstract class BaseChainedFileWriterToMemoryModel extends BaseChainedFileWriter implements ChainedFileWriterToMemoryModel
TODO
- Since:
- 2.6.3
- Author:
- Tony Chemit - chemit@codelutin.com
-
Field Summary
Fields Modifier and Type Field Description protected FilelastModifiedFileprotected Modelmodelprotected FileoutputDirectorystatic StringPROP_FAIL_IF_UNSAFEstatic StringPROP_MODEL_READERstatic StringPROP_READERFields inherited from class org.nuiton.eugene.writer.AbstractChainedFileWriter
authorizedPropertyDescriptions, entries, nextWriter, previousWriter, properties -
Constructor Summary
Constructors Modifier Constructor Description protectedBaseChainedFileWriterToMemoryModel() -
Method Summary
Modifier and Type Method Description booleanacceptModel(String modelType)voidgenerate(ChainedFileWriterConfiguration configuration, File outputDir, Map<File,List<File>> filesByRoot, Map<File,List<File>> resourcesByFile)protected abstract StringgetInputType()longgetLastModifiedSource()ModelgetModel()protected ModelReader<?>getModelReader()FilegetOutputDirectory()StringgetOutputProtocol(String modelType)protected StringgetReader()protected voidinitWriter(ChainedFileWriterConfiguration configuration)protected booleanisFailIfUnsafe()protected voidsetLastModifiedSource(Iterable<File> files)Methods inherited from class org.nuiton.eugene.plugin.writer.BaseChainedFileWriter
acceptObjectModelOrStateModel, copyResources, getLog, setLogMethods inherited from class org.nuiton.eugene.writer.AbstractChainedFileWriter
addEntry, clear, generate, getAuthorizedPropertyDescriptions, getAuthorizedPropertyNames, getEntries, getExtractDirectory, getInputProtocol, getNextWriter, getOutputDirectory, getPreviousWriter, getProperty, getWriterReport, setNextWriter, setWriterReportMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuiton.eugene.writer.ChainedFileWriter
acceptInclude, addEntry, clear, generate, getAuthorizedPropertyDescriptions, getAuthorizedPropertyNames, getDefaultIncludes, getDefaultInputDirectory, getDefaultOutputDirectory, getDefaultTestInputDirectory, getDefaultTestOutputDirectory, getEntries, getExtractDirectory, getInputProtocol, getInputProtocol, getOutputDirectory, getProperty, getWriterReport, setWriterReport
-
Field Details
-
PROP_MODEL_READER
- See Also:
- Constant Field Values
-
PROP_FAIL_IF_UNSAFE
- See Also:
- Constant Field Values
-
PROP_READER
- See Also:
- Constant Field Values
-
model
-
lastModifiedFile
-
outputDirectory
-
-
Constructor Details
-
BaseChainedFileWriterToMemoryModel
protected BaseChainedFileWriterToMemoryModel()
-
-
Method Details
-
getModel
- Specified by:
getModelin interfaceChainedFileWriterToMemoryModel
-
getLastModifiedSource
public long getLastModifiedSource()- Specified by:
getLastModifiedSourcein interfaceChainedFileWriterToMemoryModel
-
getOutputDirectory
- Specified by:
getOutputDirectoryin interfaceChainedFileWriterToMemoryModel
-
getOutputProtocol
- Specified by:
getOutputProtocolin interfaceChainedFileWriter
-
acceptModel
- Specified by:
acceptModelin interfaceChainedFileWriter
-
getInputType
-
getModelReader
-
getReader
-
isFailIfUnsafe
protected boolean isFailIfUnsafe() -
initWriter
- Overrides:
initWriterin classBaseChainedFileWriter
-
generate
public void generate(ChainedFileWriterConfiguration configuration, File outputDir, Map<File,List<File>> filesByRoot, Map<File,List<File>> resourcesByFile) throws IOException- Specified by:
generatein classAbstractChainedFileWriter- Throws:
IOException
-
setLastModifiedSource
-