Package org.zkoss.zk.xel
Class ExValue
java.lang.Object
org.zkoss.zk.xel.ExValue
- All Implemented Interfaces:
Serializable
Used to represent a string value that might contain an expression.
It is serializable and the expression is parsed by demand.
- Since:
- 3.0.0
- Author:
- tomyeh
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal ClassReturns the expected type.final StringReturns the raw value.Returns the value after evaluation.Returns the value after evaluation.inthashCode()booleanTests whether it is an expression.final voidsetExpectedType(Class expectedType) Sets the expected type.voidsetRawValue(String value) Sets the raw value.toString()
-
Constructor Details
-
ExValue
Constructor.- Parameters:
value- the value. It can be null.
-
-
Method Details
-
isExpression
public boolean isExpression()Tests whether it is an expression. Note: it is a wild guess. In other words, it returns false only if 100% not an expression. -
getRawValue
Returns the raw value. The raw value is the value passed to the constructor. That is, it might contain EL expressions. -
setRawValue
Sets the raw value.- Parameters:
value- the value. It can be null.
-
getExpectedType
Returns the expected type. -
setExpectedType
Sets the expected type. -
getValue
Returns the value after evaluation.- Throws:
org.zkoss.xel.XelException
-
getValue
Returns the value after evaluation.- Throws:
org.zkoss.xel.XelException
-
toString
-
hashCode
public int hashCode() -
equals
-