Class CmsPathValue


  • public class CmsPathValue
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      CmsPathValue​(java.lang.String value, java.lang.String path)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPath()
      Gets the path.
      java.lang.String getValue()
      Gets the value.
      CmsPathValue prepend​(java.lang.String pathPart)
      Creates a new path value with the same value as this one, but with a prefix prepended to the path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CmsPathValue

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

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

      • getPath

        public java.lang.String getPath()
        Gets the path.

        Returns:
        the path
      • getValue

        public java.lang.String getValue()
        Gets the value.

        Returns:
        the value
      • prepend

        public CmsPathValue prepend​(java.lang.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