Class CmsPath

java.lang.Object
org.opencms.util.CmsPath
All Implemented Interfaces:
Serializable, Comparable<CmsPath>

public class CmsPath extends Object implements Serializable, Comparable<CmsPath>
Simple data holder class which stores a path in a normalized form.

This is mostly useful when using paths as map keys, when you are not sure if the paths you are processing have a trailing slash or not.

The paths are stored in the form '/foo/bar/baz', i.e. they include a leading but no trailing slash, except in the case of the root path '/'.

See Also: