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 Details

    • AbstractVarTEI

      public AbstractVarTEI()
  • Method Details

    • 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 class TagExtraInfo
      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.