|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts2.util.ComponentUtils
public class ComponentUtils
Various static methods used with components
Constructor Summary | |
---|---|
ComponentUtils()
|
Method Summary | |
---|---|
static boolean |
altSyntax(ValueStack stack)
Is the altSyntax enabled? [TRUE] |
static boolean |
isExpression(Object value)
Check if object is expression base on altSyntax |
static String |
stripExpressionIfAltSyntax(ValueStack stack,
String expr)
If altSyntax (%{...}) is applied, simply strip the "%{" and "}" off. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentUtils()
Method Detail |
---|
public static String stripExpressionIfAltSyntax(ValueStack stack, String expr)
stack
- the ValueStack where the context value is searched for.expr
- the expression (must be not null)
public static boolean altSyntax(ValueStack stack)
stack
- the ValueStack where the context value is searched for.
struts.properties
where the altSyntax flag is defined.public static boolean isExpression(Object value)
value
- to treat as an expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |