public class BundleWriterJavaInterface extends BundleWriter
BundleWriter.FileTypeallowedLocales, configFile, currentBundle, deleteOldFiles, fileType, flexLayout, myUsedLocales, outputPath, overwrite, task| Constructor and Description |
|---|
BundleWriterJavaInterface(org.apache.tools.ant.Task task,
String configFile,
MBBundle currentBundle,
String outputPath,
BundleWriter.FileType fileType,
Set<String> allowedLocales) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createKeyName(String keyName) |
String |
getExampleLocale() |
protected String |
getIClass() |
protected boolean |
isKeyNotContained() |
protected boolean |
isKeysContained() |
protected boolean |
needsNewFiles()
true when generation is neccessary, false when up-to-date
|
void |
setExampleLocale(String exampleLocale) |
protected String |
suffix() |
protected void |
writeDoNotAlter(PrintWriter pw) |
protected void |
writeKeyValue(PrintWriter pw,
String key,
String value) |
void |
writeOutputFiles()
generate the current bundle's interface
|
protected void |
writeStaticIntro(PrintWriter pw)
Write the static beginning of the interface file.
|
protected void |
writeStaticOutro(PrintWriter pw)
Write the static end of the interface file.
|
protected void |
writeType(PrintWriter pw) |
buildOutputFileNameBase, buildOutputFileNameBase, createProperties, deleteFiles, deleteFiles, execute, getCurrentBundle, getFileName, getFileNameFlex, getFileNameJava, getLocalesUsed, getOutputPath, getOutputPathName, isFlexLayout, mkdirs, setDebugMode, setDeleteOldFiles, setFlexLayout, setOverwrite, writeOutputFilePerLocalepublic String getExampleLocale()
public void setExampleLocale(String exampleLocale)
protected String suffix()
suffix in class BundleWriterpublic void writeOutputFiles()
throws Exception
writeOutputFiles in class BundleWriterExceptionprotected boolean isKeysContained()
protected boolean isKeyNotContained()
protected String getIClass()
protected void writeStaticIntro(PrintWriter pw)
pw - writer to write toprotected void writeType(PrintWriter pw)
protected void writeDoNotAlter(PrintWriter pw)
protected void writeStaticOutro(PrintWriter pw)
pw - writer to write toprotected void writeKeyValue(PrintWriter pw, String key, String value)
protected boolean needsNewFiles()
throws FileNotFoundException
needsNewFiles in class BundleWriterFileNotFoundExceptionCopyright © 2015. All rights reserved.