Class AbstractVarTEI
java.lang.Object
javax.servlet.jsp.tagext.TagExtraInfo
org.apache.sling.scripting.jsp.taglib.tei.AbstractVarTEI
- Direct Known Subclasses:
AdaptToTEI,GetPropertyTEI,ResourceIteratorVariableTEI,ResourceVariableTEI,StringVariableTEI
Abstract TEI that that provides the type for a single
variable named in the tag's "var" attribute.
The name of the attribute can be overwritten via a custom default
constructor or by overwriting getVariableName(javax.servlet.jsp.tagext.TagData).
All implementations need to overwrite getClassName(javax.servlet.jsp.tagext.TagData)
in order to provide the type (class name) of the variable.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetVariableInfo(TagData data) information on scripting variables defined by the tag associated with this TagExtraInfo instance.Methods inherited from class javax.servlet.jsp.tagext.TagExtraInfo
getTagInfo, isValid, setTagInfo, validate
-
Constructor Details
-
AbstractVarTEI
public AbstractVarTEI()
-
-
Method Details
-
getVariableInfo
Description copied from class:TagExtraInfoinformation on scripting variables defined by the tag associated with this TagExtraInfo instance. Request-time attributes are indicated as such in the TagData parameter.- Overrides:
getVariableInfoin classTagExtraInfo- Parameters:
data- The TagData instance.- Returns:
- An array of VariableInfo data, or null or a zero length array if no scripting variables are to be defined.
-