public class XMLTemplateBuilder extends XMLInterpreter implements TemplateBuilder
| Modifier and Type | Field and Description |
|---|---|
protected Hashtable |
equivalencesLabelList |
static boolean |
INCLUDE_DEFAULT_TEMPLATE |
protected String |
labelFileURI |
protected String |
myPackage |
protected String |
uRIBase |
IMPORT_TAG, LABELS_FILE, SILENT| Constructor and Description |
|---|
XMLTemplateBuilder(String labelFileURI) |
XMLTemplateBuilder(String labelFileURI,
String packageName) |
| Modifier and Type | Method and Description |
|---|---|
TemplateElement |
buildTemplate(String fileURI) |
TemplateElement |
buildTemplate(StringBuffer fileContent) |
static TemplateElement |
buildTemplate(String labelURI,
String file,
Locale locale)
Creates and return a template associated with the specified locale.
|
protected PrintingElement |
interpreterTag(CustomNode childNode,
String packageName,
Hashtable equivalenceLabelList) |
protected void |
performChildren(CustomNode node,
TemplateElement p) |
void |
setLabelFile(String labelFileURI) |
createComponent, getDefaultLabelList, getDocumentModel, getDocumentModel, getDocumentModel, getDocumentTreeModel, getExtendedDocument, getExtendedDocument, getRoot, interpreterTag, processLabelFilepublic static boolean INCLUDE_DEFAULT_TEMPLATE
protected Hashtable equivalencesLabelList
protected String labelFileURI
protected String myPackage
protected String uRIBase
public XMLTemplateBuilder(String labelFileURI, String packageName) throws Exception
Exceptionpublic void setLabelFile(String labelFileURI)
public TemplateElement buildTemplate(StringBuffer fileContent)
public TemplateElement buildTemplate(String fileURI)
buildTemplate in interface TemplateBuilderprotected void performChildren(CustomNode node, TemplateElement p)
protected PrintingElement interpreterTag(CustomNode childNode, String packageName, Hashtable equivalenceLabelList)
public static TemplateElement buildTemplate(String labelURI, String file, Locale locale)
labelURI - file - Must be the name of the file without the locale suffix but
with the extension, the same as the resource bundleslocale - Copyright © 2016 Imatia Innovation S.L.. All rights reserved.