public abstract class BaseTag
extends javax.servlet.jsp.tagext.TagSupport
This class also provides access to useful, common objects like the CommandContext
,
the BIConfigRegistry
, and Collator
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
BaseTag()
Upon construction, get the global configuration object and save it for later use
|
Modifier and Type | Method and Description |
---|---|
int |
doStartTag()
Executed when the tag is first reached.
|
java.lang.String |
getBiprovider()
Gets the BI provider as set on the tag
|
java.lang.String |
getCategoryIdForProduct(java.lang.String catEntryId)
Deprecated.
Use
com.ibm.commerce.bi.taglib.TagUtils.findCategoryId(
Long catEntryId, HttpServletRequest request, CommandContext ctx) |
com.ibm.icu.text.Collator |
getCollator()
Returns the
Collator of the current request in the current Locale. |
CommandContext |
getCommandContext()
Returns the
CommandContext of the current request. |
BIConfigRegistry |
getConfig()
Gets the instance of the global BI configuration object.
|
com.ibm.icu.text.NumberFormat |
getNumberFormat()
Returns a
NumberFormat instance which can be used for formatting purposes |
java.lang.String |
getOptionValue(java.lang.String option)
Returns the value of the given option.
|
java.lang.String |
getStoreId()
Returns the store identifier
|
boolean |
isDebug()
Whether or not debug output will be shown on the JSP.
|
boolean |
isOptionDisabled(java.lang.String option)
Returns true if the given option is disabled.
|
boolean |
isOptionEnabled(java.lang.String option)
Returns true if the given option is enabled.
|
void |
setBiprovider(java.lang.String biProvider)
Sets the BI provider
|
void |
setDebug(boolean d)
Turns debugging information on or off for this particular tag instance.
|
public static final java.lang.String COPYRIGHT
public BaseTag()
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
SKIP_BODY
constant as these tags are not body tagsjavax.servlet.jsp.JspException
- on any Exceptionpublic boolean isDebug()
true
, all parameters set and displayed
via generateJavaScript(Hashtable)
will be displayed. If the
debug parameter is not set in the tag on the JSP, the global configuration setting will be used.public void setDebug(boolean d)
d
- Turns debugging information on or off.public CommandContext getCommandContext()
CommandContext
of the current request.CommandContext
of the current request.public BIConfigRegistry getConfig()
public com.ibm.icu.text.Collator getCollator()
Collator
of the current request in the current Locale.Collator
of the current request in the current Locale.public java.lang.String getStoreId()
public com.ibm.icu.text.NumberFormat getNumberFormat()
NumberFormat
instance which can be used for formatting purposesNumberFormat
instancepublic java.lang.String getCategoryIdForProduct(java.lang.String catEntryId)
com.ibm.commerce.bi.taglib.TagUtils.findCategoryId(
Long catEntryId, HttpServletRequest request, CommandContext ctx)
catEntryId
- The catalog entry Id of the productpublic java.lang.String getBiprovider()
public void setBiprovider(java.lang.String biProvider)
biProvider
- The BI provider name, as defined in biConfig.xmlpublic java.lang.String getOptionValue(java.lang.String option)
option
- The option namepublic boolean isOptionEnabled(java.lang.String option)
option
- The option namepublic boolean isOptionDisabled(java.lang.String option)
option
- The option name