Class FinderPath

java.lang.Object
org.patternfly.extension.finder.FinderPath
All Implemented Interfaces:
Iterable<FinderSegment>

public class FinderPath extends Object implements Iterable<FinderSegment>
A lightweight finder path containing only string-based segments. Supports encoding to and parsing from a string format (col1=item1/col2=item2). Use this type for URL routing and serialization.

For a path with live references to FinderColumn and FinderItem, use ResolvedFinderPath.

  • Method Details

    • parse

      public static FinderPath parse(String path)
      Parses a finder path string in the format col1=item1/col2=item2/col3. The last segment may omit the item identifier to represent a column with no selected item.
      Parameters:
      path - the encoded finder path string
      Returns:
      a new FinderPath, or an empty path for null or empty input
    • isEmpty

      public boolean isEmpty()
    • size

      public int size()
    • iterator

      public Iterator<FinderSegment> iterator()
      Specified by:
      iterator in interface Iterable<FinderSegment>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • findColumn

      public FinderSegment findColumn(String identifier)
    • findItem

      public FinderSegment findItem(String identifier)