public interface MultiElementTranslator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.List<java.lang.Object>> |
reverseTranslateOutputValues(java.util.Map<java.lang.String,ElementState> pInputNameElementStateMap,
java.util.Map<java.lang.String,java.lang.String> pOutputNameValueMap,
java.lang.Object pItemPropertyInfo,
java.util.Map<java.lang.String,java.lang.String> pAttributes)
This method will provide any reverse translation necessary to obtain
input values from the output values as a result of the
translateInputValues method above. |
java.util.Map<java.lang.String,java.util.List<java.lang.Object>> |
translateInputValues(java.util.Map<java.lang.String,ElementState> pInputNameElementStateMap,
java.util.Map<java.lang.String,java.lang.String> pOutputNameValueMap,
java.lang.Object pItemPropertyInfo,
java.util.Map<java.lang.String,java.lang.String> pAttributes)
This is the entry method to combine and/or translate multiple input
values into one or multiple outputs.
|
static final java.lang.String CLASS_VERSION
java.util.Map<java.lang.String,java.util.List<java.lang.Object>> translateInputValues(java.util.Map<java.lang.String,ElementState> pInputNameElementStateMap, java.util.Map<java.lang.String,java.lang.String> pOutputNameValueMap, java.lang.Object pItemPropertyInfo, java.util.Map<java.lang.String,java.lang.String> pAttributes) throws atg.repository.editingtemplate.TemplateException
pInputNameElementStateMap
- contains input names and associated
ElementState
. The input name is defined in the
object properties file and the associated ElementState
defined by its mapping in the template getValue()
method on each of the ElementState
objects. Final as we do
not wish any of the contents of this ElementState
to change.pOutputNameValueMap
- this is initially an empty map into which the
author must insert the outputName and value pairs where the output name
is defined by the objects property file and the value is the translated
output ready for substitution with a placeholder-name in the
item-properties section of the template.pItemPropertyInfo
- this is the known set of property names and
values for this item type.pAttributes
- optional map of attribute name value pairs if translator
XML included any 'attribute' child tags.a
- TemplateException
if there is a problem
obtaining the necessary information.atg.repository.editingtemplate.TemplateException
java.util.Map<java.lang.String,java.util.List<java.lang.Object>> reverseTranslateOutputValues(java.util.Map<java.lang.String,ElementState> pInputNameElementStateMap, java.util.Map<java.lang.String,java.lang.String> pOutputNameValueMap, java.lang.Object pItemPropertyInfo, java.util.Map<java.lang.String,java.lang.String> pAttributes) throws atg.repository.editingtemplate.TemplateException
translateInputValues
method above.pInputNameElementStateMap
- contains input names and associated
ElementState
. The input name is defined in the
object properties file and the associated ElementState
defined by its mapping in the template ElementState
by calling
the states setValue() method.pOutputNameValueMap
- contains the outputName and value pairs where
the output name is defined by the objects property file and the value is
the translated output which has been used for placeholder substitution
in the item-properties section of the template.pItemPropertyInfo
- this is the known set of property names and
values for this item type.pAttributes
- optional map of attribute name value pairs if translator
XML included any 'attribute' child tags.a
- TemplateException
if there is a problem
with the reverse translationatg.repository.editingtemplate.TemplateException