public class BundleWriterTypeScript extends BundleWriterJavaInterface
BundleWriter.FileTypeindentNum, indentSizeallowedLocales, bundles, configFile, currentBundle, debugMode, deleteOldFiles, fileType, flexLayout, myUsedLocales, outputPath, overwrite, task| Constructor and Description |
|---|
BundleWriterTypeScript(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 |
getInterfaceFileName() |
protected boolean |
isKeysContained() |
static String[] |
splitCamelCase(String name) |
protected String |
suffix() |
protected void |
writeConstants(PrintWriter pw,
MBBundle bundle)
Write the constants to the interface file.
|
protected void |
writeKeyValue(PrintWriter pw,
String key,
String value) |
protected void |
writeStaticIntro(PrintWriter pw)
Write the static beginning of the interface file.
|
protected void |
writeType(PrintWriter pw) |
createKeyName, getExampleLocale, getIClass, getInterfacePathName, isKeyNotContained, needsNewFiles, printEntryComment, printIndent, setExampleLocale, writeDoNotAlter, writeOutputFiles, writeStaticOutrobuildOutputFileNameBase, buildOutputFileNameBase, createProperties, createProperties, deleteFiles, deleteFiles, execute, getCurrentBundle, getFileName, getFileNameFlex, getFileNameJava, getLocalesUsed, getLocalesUsed, getOutputPath, getOutputPathName, isFlexLayout, mkdirs, setBundles, setDebugMode, setDeleteOldFiles, setFlexLayout, setOverwrite, writeOutputFilePerLocaleprotected String suffix()
suffix in class BundleWriterJavaInterfaceprotected String getInterfaceFileName()
getInterfaceFileName in class BundleWriterJavaInterfaceprotected void writeStaticIntro(PrintWriter pw)
BundleWriterJavaInterfacewriteStaticIntro in class BundleWriterJavaInterfacepw - writer to write toprotected boolean isKeysContained()
isKeysContained in class BundleWriterJavaInterfaceprotected void writeType(PrintWriter pw)
writeType in class BundleWriterJavaInterfaceprotected void writeKeyValue(PrintWriter pw, String key, String value)
writeKeyValue in class BundleWriterJavaInterfaceprotected void writeConstants(PrintWriter pw, MBBundle bundle)
BundleWriterJavaInterfacewriteConstants in class BundleWriterJavaInterfacepw - writer to write tobundle - to read fromCopyright © 2017. All rights reserved.