Class ConditionalTag
- java.lang.Object
-
- net.sf.jkniv.sqlegance.builder.xml.dynamic.ConditionalTag
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTRIBUTE_TEST
-
Constructor Summary
Constructors Constructor Description ConditionalTag(String ognlExpression, String text)Parses the given OGNL expression that can be used by Ognl static methods.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleaneval(Object rootObjects)Evaluate the expression from test attribute is true or false.List<? extends ITextTag>getTags()Collections from inner tags (WhereTag,SetTag...)StringgetText()Retrieve the text from XML element.StringgetText(Object rootObjects)Evaluate if attribute test is true or false with OGNL expression.booleanisDynamic()Indicate if text is dynamic or static.booleanisDynamicGroup()Indicate if text contains a dynamic group of tags like: SetTag and WhereTag.StringtoString()
-
-
-
Field Detail
-
ATTRIBUTE_TEST
public static final String ATTRIBUTE_TEST
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConditionalTag
public ConditionalTag(String ognlExpression, String text)
Parses the given OGNL expression that can be used by Ognl static methods.- Parameters:
ognlExpression- the OGNL expression to be parsedtext- content of expression to be evaluated- Throws:
MalformedExpression- if the expression is malformed or if there is a pathological environmental problem.
-
-
Method Detail
-
eval
public boolean eval(Object rootObjects)
Evaluate the expression from test attribute is true or false.
-
getText
public String getText()
Retrieve the text from XML element.
-
getText
public String getText(Object rootObjects)
Description copied from interface:ITextTagEvaluate if attribute test is true or false with OGNL expression. Something
-
isDynamic
public boolean isDynamic()
Indicate if text is dynamic or static.
-
isDynamicGroup
public boolean isDynamicGroup()
Description copied from interface:ITextTagIndicate if text contains a dynamic group of tags like: SetTag and WhereTag.- Specified by:
isDynamicGroupin interfaceITextTag- Returns:
- true returned if dynamic, false otherwise.
-
getTags
public List<? extends ITextTag> getTags()
Description copied from interface:ITextTagCollections from inner tags (WhereTag,SetTag...)
-
-