Class FlexibleStringExpander.ConstSimpleElem
java.lang.Object
org.apache.ofbiz.base.util.string.FlexibleStringExpander
org.apache.ofbiz.base.util.string.FlexibleStringExpander.ConstSimpleElem
- All Implemented Interfaces:
Serializable
,IsEmpty
- Enclosing class:
- FlexibleStringExpander
An object that represents a
String
constant portion of an expression.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.ofbiz.base.util.string.FlexibleStringExpander
FlexibleStringExpander.ArrayOffsetString, FlexibleStringExpander.ConstOffsetElem, FlexibleStringExpander.ConstSimpleElem, FlexibleStringExpander.CurrElem, FlexibleStringExpander.Elements, FlexibleStringExpander.NestedVarElem, FlexibleStringExpander.ScriptElem, FlexibleStringExpander.VarElem
-
Field Summary
Fields inherited from class org.apache.ofbiz.base.util.string.FlexibleStringExpander
CLOSE_BRACKET, OPEN_BRACKET
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.ofbiz.base.util.string.FlexibleStringExpander
containsConstant, containsExpression, containsScript, expand, expand, expand, expandString, expandString, expandString, expandString, expandString, getChars, getHint, getInstance, getInstance, getStrElems, setHint, toString
-
Constructor Details
-
ConstSimpleElem
protected ConstSimpleElem(char[] chars)
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from class:FlexibleStringExpander
Returnstrue
if the original expression is empty ornull
.- Specified by:
isEmpty
in interfaceIsEmpty
- Specified by:
isEmpty
in classFlexibleStringExpander
- Returns:
true
if the original expression is empty ornull
-
getOriginal
Description copied from class:FlexibleStringExpander
Returns a copy of the original expression.- Specified by:
getOriginal
in classFlexibleStringExpander
- Returns:
- The original expression
-
expandString
Description copied from class:FlexibleStringExpander
Evaluate this object's expression and return the result as aString
. Null or empty expressions return an emptyString
. Anull context
argument will return the original expression.- Overrides:
expandString
in classFlexibleStringExpander
- Parameters:
context
- The evaluation contexttimeZone
- The time zone to be used for localizationlocale
- The locale to be used for localization- Returns:
- This object's expression result as a
String
-
get
- Specified by:
get
in classFlexibleStringExpander
-