Class ValidWhenResultBoolean
java.lang.Object
org.apache.struts.validator.validwhen.ValidWhenResult<Boolean>
org.apache.struts.validator.validwhen.ValidWhenResultBoolean
Holds the (interim) result during processing the parsing-tree.
The result has is a
boolean
.- Since:
- Struts 1.4.1
- Author:
- Graff Stefan
-
Field Summary
Fields inherited from class org.apache.struts.validator.validwhen.ValidWhenResult
type, value
-
Constructor Summary
ConstructorDescriptionValidWhenResultBoolean
(boolean value) Constructs this class with the typeboolean
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets theBoolean
-value if the current result is a boolean.Methods inherited from class org.apache.struts.validator.validwhen.ValidWhenResult
getType, getValue, toString
-
Constructor Details
-
ValidWhenResultBoolean
public ValidWhenResultBoolean(boolean value) Constructs this class with the typeboolean
.- Parameters:
value
- the current value of the result
-
-
Method Details
-
toBoolean
public boolean toBoolean()Description copied from class:ValidWhenResult
Gets theBoolean
-value if the current result is a boolean.- Overrides:
toBoolean
in classValidWhenResult<Boolean>
- Returns:
- the boolean-value if the value
is a boolean otherwise
false
.
-