|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ocltf.translation.library.Library
This class contains the translation library information loaded from a translation-library.xml file.
Constructor Summary | |
Library()
|
Method Summary | |
void |
addLibraryTranslation(LibraryTranslation libraryTranslation)
Adds a new LibraryTranslation. |
void |
addTemplateObject(TemplateObject templateObject)
Adds a TransformerConfig object which will make a Transformer object available to this Library. |
static Library |
getInstance(java.net.URL libraryXml)
Returns a new configured instance of this Library from the libraryXml URL. |
LibraryTranslation |
getLibraryTranslation(java.lang.String name)
Retrieves the LibraryTranslation with the specified name. |
java.util.Map |
getLibraryTranslations()
Gets the LibraryTranslation instances (keyed by name) which are part of this Library. |
java.lang.String |
getName()
Returns the name of this Library. |
java.net.URL |
getResource()
The resource URI from which this Library was configured. |
java.lang.String |
getResourceName()
The name of the resource (i.e META-INF/cartridge.xml) that will configure an instance of this Plugin. |
java.util.Map |
getTemplateObjects()
Returns all the TemplateObject objects that are available to this Cartridge. |
void |
setName(java.lang.String name)
Sets the name of this Library. |
void |
setTemplateEngine(java.lang.String templateEngineClass)
Sets the TemplateEngine class that will perform processing of the translation file. |
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 Library()
Method Detail |
public static Library getInstance(java.net.URL libraryXml)
libraryXml
- the URI to the library XML configuration document.
public java.lang.String getName()
getName
in interface Plugin
public void setName(java.lang.String name)
name
- public java.net.URL getResource()
public void addLibraryTranslation(LibraryTranslation libraryTranslation)
libraryTranslation
- public java.util.Map getLibraryTranslations()
public LibraryTranslation getLibraryTranslation(java.lang.String name)
name
-
name
.public void setTemplateEngine(java.lang.String templateEngineClass)
templateEngineClass
- the Class to use for the TemplateEnginepublic void setTranslator(java.lang.String translatorClass)
translatorClass
- the Class for the Translator implementation.public void addTemplateObject(TemplateObject templateObject)
public java.util.Map getTemplateObjects()
public java.lang.String getResourceName()
Plugin
getResourceName
in interface Plugin
Plugin.getResourceName()
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |