java.lang.Object
com.regnosys.rosetta.common.translation.Path

public class Path extends Object
  • Constructor Details

  • Method Details

    • valueOf

      public static Path valueOf(List<String> path)
    • valueOf

      public static Path valueOf(String path)
    • addElement

      public Path addElement(Path.PathElement element)
    • addElement

      public Path addElement(String name)
    • addElement

      public Path addElement(String name, Integer index)
    • getElements

      public List<Path.PathElement> getElements()
    • getPathNames

      public String[] getPathNames()
    • getParent

      public Path getParent()
    • getLastElement

      public Path.PathElement getLastElement()
    • append

      public Path append(Path append)
    • prefixWithWildcard

      public Path prefixWithWildcard()
    • nameStartMatches

      public boolean nameStartMatches(Path other)
      return true if the all the elements of this path are the start of the other path matching only on the name
    • nameStartMatches

      public boolean nameStartMatches(Path other, boolean allowWildcard)
      return true if the all the elements of this path are the start of the other path matching only on the name
    • fullStartMatches

      public boolean fullStartMatches(Path other)
      return true if the all the elements of this path are the start of the other path matching on the name and index
    • fullStartMatches

      public boolean fullStartMatches(Path other, boolean allowWildcard)
    • nameIndexMatches

      public boolean nameIndexMatches(Path other)
    • endsWith

      public boolean endsWith(String... path)
    • endsWith

      public boolean endsWith(Path other)
    • cardinality

      public int cardinality()
    • parse

      public static Path parse(String pathString)
    • parse

      public static Path parse(String pathString, boolean allowWildcard)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object