org.apache.struts2.util

## Class ComponentUtils

- java.lang.Object
- - org.apache.struts2.util.ComponentUtils

-     public class ComponentUtils
      extends Object

  Various static methods used with components

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ComponentUtils()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | `containsExpression(String expr)`
    `static boolean` | `isExpression(String expr)` Check if object is an expression
    `static String` | `stripExpression(String expr)` 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

    - #### ComponentUtils

          public ComponentUtils()

  - ### Method Detail

    - #### stripExpression

          public static String stripExpression(String expr)

      Simply strip the "%{" and "}" off.
      Parameters:
        `expr` - the expression (must be not null)
      Returns:
        the stripped expression

    - #### isExpression

          public static boolean isExpression(String expr)

      Check if object is an expression
      Parameters:
        `expr` - to treat as an expression
      Returns:
        true if it is an expression

    - #### containsExpression

          public static boolean containsExpression(String expr)

Copyright © 2000–2023 Apache Software Foundation. All rights reserved.