Package org.apache.struts2.util
Class ComponentUtils
java.lang.Object
org.apache.struts2.util.ComponentUtils
Various static methods used with components
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsExpression(String expr) static booleanisExpression(String expr) Check if object is an expressionstatic StringstripExpression(String expr) Simply strip the "%{" and "}" off.
-
Constructor Details
-
ComponentUtils
public ComponentUtils()
-
-
Method Details
-
stripExpression
Simply strip the "%{" and "}" off.- Parameters:
expr- the expression (must be not null)- Returns:
- the stripped expression
-
isExpression
Check if object is an expression- Parameters:
expr- to treat as an expression- Returns:
- true if it is an expression
-
containsExpression
-