Tagpublic class AnaTag extends BaseTag
An AnaTag represents analytic values calculated from a
List of values already exposed to the context. It uses
jAgg functionality and exposes the results and
AnalyticAggregators used for display later.
BaseTag.ListStringStringString| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
ATTR_ANALYTICS |
Attribute that specifies the
List of analytic functions to
use. |
static java.lang.String |
ATTR_ANALYTICS_VAR |
Attribute that specifies the name of the
List of exposed
AnalyticAggregators. |
static java.lang.String |
ATTR_ITEMS |
Attribute that specifies the
List of items to analyze. |
static java.lang.String |
ATTR_VALUES_VAR |
Attribute that specifies name of the
List of exposed
analytic values. |
ATTR_ON_PROCESSED, SPEC_SEP| Constructor | Description |
|---|---|
AnaTag() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getName() |
Returns this
Tag's name. |
protected java.util.List<java.lang.String> |
getOptionalAttributes() |
Returns a
List of optional attribute names. |
protected java.util.List<java.lang.String> |
getRequiredAttributes() |
Returns a
List of required attribute names. |
boolean |
process() |
Run an "analyze" operation on the specified
AnalyticFunctions, get
the results, and expose the analytic values and the
AnalyticAggregators used. |
void |
validateAttributes() |
Validates the attributes for this
Tag. |
checkAttributes, clearBlock, deleteBlock, getAttributes, getContext, getLocation, getParentTag, getWorkbookContext, isBodiless, processTag, removeBlock, setAttributes, setBodiless, setContext, setParentTag, setWorkbookContextpublic static final java.lang.String ATTR_ITEMS
List of items to analyze.public static final java.lang.String ATTR_ANALYTICS
List of analytic functions to
use.public static final java.lang.String ATTR_ANALYTICS_VAR
List of exposed
AnalyticAggregators.public static final java.lang.String ATTR_VALUES_VAR
List of exposed
analytic values.public java.lang.String getName()
Tag's name.Tag's name.protected java.util.List<java.lang.String> getRequiredAttributes()
List of required attribute names.getRequiredAttributes in class BaseTagList of required attribute names.protected java.util.List<java.lang.String> getOptionalAttributes()
List of optional attribute names.getOptionalAttributes in class BaseTagList of optional attribute names.public void validateAttributes()
throws TagParseException
Tag. The "items"
attribute must be a List. The "analytics" attribute must be
a semicolon-separated list of valid analytic specification strings.
The "valuesVar" attribute must be a string that indicates the name to
which the analytic values will be exposed in the Map of
beans. The "analyticsVar" attribute must be a string that indicates the
name of the List that contains all created
AnalyticAggregators and to which that will be exposed in the
Map of beans. The "ana" tag must have a body.validateAttributes in class BaseTagTagParseException - If the attribute values are illegal or
unacceptable.public boolean process()
AnalyticFunctions, get
the results, and expose the analytic values and the
AnalyticAggregators used.Copyright © 2012–2018 Jett Team. All rights reserved.