public class TagPromotionCode extends java.lang.Object implements Tag
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
COPYRIGHT
|
Constructor and Description |
---|
TagPromotionCode()
This method is the default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTagValue()
This method returns the tag replacement value.
|
void |
setCommandContext(CommandContext cc)
This method sets the command context.
|
void |
setTagParameters(java.util.Hashtable tagParametersCopy)
This method copies the hash table containing key-value parameters required to evaluate
this tag into the class level variable.
|
void |
setTagParameters(java.lang.String tagParamName,
java.lang.String tagParamValue)
This method sets a key-value parameter required to evaluate this tag.
|
public static final java.lang.String COPYRIGHT
public TagPromotionCode()
public void setCommandContext(CommandContext cc)
setCommandContext
in interface Tag
cc
- The command contextpublic java.lang.String getTagValue() throws ECException
AllocatePromotionCodeCmd
to find an unassigned
promotion code for the specified promotion. This method will throw
an ECApplicationException
in the following situations:
getTagValue
in interface Tag
ECException
public void setTagParameters(java.lang.String tagParamName, java.lang.String tagParamValue)
setTagParameters
in interface Tag
tagParamName
- The key name.tagParamValue
- The value of the tag parameter.public void setTagParameters(java.util.Hashtable tagParametersCopy)
setTagParameters
in interface Tag
tagParametersCopy
- The hashtable containing the key-value pairs needed to evaluate this tag.