de.viaboxx.nlstools.formats
Class BundleWriterJavaInterface

java.lang.Object
  extended by de.viaboxx.nlstools.formats.BundleWriter
      extended by de.viaboxx.nlstools.formats.BundleWriterJavaInterface

public class BundleWriterJavaInterface
extends BundleWriter

Description:
User: roman.stumm
Date: 15.06.2007
Time: 12:14:13
Copyright: Viaboxx GmbH


Nested Class Summary
 
Nested classes/interfaces inherited from class de.viaboxx.nlstools.formats.BundleWriter
BundleWriter.FileType
 
Field Summary
 
Fields inherited from class de.viaboxx.nlstools.formats.BundleWriter
allowedLocales, configFile, currentBundle, deleteOldFiles, fileType, flexLayout, myUsedLocales, outputPath, overwrite, task
 
Constructor Summary
BundleWriterJavaInterface(org.apache.tools.ant.Task task, String configFile, MBBundle currentBundle, String outputPath, BundleWriter.FileType fileType, Set<String> allowedLocales)
           
 
Method Summary
 String getExampleLocale()
           
protected  boolean needsNewFiles()
          true when generation is neccessary, false when up-to-date
 void setExampleLocale(String exampleLocale)
           
protected  String suffix()
           
 void writeOutputFiles()
          generate the current bundle's interface
 
Methods inherited from class de.viaboxx.nlstools.formats.BundleWriter
buildOutputFileNameBase, buildOutputFileNameBase, createProperties, deleteFiles, deleteFiles, execute, getCurrentBundle, getFileName, getFileNameFlex, getFileNameJava, getLocalesUsed, getOutputPath, getOutputPathName, isFlexLayout, mkdirs, setDebugMode, setDeleteOldFiles, setFlexLayout, setOverwrite, writeOutputFilePerLocale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleWriterJavaInterface

public BundleWriterJavaInterface(org.apache.tools.ant.Task task,
                                 String configFile,
                                 MBBundle currentBundle,
                                 String outputPath,
                                 BundleWriter.FileType fileType,
                                 Set<String> allowedLocales)
Method Detail

getExampleLocale

public String getExampleLocale()

setExampleLocale

public void setExampleLocale(String exampleLocale)

suffix

protected String suffix()
Specified by:
suffix in class BundleWriter

writeOutputFiles

public void writeOutputFiles()
                      throws Exception
generate the current bundle's interface

Overrides:
writeOutputFiles in class BundleWriter
Throws:
Exception

needsNewFiles

protected boolean needsNewFiles()
                         throws FileNotFoundException
true when generation is neccessary, false when up-to-date

Overrides:
needsNewFiles in class BundleWriter
Throws:
FileNotFoundException


Copyright © 2014. All Rights Reserved.