public abstract class AbstractVarTEI
extends javax.servlet.jsp.tagext.TagExtraInfo
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.
| Modifier | Constructor and Description |
|---|---|
|
AbstractVarTEI() |
protected |
AbstractVarTEI(String variableNameAttribute)
Constructor that takes the name of the attribute that defines the variable name
and the name of the attribute that defines the class name.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getClassName(javax.servlet.jsp.tagext.TagData data)
Provides the fully qualified class name of the variable injected into
the
pageContext. |
javax.servlet.jsp.tagext.VariableInfo[] |
getVariableInfo(javax.servlet.jsp.tagext.TagData data) |
protected String |
getVariableName(javax.servlet.jsp.tagext.TagData data)
Provides the name of the variable injected into the
pageContext. |
protected static final String ATTR_VAR
public AbstractVarTEI()
protected AbstractVarTEI(String variableNameAttribute)
variableNameAttribute - Name of the attribute that defines the variable name.protected String getVariableName(javax.servlet.jsp.tagext.TagData data)
pageContext.data - The TagData.protected abstract String getClassName(javax.servlet.jsp.tagext.TagData data)
pageContext.data - The TagData.public javax.servlet.jsp.tagext.VariableInfo[] getVariableInfo(javax.servlet.jsp.tagext.TagData data)
getVariableInfo in class javax.servlet.jsp.tagext.TagExtraInfoCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.