Class CAFValueExpression
java.lang.Object
javax.el.Expression
javax.el.ValueExpression
com.webmethods.caf.faces.application.CAFValueExpression
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CAFMixedELValueExpression
Wrap another value expression to allow different
error handling
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Pattern
protected boolean
protected static ThreadLocal<Boolean>
protected ValueExpression
-
Constructor Summary
ConstructorsConstructorDescriptionThis should only be called when restoring stateCAFValueExpression
(Application application, ValueExpression wrappedValueBinding) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getCAFValue
(ELContext elContext) Class<?>
protected String
Gets just the binding expression bits for display in error message.boolean
static Boolean
Returns whether to suppress the warnings for any expressions evaluated in the current threadClass<?>
getValueReference
(ELContext context) int
hashCode()
boolean
boolean
isReadOnly
(ELContext elContext) void
setShouldSuppressWarning
(boolean shouldSuppressWarning) static void
setShouldSuppressWarningForThread
(Boolean shouldSuppressWarning) Sets whether to suppress the warnings for any expressions evaluated in the current thread.void
-
Field Details
-
RE_BINDING
-
shouldSuppressWarning
protected boolean shouldSuppressWarning -
wrappedValueBinding
-
shouldSuppressWarningForThread
-
-
Constructor Details
-
CAFValueExpression
public CAFValueExpression()This should only be called when restoring state -
CAFValueExpression
-
-
Method Details
-
getShouldSuppressWarningForThread
Returns whether to suppress the warnings for any expressions evaluated in the current thread- Returns:
- true/false or null
-
setShouldSuppressWarningForThread
Sets whether to suppress the warnings for any expressions evaluated in the current thread. NOTE: if calling this, make sure to restore the original value when you are done.- Parameters:
shouldSuppressWarning
- true/false or null
-
getShouldSuppressWarning
public boolean getShouldSuppressWarning() -
setShouldSuppressWarning
public void setShouldSuppressWarning(boolean shouldSuppressWarning) -
getExpressionsForDisplay
Gets just the binding expression bits for display in error message. If the expression string is really long, we don't want to display the whole dang thing. -
getExpectedType
- Specified by:
getExpectedType
in classValueExpression
-
getType
- Specified by:
getType
in classValueExpression
-
getValue
- Specified by:
getValue
in classValueExpression
-
getCAFValue
-
isReadOnly
- Specified by:
isReadOnly
in classValueExpression
-
setValue
- Specified by:
setValue
in classValueExpression
-
equals
- Specified by:
equals
in classExpression
-
getExpressionString
- Specified by:
getExpressionString
in classExpression
-
hashCode
public int hashCode()- Specified by:
hashCode
in classExpression
-
isLiteralText
public boolean isLiteralText()- Specified by:
isLiteralText
in classExpression
-
getValueReference
- Overrides:
getValueReference
in classValueExpression
-