Class ValidWhenResult<T>
java.lang.Object
org.apache.struts.validator.validwhen.ValidWhenResult<T>
- Type Parameters:
T
- the current type of the result
- Direct Known Subclasses:
ValidWhenResultBigDecimal
,ValidWhenResultBoolean
,ValidWhenResultInteger
,ValidWhenResultString
Holds the (interim) result during processing the parsing-tree.
- Since:
- Struts 1.4.1
- Author:
- Graff Stefan
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
ValidWhenResult
(Class<T> type, T value) Constructs this class. -
Method Summary
-
Field Details
-
type
The current type of the result. -
value
The value of the result.
-
-
Constructor Details
-
ValidWhenResult
Constructs this class.- Parameters:
type
- the current type of the resultvalue
- the current value of the result
-
-
Method Details
-
getType
Gets the current type of the result.- Returns:
- the current type of the result
-
getValue
Gets the current value of the result.- Returns:
- the current value of the result
-
toBoolean
public boolean toBoolean()Gets theBoolean
-value if the current result is a boolean.- Returns:
- the boolean-value if the value
is a boolean otherwise
false
.
-
toString
-