|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.moesol.generator.TranslationContext
public class TranslationContext
Provide the translation options, mappings and access to .tmpl files. The path to the translation map is given in the constructor. The class then uses the directory of the map file to find the template files.
Constructor Summary | |
---|---|
TranslationContext(String map_path)
|
Method Summary | |
---|---|
boolean |
genIncludesPackage()
|
boolean |
genIncludesPrivate()
|
boolean |
genIncludesProtected()
|
boolean |
getNoNative()
|
boolean |
getNoSync()
|
boolean |
getNoValues()
|
String |
getPrefix()
|
String |
getProperty(String key)
|
boolean |
getSkipOnMissingTranslation()
|
String |
getSuffix()
|
InputStream |
getTmplAsStream(String name)
|
String |
getTraceFinds()
|
Properties |
getTranslationMap()
|
void |
setGenPackage(boolean v)
|
void |
setGenPrivate(boolean v)
|
void |
setGenProtected(boolean v)
|
void |
setMapForClass(Class c)
Allows the mapping to be spread out over many files, one for each class. |
void |
setNoNative(boolean v)
|
void |
setNoSync(boolean v)
|
void |
setNoValues(boolean v)
|
void |
setPrefix(String prefix)
Set to override the default language search prefix For example, search for load.method instead of java.method. |
void |
setSkipOnMissingTranslation(boolean skip)
Set to allow missing translations to key method skipping. |
void |
setSuffix(String suffix)
Set to override the default language suffix. |
void |
setTraceFinds(String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TranslationContext(String map_path) throws IOException, FileNotFoundException
IOException
FileNotFoundException
Method Detail |
---|
public String getProperty(String key) throws ApplyException
ApplyException
public Properties getTranslationMap()
public InputStream getTmplAsStream(String name)
public void setMapForClass(Class c) throws IOException
IOException
public void setTraceFinds(String name)
public void setPrefix(String prefix)
public String getPrefix()
public void setSuffix(String suffix)
public String getSuffix()
public String getTraceFinds()
public void setSkipOnMissingTranslation(boolean skip)
public boolean getSkipOnMissingTranslation()
public void setGenProtected(boolean v)
public boolean genIncludesProtected()
public void setGenPackage(boolean v)
public boolean genIncludesPackage()
public void setGenPrivate(boolean v)
public boolean genIncludesPrivate()
public void setNoNative(boolean v)
public boolean getNoNative()
public void setNoValues(boolean v)
public boolean getNoValues()
public void setNoSync(boolean v)
public boolean getNoSync()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |