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
public abstract class AbstractVarTEI extends TagExtraInfo
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 Constructor Description AbstractVarTEI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VariableInfo[]
getVariableInfo(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
-
-
-
-
Method Detail
-
getVariableInfo
public VariableInfo[] getVariableInfo(TagData data)
Description copied from class:TagExtraInfo
information on scripting variables defined by the tag associated with this TagExtraInfo instance. Request-time attributes are indicated as such in the TagData parameter.- Overrides:
getVariableInfo
in 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.
-
-