Package org.apache.taglibs.standard.tlv
Class JstlBaseTLV
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagLibraryValidator
-
- org.apache.taglibs.standard.tlv.JstlBaseTLV
-
- Direct Known Subclasses:
JstlCoreTLV
,JstlFmtTLV
,JstlSqlTLV
,JstlXmlTLV
public abstract class JstlBaseTLV extends javax.servlet.jsp.tagext.TagLibraryValidator
A base class to support SAX-based validation in JSTL.
- Author:
- Shawn Bayern
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
APPLICATION_SCOPE
protected Map
config
protected boolean
failed
protected String
JSP
protected String
lastElementId
protected Vector
messageVector
protected static String
PAGE_SCOPE
protected String
prefix
protected static String
REQUEST_SCOPE
protected static String
SCOPE
protected static String
SESSION_SCOPE
protected static int
TYPE_CORE
protected static int
TYPE_FMT
protected static int
TYPE_SQL
protected static int
TYPE_XML
protected String
uri
protected static String
VAR
-
Constructor Summary
Constructors Constructor Description JstlBaseTLV()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
fail(String message)
protected abstract DefaultHandler
getHandler()
protected String
getLocalPart(String qname)
protected boolean
hasAttribute(Attributes a, String att)
protected boolean
hasDanglingScope(Attributes a)
protected boolean
hasEmptyVar(Attributes a)
protected boolean
hasNoInvalidScope(Attributes a)
protected boolean
isCoreTag(String tagUri, String tagLn, String target)
protected boolean
isFmtTag(String tagUri, String tagLn, String target)
protected boolean
isJspTag(String tagUri, String tagLn, String target)
protected boolean
isSpecified(javax.servlet.jsp.tagext.TagData data, String attributeName)
protected boolean
isSqlTag(String tagUri, String tagLn, String target)
protected boolean
isTag(String tagUri, String tagLn, String matchUri, String matchLn)
protected boolean
isXmlTag(String tagUri, String tagLn, String target)
void
release()
javax.servlet.jsp.tagext.ValidationMessage[]
validate(int type, String prefix, String uri, javax.servlet.jsp.tagext.PageData page)
protected String
validateExpression(String elem, String att, String expr)
Deprecated.
-
-
-
Field Detail
-
VAR
protected static final String VAR
- See Also:
- Constant Field Values
-
SCOPE
protected static final String SCOPE
- See Also:
- Constant Field Values
-
PAGE_SCOPE
protected static final String PAGE_SCOPE
- See Also:
- Constant Field Values
-
REQUEST_SCOPE
protected static final String REQUEST_SCOPE
- See Also:
- Constant Field Values
-
SESSION_SCOPE
protected static final String SESSION_SCOPE
- See Also:
- Constant Field Values
-
APPLICATION_SCOPE
protected static final String APPLICATION_SCOPE
- See Also:
- Constant Field Values
-
JSP
protected final String JSP
- See Also:
- Constant Field Values
-
TYPE_CORE
protected static final int TYPE_CORE
- See Also:
- Constant Field Values
-
TYPE_FMT
protected static final int TYPE_FMT
- See Also:
- Constant Field Values
-
TYPE_SQL
protected static final int TYPE_SQL
- See Also:
- Constant Field Values
-
TYPE_XML
protected static final int TYPE_XML
- See Also:
- Constant Field Values
-
uri
protected String uri
-
prefix
protected String prefix
-
messageVector
protected Vector messageVector
-
config
protected Map config
-
failed
protected boolean failed
-
lastElementId
protected String lastElementId
-
-
Method Detail
-
getHandler
protected abstract DefaultHandler getHandler()
-
release
public void release()
- Overrides:
release
in classjavax.servlet.jsp.tagext.TagLibraryValidator
-
validate
public javax.servlet.jsp.tagext.ValidationMessage[] validate(int type, String prefix, String uri, javax.servlet.jsp.tagext.PageData page)
-
validateExpression
@Deprecated protected String validateExpression(String elem, String att, String expr)
Deprecated.
-
hasAttribute
protected boolean hasAttribute(Attributes a, String att)
-
fail
protected void fail(String message)
-
isSpecified
protected boolean isSpecified(javax.servlet.jsp.tagext.TagData data, String attributeName)
-
hasNoInvalidScope
protected boolean hasNoInvalidScope(Attributes a)
-
hasEmptyVar
protected boolean hasEmptyVar(Attributes a)
-
hasDanglingScope
protected boolean hasDanglingScope(Attributes a)
-
-