Exemplo n.º 1
0
  /**
   * Sets the path of the object to inspect.
   *
   * <p>The value is set as a path (eg. <code>customerSearch</code>) rather than the object itself
   * (eg. <code>${customerSearch}</code>) so that we can 'inspect from parent' if needed.
   */
  public void setValue(String value) {

    super.setPathInternal(value);

    // Take the whole LHS of the path as the prefix, so that names are unique

    if (value != null) {
      int lastIndexOf = value.lastIndexOf(StringUtils.SEPARATOR_DOT_CHAR);

      if (lastIndexOf != -1) {
        setPathPrefix(value.substring(0, lastIndexOf + 1));
      }
    }
  }