public class Tag2TextTransformer
extends java.lang.Object
Tag
into a text string by inserting the values from a
TagValueMap
for the variables and subtemplates.
Copyright (C) 2012-2015 JIOWA Business Solutions GmbH, Bettinastr. 30 , 60325 Frankfurt am Main, Germany
Homepage: www.jiowa.de
All rights reserved.
Download: www.jiowa.de/download.html
License: www.jiowa.de/license.html
Modifier and Type | Field and Description |
---|---|
protected TemplateMap |
templateMap |
Constructor and Description |
---|
Tag2TextTransformer(TemplateMap templateMap) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
computeTextWithIndent(Tag tag,
java.lang.String s,
boolean isNotLastElement)
Computes a text string with the same indent as a given Tag.
|
java.lang.String |
transform(Tag tag,
TagValueMap map)
Transforms a
Tag into text using a given TagValueMap which carries
values for variables and subtemplate structures. |
protected java.lang.String |
transformInlineSubTemplateTag(InlineSubTemplateTag tag,
TagValueMap map) |
protected java.lang.String |
transformSubTemplateStructureTag(SubTemplateStructureTag tag,
TagValueMap map)
Transforms a sub template structure tag into text according to the given values
TagValueMap , that
have to be filled in. |
protected java.lang.String |
transformSubTemplateTag(SubTemplateTag tag,
TagValueMap map) |
protected java.lang.String |
transformVariableTag(VariableTag tag,
TagValueMap map)
Transforms a variable tag into a text string by inserting a value for the variable.
|
protected TemplateMap templateMap
public Tag2TextTransformer(TemplateMap templateMap)
public java.lang.String transform(Tag tag, TagValueMap map)
Tag
into text using a given TagValueMap
which carries
values for variables and subtemplate structures.protected java.lang.String computeTextWithIndent(Tag tag, java.lang.String s, boolean isNotLastElement)
protected java.lang.String transformVariableTag(VariableTag tag, TagValueMap map)
protected java.lang.String transformSubTemplateStructureTag(SubTemplateStructureTag tag, TagValueMap map)
TagValueMap
, that
have to be filled in.protected java.lang.String transformSubTemplateTag(SubTemplateTag tag, TagValueMap map)
protected java.lang.String transformInlineSubTemplateTag(InlineSubTemplateTag tag, TagValueMap map)