Class CmsPathMap<V>

java.lang.Object
org.opencms.util.CmsPathMap<V>
Type Parameters:
V - the element type of the path map

public class CmsPathMap<V> extends Object
Data structure which stores contents indexed by path.
  • Constructor Details

  • Method Details

    • add

      public void add(String path, V value)
      Adds an element for the given path, overwriting the previous element for that path if there is one.

      Parameters:
      path - the path
      value - the element to add
    • getChildValues

      public List<V> getChildValues(String path)
      Gets the values for the direct children of the given path.

      Parameters:
      path - the path
      Returns:
      the child values
    • getDescendantValues

      public List<V> getDescendantValues(String path)
      Gets the values for the descendants of the path, including the path itself.

      Parameters:
      path - the path
      Returns:
      the descendant values for the path