Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
COPYRIGHT
|
static java.lang.String |
END
HTML content end
|
static java.lang.String |
HEAD
HTML content head
|
Constructor and Description |
---|
TagEngineImpl()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
parse(java.lang.String inputString)
This method parses the given input string, looking for predefined tags
and replaces them with the values returned by getTagValue method calls.
|
java.util.Map |
parseToGetTagNameValueMap(java.lang.String inputString)
Parses the given input string looking for the map of the predefined tags and
their values returned by getTagValue() method calls.
|
java.lang.String |
renderEmailContent(java.lang.String inputString)
This method calls parse(inputString) function to replace the predefined tags
with the tag replacement values.
|
java.lang.String |
renderEmailContent(java.lang.String inputString,
java.util.Hashtable parameters)
This method calls parse(inputString) function to replace the predefined tags
with the tag replacement values.
|
void |
setCommandContext(com.ibm.commerce.command.CommandContext cmdContext)
Sets the Command Context
|
void |
setTagParameters(java.util.Hashtable tagParametersCopy)
This method sets the tag parameters (key - value pair)
|
void |
setTagParameters(java.lang.String name,
java.lang.String value)
Sets the key - value pair for the tag..
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String END
public static final java.lang.String HEAD
public java.lang.String parse(java.lang.String inputString) throws com.ibm.commerce.exception.ECException
public java.util.Map parseToGetTagNameValueMap(java.lang.String inputString) throws com.ibm.commerce.exception.ECException
parseToGetTagNameValueMap
in interface TagEngine
inputString
- - string to be parsedcom.ibm.commerce.exception.ECException
public java.lang.String renderEmailContent(java.lang.String inputString) throws com.ibm.commerce.exception.ECException
renderEmailContent
in interface TagEngine
inputString
- - The string which needs to be parsed.com.ibm.commerce.exception.ECException
public java.lang.String renderEmailContent(java.lang.String inputString, java.util.Hashtable parameters) throws com.ibm.commerce.exception.ECException
renderEmailContent
in interface TagEngine
inputString
- - The string which needs to be parsed.parameters
- - The hashtable containing key-value pairs used during parsing
of the given input string. User may also set values for recordOpen(0 or 1) and
contentFormat(HTML or Plain text) keys.com.ibm.commerce.exception.ECException
TagEngine.renderEmailContent(String inputString);
public void setCommandContext(com.ibm.commerce.command.CommandContext cmdContext)
setCommandContext
in interface TagEngine
cmdContext
- Command Contextpublic void setTagParameters(java.util.Hashtable tagParametersCopy)
setTagParameters
in interface TagEngine
tagParametersCopy
- Hashtable containing tag parameters key-values.public void setTagParameters(java.lang.String name, java.lang.String value)
setTagParameters
in interface TagEngine
name
- - key namevalue
- - value of the tag parameter key