public class BundleWriterJavaInterface extends BundleWriter
BundleWriter.FileType| Modifier and Type | Field and Description |
|---|---|
protected int |
indentNum |
protected int |
indentSize |
allowedLocales, bundles, configFile, currentBundle, debugMode, 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 String |
getInterfaceFileName() |
protected String |
getInterfacePathName() |
protected boolean |
isKeyNotContained() |
protected boolean |
isKeysContained() |
protected boolean |
needsNewFiles()
true when generation is neccessary, false when up-to-date
|
protected void |
printEntryComment(PrintWriter pw,
MBEntry eachEntry,
Iterator<MBText> texts) |
protected PrintWriter |
printIndent(PrintWriter pw) |
void |
setExampleLocale(String exampleLocale) |
protected String |
suffix() |
protected void |
writeConstants(PrintWriter pw,
MBBundle aBundle)
Write the constants to the interface file.
|
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, createProperties, deleteFiles, deleteFiles, execute, getCurrentBundle, getFileName, getFileNameFlex, getFileNameJava, getLocalesUsed, getLocalesUsed, getOutputPath, getOutputPathName, isFlexLayout, mkdirs, setBundles, 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 String getInterfaceFileName()
protected String getInterfacePathName()
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 writeConstants(PrintWriter pw, MBBundle aBundle)
pw - writer to write toaBundle - to read fromprotected void printEntryComment(PrintWriter pw, MBEntry eachEntry, Iterator<MBText> texts)
protected void writeKeyValue(PrintWriter pw, String key, String value)
protected boolean needsNewFiles()
throws FileNotFoundException
needsNewFiles in class BundleWriterFileNotFoundExceptionprotected PrintWriter printIndent(PrintWriter pw)
Copyright © 2017. All rights reserved.