|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ocltf.translation.library.LibraryTranslation
The LibraryTranslation object which stores
Constructor Summary | |
LibraryTranslation()
|
Method Summary | |
java.lang.String |
getFile()
|
Library |
getLibrary()
Returns the Library that this LibraryTranslation belongs too. |
java.lang.String |
getName()
|
TemplateEngine |
getTemplateEngine()
Gets the TemplateEngine instance that will perform processing of the file. |
java.lang.String |
getTranslationFragment(java.lang.String name,
java.lang.String kind)
Gets the current "translated" value of this fragmentName for resulting from the last processTranslation method |
Translator |
getTranslator()
Gets the Translator instance that will perform processing of the file. |
void |
handleTranslationFragment(java.lang.String name,
java.lang.String kind,
java.lang.Object node)
Calls the handlerMethod from a translation fragment. |
Translation |
processTranslation(java.util.Map templateObjects)
Processes the file belonging to this LibraryTranslation. |
void |
setFile(java.lang.String file)
|
void |
setLibrary(Library library)
|
void |
setName(java.lang.String name)
Sets the name. |
void |
setTemplateEngine(java.lang.String templateEngineClass)
Sets the TemplateEngine class that will perform processing of the file. |
protected void |
setTranslation(java.io.Reader translationInput)
The processed translation template as a Reader. |
void |
setTranslator(java.lang.String translatorClass)
Sets the Translator class that will perform the translation processing. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LibraryTranslation()
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name
- public java.lang.String getFile()
public void setFile(java.lang.String file)
file
- public Library getLibrary()
public void setLibrary(Library library)
library
- public TemplateEngine getTemplateEngine()
public void setTemplateEngine(java.lang.String templateEngineClass)
templateEngineClass
- public void setTranslator(java.lang.String translatorClass)
translatorClass
- public Translator getTranslator()
public void handleTranslationFragment(java.lang.String name, java.lang.String kind, java.lang.Object node)
name
- the name of the fragment to retrieve.node
- the node Object which from the parsed expression.kind
- the kind of the translation fragment to handle.public java.lang.String getTranslationFragment(java.lang.String name, java.lang.String kind)
name
- the name of the fragment to retrieve.kind
- the kind or type of fragment to retrieve
(this is the based on the expression type: body, inv, post, pre, etc).
protected void setTranslation(java.io.Reader translationInput)
translationInput
- public Translation processTranslation(java.util.Map templateObjects)
templateObjects
- -
any key/value pairs that should be passed to the
TemplateEngine while processing the translation file.
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |