|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.model.value.DeferredValue
This is the value wrapper class for deferred EL expressions
Field Summary | |
private static java.lang.String |
EL_DEFERRED_INDICATOR
This is the indicator the framework uses to distinguish a deferred EL expression |
private static java.lang.String |
EL_INDICATOR
The standard EL markup |
private java.lang.String |
expression
Expression (-> literal is null ) |
static DeferredValue |
FALSE
Boolean literal TRUE |
private java.lang.Object |
literal
Literal value (-> expression is null ) |
static DeferredValue |
NEG
Integer literal for -1 |
private static long |
serialVersionUID
Serial Version UID |
static DeferredValue |
TRUE
Boolean literal FALSE |
Constructor Summary | |
DeferredValue()
Constructor |
|
DeferredValue(boolean value)
Constructor for an literal boolean value |
|
DeferredValue(int value)
Constructor for an literal int value |
|
DeferredValue(java.lang.Object value)
Constructor for an literal String value |
Method Summary | |
private static java.lang.String |
convertEL(java.lang.String deferredExpression)
This method converts an expression in the frameworks deferred syntax (with "@{") to a valid EL expression that can be executed by an EL expression Parser. |
private java.lang.Object |
evaluate(DeferredEnvironment env)
Method to evaluate a EL expression |
static java.lang.Object |
evaluate(java.lang.String value,
DeferredEnvironment env)
Evaluates the given String value to an object |
static java.lang.String |
evaluateToString(java.lang.String value,
DeferredEnvironment env)
Evaluates the given String value to a String object |
static DeferredValue |
fromLiteral(java.lang.Object value)
Creates a literal deferred value |
private static boolean |
isExpression(java.lang.String value)
Checks if the given string is a deferred expression. |
static DeferredValue |
parseAlignment(java.lang.String value)
Parses a Alignment expression |
static DeferredValue |
parseBoolean(java.lang.String value)
Parses a boolean expression |
static DeferredValue |
parseImage(java.lang.String value)
Parses a Image expression |
static DeferredValue |
parseInt(java.lang.String value)
Parses a integer expression |
static DeferredValue |
parseJoinMode(java.lang.String value)
Parses a JoinMode expression |
static DeferredValue |
parsePermission(java.lang.String value)
Parses a Permission expression |
AlignmentType |
toAlignment(DeferredEnvironment env)
Converts the deferred value to a AlignmentType object |
static AlignmentType |
toAlignment(DeferredValue value,
DeferredEnvironment env)
Converts the given deferred value to a AlignmentType object |
boolean |
toBoolean(DeferredEnvironment env)
Converts the deferred value to a boolean value |
ImageModel |
toImage(DeferredEnvironment env)
Converts the deferred value to a ImageModel object |
static ImageModel |
toImage(DeferredValue value,
DeferredEnvironment env)
Converts the given deferred value to a ImageModel object |
int |
toInt(DeferredEnvironment env)
Converts the deferred value to a integer value |
JoinMode |
toJoinMode(DeferredEnvironment env)
Converts the deferred value to a JoinMode object |
static JoinMode |
toJoinMode(DeferredValue value,
DeferredEnvironment env)
Converts the given deferred value to a JoinMode object |
Permission |
toPermission(DeferredEnvironment env)
Converts the deferred value to a Permission object |
static Permission |
toPermission(DeferredValue value,
DeferredEnvironment env)
Converts the given deferred value to a Permission object |
java.lang.String |
toString(DeferredEnvironment env)
Converts the deferred value to a String object |
static java.lang.String |
toString(DeferredValue value,
DeferredEnvironment env)
Converts the given deferred value to a String object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
public static final DeferredValue FALSE
public static final DeferredValue TRUE
public static final DeferredValue NEG
private static final java.lang.String EL_DEFERRED_INDICATOR
private static final java.lang.String EL_INDICATOR
private java.lang.Object literal
expression
is null
)
private java.lang.String expression
literal
is null
)
Constructor Detail |
public DeferredValue()
public DeferredValue(boolean value)
boolean
value
value
- literal boolean
valuepublic DeferredValue(int value)
int
value
value
- literal int
valuepublic DeferredValue(java.lang.Object value)
String
value
value
- literal String
valueMethod Detail |
private static java.lang.String convertEL(java.lang.String deferredExpression)
deferredExpression
- The expression in deferred syntax
private static boolean isExpression(java.lang.String value)
value
- string to test
true
if the string is an expressionpublic static DeferredValue fromLiteral(java.lang.Object value)
value
- literal value
public static DeferredValue parseBoolean(java.lang.String value)
value
- string to parse
public static DeferredValue parseInt(java.lang.String value)
value
- string to parse
public static DeferredValue parsePermission(java.lang.String value)
value
- string to parse
public static DeferredValue parseImage(java.lang.String value)
value
- string to parse
public static DeferredValue parseAlignment(java.lang.String value)
value
- string to parse
public static DeferredValue parseJoinMode(java.lang.String value)
value
- string to parse
public static Permission toPermission(DeferredValue value, DeferredEnvironment env)
value
- The deferred value to convert or null
env
- The expression environment that gives access to the EL Parser
an the (row-)bean
null
public static ImageModel toImage(DeferredValue value, DeferredEnvironment env)
value
- The deferred value to convert or null
env
- The expression environment that gives access to the EL Parser
an the (row-)bean
null
public static AlignmentType toAlignment(DeferredValue value, DeferredEnvironment env)
value
- The deferred value to convert or null
env
- The expression environment that gives access to the EL Parser
an the (row-)bean
null
public static JoinMode toJoinMode(DeferredValue value, DeferredEnvironment env)
value
- The deferred value to convert or null
env
- The expression environment that gives access to the EL Parser
an the (row-)bean
null
public static java.lang.String toString(DeferredValue value, DeferredEnvironment env)
value
- The deferred value to convert or null
env
- The expression environment that gives access to the EL Parser
an the (row-)bean
null
public static java.lang.String evaluateToString(java.lang.String value, DeferredEnvironment env)
value
- The Expression source code or null
env
- The expression environment that gives access to the EL Parser
an the (row-)bean
null
public static java.lang.Object evaluate(java.lang.String value, DeferredEnvironment env)
value
- The Expression source code or null
env
- The expression environment that gives access to the EL Parser
an the (row-)bean
null
public java.lang.String toString(DeferredEnvironment env)
env
- The expression environment that gives access to the EL Parser
an the (row-)bean
null
public ImageModel toImage(DeferredEnvironment env)
env
- The expression environment that gives access to the EL Parser
an the (row-)bean
null
public AlignmentType toAlignment(DeferredEnvironment env)
env
- The expression environment that gives access to the EL Parser
an the (row-)bean
null
public JoinMode toJoinMode(DeferredEnvironment env)
env
- The expression environment that gives access to the EL Parser
an the (row-)bean
null
public Permission toPermission(DeferredEnvironment env)
env
- The expression environment that gives access to the EL Parser
an the (row-)bean
null
public boolean toBoolean(DeferredEnvironment env)
env
- The expression environment that gives access to the EL Parser
an the (row-)bean
public int toInt(DeferredEnvironment env)
env
- The expression environment that gives access to the EL Parser
an the (row-)bean
private java.lang.Object evaluate(DeferredEnvironment env)
env
- The expression environment that gives access to the EL Parser
an the (row-)bean
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |