| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_TEST |
| Constructor and Description |
|---|
ConditionalTag(String ognlExpression,
String text)
Parses the given OGNL expression that can be used by Ognl static methods.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
eval(Object rootObjects)
Evaluate the expression from test attribute is true or false.
|
List<? extends ITextTag> |
getTags()
Collections from inner tags (
WhereTag, SetTag...) |
String |
getText()
Retrieve the text from XML element.
|
String |
getText(Object rootObjects)
Evaluate if attribute test is true or false with OGNL expression.
|
boolean |
isDynamic()
Indicate if text is dynamic or static.
|
boolean |
isDynamicGroup()
Indicate if text contains a dynamic group of tags like: SetTag and WhereTag.
|
String |
toString() |
public static final String ATTRIBUTE_TEST
public ConditionalTag(String ognlExpression, String text)
ognlExpression - the OGNL expression to be parsedtext - content of expression to be evaluatedMalformedExpression - if the expression is malformed or if there is a
pathological environmental problem.public boolean eval(Object rootObjects)
public String getText()
public String getText(Object rootObjects)
ITextTagpublic boolean isDynamic()
public boolean isDynamicGroup()
ITextTagisDynamicGroup in interface ITextTagpublic List<? extends ITextTag> getTags()
ITextTagWhereTag, SetTag...)Copyright © 2012–2022 jkniv, copyleft code. All rights reserved.