org.nuiton.eugene.plugin.writer
Class ModelChainedFileWriter

java.lang.Object
  extended by org.nuiton.eugene.writer.AbstractChainedFileWriter
      extended by org.nuiton.eugene.plugin.writer.BaseChainedFileWriter
          extended by org.nuiton.eugene.plugin.writer.ModelChainedFileWriter
All Implemented Interfaces:
ChainedFileWriter

public class ModelChainedFileWriter
extends BaseChainedFileWriter

To write model files from zargo files.

Since:
2.0.0
Author:
tchemit
Plexus component:
role:
"org.nuiton.eugene.writer.ChainedFileWriter"
role-hint:
"model2Java"

Field Summary
static String PROP_DEFAULT_PACKAGE
           
static String PROP_EXCLUDE_TEMPLATES
           
static String PROP_GENERATED_PACKAGES
           
static String PROP_MODEL_PROPERTIES_PROVIDER
           
static String PROP_MODEL_READER
           
static String PROP_READER
           
static String PROP_TEMPLATE_CONFIGURATION
           
static String PROP_TEMPLATES
           
static String PROP_TEMPLATES_LIST
           
 
Fields inherited from class org.nuiton.eugene.writer.AbstractChainedFileWriter
authorizedPropertyDescriptions, entries, nextWriter, previousWriter, properties
 
Constructor Summary
ModelChainedFileWriter()
           
 
Method Summary
 boolean acceptInclude(String include)
           
 boolean acceptModel(String modelType)
           
 void generate(ChainedFileWriterConfiguration configuration, File outputDir, Map<File,List<File>> filesByRoot, Map<File,List<File>> resourcesByFile)
           
 String getDefaultIncludes()
           
 String getDefaultInputDirectory()
           
 String getDefaultOutputDirectory()
           
 String getDefaultPackage()
           
 String getDefaultTestInputDirectory()
           
 String getDefaultTestOutputDirectory()
           
 String[] getExcludeTemplates()
           
 String getGeneratedPackages()
           
 String getInputProtocol()
           
protected  ModelPropertiesUtil.ModelPropertiesProvider getModelPropertiesProvider()
           
protected  ModelReader<?> getModelReader()
           
 String getOutputProtocol(String modelType)
           
protected  String getReader()
           
 TemplateConfiguration getTemplateConfiguration()
           
 String getTemplates()
           
 List<Template<Model>> getTemplatesList()
           
protected  void initWriter(ChainedFileWriterConfiguration configuration)
           
 
Methods inherited from class org.nuiton.eugene.plugin.writer.BaseChainedFileWriter
acceptObjectModelOrStateModel, copyResources, getFiles, getLog, getResources, setLog
 
Methods inherited from class org.nuiton.eugene.writer.AbstractChainedFileWriter
addEntry, clear, generate, getAuthorizedPropertyDescriptions, getAuthorizedPropertyNames, getEntries, getExtractDirectory, getInputProtocol, getNextWriter, getOutputDirectory, getPreviousWriter, getProperty, getWriterReport, setNextWriter, setWriterReport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_GENERATED_PACKAGES

public static final String PROP_GENERATED_PACKAGES
See Also:
Constant Field Values

PROP_EXCLUDE_TEMPLATES

public static final String PROP_EXCLUDE_TEMPLATES
See Also:
Constant Field Values

PROP_TEMPLATES

public static final String PROP_TEMPLATES
See Also:
Constant Field Values

PROP_TEMPLATES_LIST

public static final String PROP_TEMPLATES_LIST
See Also:
Constant Field Values

PROP_DEFAULT_PACKAGE

public static final String PROP_DEFAULT_PACKAGE
See Also:
Constant Field Values

PROP_MODEL_READER

public static final String PROP_MODEL_READER
See Also:
Constant Field Values

PROP_MODEL_PROPERTIES_PROVIDER

public static final String PROP_MODEL_PROPERTIES_PROVIDER
See Also:
Constant Field Values

PROP_READER

public static final String PROP_READER
See Also:
Constant Field Values

PROP_TEMPLATE_CONFIGURATION

public static final String PROP_TEMPLATE_CONFIGURATION
See Also:
Constant Field Values
Constructor Detail

ModelChainedFileWriter

public ModelChainedFileWriter()
Method Detail

getInputProtocol

public String getInputProtocol()

getOutputProtocol

public String getOutputProtocol(String modelType)

acceptModel

public boolean acceptModel(String modelType)

acceptInclude

public boolean acceptInclude(String include)

getDefaultIncludes

public String getDefaultIncludes()

getDefaultInputDirectory

public String getDefaultInputDirectory()

getDefaultOutputDirectory

public String getDefaultOutputDirectory()

getDefaultTestInputDirectory

public String getDefaultTestInputDirectory()

getDefaultTestOutputDirectory

public String getDefaultTestOutputDirectory()

getDefaultPackage

public String getDefaultPackage()

getExcludeTemplates

public String[] getExcludeTemplates()

getGeneratedPackages

public String getGeneratedPackages()

getTemplatesList

public List<Template<Model>> getTemplatesList()

getTemplates

public String getTemplates()

getTemplateConfiguration

public TemplateConfiguration getTemplateConfiguration()

getModelReader

protected ModelReader<?> getModelReader()

getReader

protected String getReader()

getModelPropertiesProvider

protected ModelPropertiesUtil.ModelPropertiesProvider getModelPropertiesProvider()

initWriter

protected void initWriter(ChainedFileWriterConfiguration configuration)
Overrides:
initWriter in class BaseChainedFileWriter

generate

public void generate(ChainedFileWriterConfiguration configuration,
                     File outputDir,
                     Map<File,List<File>> filesByRoot,
                     Map<File,List<File>> resourcesByFile)
              throws IOException
Specified by:
generate in class AbstractChainedFileWriter
Throws:
IOException


Copyright © 2006-2011 CodeLutin. All Rights Reserved.