Class CmsPathValue

java.lang.Object
org.opencms.gwt.shared.property.CmsPathValue

public class CmsPathValue extends Object
A bean which represents a value together with a path which indicates from where the value has been read.

Since:
8.0.0
  • Constructor Details

    • CmsPathValue

      public CmsPathValue(String value, String path)
      Creates a new instance.

      Parameters:
      value - the value
      path - the path
  • Method Details

    • getPath

      public String getPath()
      Gets the path.

      Returns:
      the path
    • getValue

      public String getValue()
      Gets the value.

      Returns:
      the value
    • prepend

      public CmsPathValue prepend(String pathPart)
      Creates a new path value with the same value as this one, but with a prefix prepended to the path.

      Parameters:
      pathPart - the path part which should be prepended to the path
      Returns:
      the new path value