org.nuiton.eugene.plugin.writer
Class BaseChainedFileWriter

java.lang.Object
  extended by org.nuiton.eugene.writer.AbstractChainedFileWriter
      extended by org.nuiton.eugene.plugin.writer.BaseChainedFileWriter
All Implemented Interfaces:
ChainedFileWriter
Direct Known Subclasses:
ModelChainedFileWriter, XmiChainedFileWriter, ZargoChainedFileWriter

public abstract class BaseChainedFileWriter
extends AbstractChainedFileWriter

Surcharge de l'implentation abstraite pour avoir le logger de la console maven.

Since:
2.0.0
Author:
tchemit

Field Summary
 
Fields inherited from class org.nuiton.eugene.writer.AbstractChainedFileWriter
authorizedPropertyDescriptions, entries, nextWriter, previousWriter, properties
 
Constructor Summary
protected BaseChainedFileWriter(String... propertyNameAndDescriptions)
           
 
Method Summary
protected  boolean acceptObjectModelOrStateModel(String modelType)
           
protected  void copyResources(ChainedFileWriterConfiguration configuration, File outputDirectory, File inputDirectory, File file, Map<File,List<File>> resourcesByFile)
           
 List<URL> getFiles(ChainedFileWriterConfiguration configuration, File inputDirectory, List<String> includePattern, boolean inClassPath)
           
 org.apache.maven.plugin.logging.Log getLog()
           
 List<URL> getResources(URL file)
           
protected  void initWriter(ChainedFileWriterConfiguration configuration)
           
 void setLog(org.apache.maven.plugin.logging.Log log)
           
 
Methods inherited from class org.nuiton.eugene.writer.AbstractChainedFileWriter
addEntry, clear, generate, 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
 
Methods inherited from interface org.nuiton.eugene.writer.ChainedFileWriter
acceptInclude, acceptModel, getDefaultIncludes, getDefaultInputDirectory, getDefaultOutputDirectory, getDefaultTestInputDirectory, getDefaultTestOutputDirectory, getInputProtocol, getOutputProtocol
 

Constructor Detail

BaseChainedFileWriter

protected BaseChainedFileWriter(String... propertyNameAndDescriptions)
Method Detail

setLog

public void setLog(org.apache.maven.plugin.logging.Log log)

getLog

public org.apache.maven.plugin.logging.Log getLog()

getFiles

public final List<URL> getFiles(ChainedFileWriterConfiguration configuration,
                                File inputDirectory,
                                List<String> includePattern,
                                boolean inClassPath)
                         throws MalformedURLException,
                                IllegalArgumentException
Throws:
MalformedURLException
IllegalArgumentException

getResources

public final List<URL> getResources(URL file)
                             throws IOException
Throws:
IOException

initWriter

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

acceptObjectModelOrStateModel

protected boolean acceptObjectModelOrStateModel(String modelType)

copyResources

protected void copyResources(ChainedFileWriterConfiguration configuration,
                             File outputDirectory,
                             File inputDirectory,
                             File file,
                             Map<File,List<File>> resourcesByFile)
                      throws IOException
Throws:
IOException


Copyright © 2006-2010 CodeLutin. All Rights Reserved.