Package org.opencms.gwt.shared.property
Class CmsPathValue
- java.lang.Object
-
- org.opencms.gwt.shared.property.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.
-
-
-
Constructor Detail
-
CmsPathValue
public CmsPathValue(java.lang.String value, java.lang.String path)
Creates a new instance.- Parameters:
value
- the valuepath
- 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
-
-