Class CheckCoercionTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
ee.jakarta.tck.pages.spec.core_syntax.scripting.el.BaseCheckTag
ee.jakarta.tck.pages.spec.core_syntax.scripting.el.CheckCoercionTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag
,jakarta.servlet.jsp.tagext.JspTag
,jakarta.servlet.jsp.tagext.Tag
,Serializable
Tag implementation to validate type coercions for the JSP 2.0 expression
language.
- See Also:
-
Field Summary
Fields inherited from class ee.jakarta.tck.pages.spec.core_syntax.scripting.el.BaseCheckTag
_control, _name, _object
Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Validates the to and from various types by taking the String value of the expected result and the resulting evaluation and checking for equality.void
setBigDecimal
(BigDecimal _bigDecimal) void
setBigInteger
(BigInteger _bigInteger) void
setBoolean
(Boolean _boolean) Sets a Boolean object.void
Sets a Byte object.void
Sets a Character object.void
Sets a Double object.void
Sets a Float object.void
Sets an Integer object.void
Sets a Long object.void
Sets a Short object.void
Sets a String object.void
setTypeBean
(TypeBean _bean) Methods inherited from class ee.jakarta.tck.pages.spec.core_syntax.scripting.el.BaseCheckTag
displayTestStatus, doStartTag, getMessage, setControl, setDisplay, setName, setObject
Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
CheckCoercionTag
public CheckCoercionTag()
-
-
Method Details
-
setByte
Sets a Byte object.- Parameters:
_byte
- a Byte object
-
setChar
Sets a Character object.- Parameters:
_char
- a Character object
-
setShort
Sets a Short object.- Parameters:
_short
- a Short object
-
setInt
Sets an Integer object.- Parameters:
_int
- an Integer object
-
setLong
Sets a Long object.- Parameters:
_long
- a Long object
-
setFloat
Sets a Float object.- Parameters:
_float
- a Float object
-
setDouble
Sets a Double object.- Parameters:
_double
- a Double object
-
setString
Sets a String object.- Parameters:
_string
- a String object
-
setBoolean
Sets a Boolean object.- Parameters:
_boolean
- a Boolean object
-
setBigInteger
-
setBigDecimal
-
setTypeBean
-
performCheck
protected void performCheck() throws jakarta.servlet.jsp.JspExceptionValidates the to and from various types by taking the String value of the expected result and the resulting evaluation and checking for equality.- Specified by:
performCheck
in classBaseCheckTag
- Throws:
jakarta.servlet.jsp.JspException
- if an error occurs.
-