Tagpublic class SetTag extends BaseTag
A SetTag has no direct effect on the resultant spreadsheet.
It stores a new variable-value pair in the current beans map. The variable
name must be a legal variable name in JEXL. Set the value to be any legal
JEXL expression. This tag must be bodiless.
BaseTag.StringObjectRichTextString| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
ATTR_DISPLAY |
Attribute that specifies the display value of the cell after this tag
has been processed, if any.
|
static java.lang.String |
ATTR_VALUE |
Attribute that specifies the value to set -- any object that can be
specified in a legal JEXL expression.
|
static java.lang.String |
ATTR_VAR |
Attribute that specifies the name of the variable in the beans map to
create or modify.
|
ATTR_ON_PROCESSED, SPEC_SEP| Constructor | Description |
|---|---|
SetTag() |
| 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() |
Sets the given variable name to the given value.
|
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_VAR
public static final java.lang.String ATTR_VALUE
public static final java.lang.String ATTR_DISPLAY
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 "var" and
"value" attributes must be present.validateAttributes in class BaseTagTagParseException - If the attribute values are illegal or
unacceptable.Copyright © 2012–2018 Jett Team. All rights reserved.