Package org.apache.taglibs.standard.tlv
Class JstlBaseTLV
- java.lang.Object
-
- jakarta.servlet.jsp.tagext.TagLibraryValidator
-
- org.apache.taglibs.standard.tlv.JstlBaseTLV
-
- Direct Known Subclasses:
JstlCoreTLV,JstlFmtTLV,JstlSqlTLV,JstlXmlTLV
public abstract class JstlBaseTLV extends jakarta.servlet.jsp.tagext.TagLibraryValidatorA base class to support SAX-based validation in JSTL.
- Author:
- Shawn Bayern
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringAPPLICATION_SCOPEprotected Map<String,Set<String>>configprotected booleanfailedprotected StringJSPprotected StringlastElementIdprotected Vector<jakarta.servlet.jsp.tagext.ValidationMessage>messageVectorprotected static StringPAGE_SCOPEprotected Stringprefixprotected static StringREQUEST_SCOPEprotected static StringSCOPEprotected static StringSESSION_SCOPEprotected static intTYPE_COREprotected static intTYPE_FMTprotected static intTYPE_SQLprotected static intTYPE_XMLprotected Stringuriprotected static StringVAR
-
Constructor Summary
Constructors Constructor Description JstlBaseTLV()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidfail(String message)protected abstract DefaultHandlergetHandler()protected StringgetLocalPart(String qname)protected booleanhasAttribute(Attributes a, String att)protected booleanhasDanglingScope(Attributes a)protected booleanhasEmptyVar(Attributes a)protected booleanhasNoInvalidScope(Attributes a)protected booleanisCoreTag(String tagUri, String tagLn, String target)protected booleanisFmtTag(String tagUri, String tagLn, String target)protected booleanisJspTag(String tagUri, String tagLn, String target)protected booleanisSpecified(jakarta.servlet.jsp.tagext.TagData data, String attributeName)protected booleanisSqlTag(String tagUri, String tagLn, String target)protected booleanisTag(String tagUri, String tagLn, String matchUri, String matchLn)protected booleanisXmlTag(String tagUri, String tagLn, String target)voidrelease()jakarta.servlet.jsp.tagext.ValidationMessage[]validate(int type, String prefix, String uri, jakarta.servlet.jsp.tagext.PageData page)protected StringvalidateExpression(String elem, String att, String expr)
-
-
-
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<jakarta.servlet.jsp.tagext.ValidationMessage> messageVector
-
failed
protected boolean failed
-
lastElementId
protected String lastElementId
-
-
Method Detail
-
getHandler
protected abstract DefaultHandler getHandler()
-
release
public void release()
- Overrides:
releasein classjakarta.servlet.jsp.tagext.TagLibraryValidator
-
validate
public jakarta.servlet.jsp.tagext.ValidationMessage[] validate(int type, String prefix, String uri, jakarta.servlet.jsp.tagext.PageData page)
-
hasAttribute
protected boolean hasAttribute(Attributes a, String att)
-
fail
protected void fail(String message)
-
isSpecified
protected boolean isSpecified(jakarta.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)
-
-