java.lang.Object
org.ehrbase.openehr.sdk.webtemplate.path.flat.FlatPathDto

public final class FlatPathDto extends Object
  • Constructor Details

  • Method Details

    • getName

      public String getName()
    • getChild

      public FlatPathDto getChild()
    • nodeWithChild

      public FlatPathDto nodeWithChild(FlatPathDto child)
      Clones this node and appends the child
      Parameters:
      child -
      Returns:
    • pathWithChild

      public FlatPathDto pathWithChild(FlatPathDto child)
      Appends the child to a clone of this path
      Parameters:
      child -
      Returns:
    • getAttributeName

      public String getAttributeName()
    • nodeWithAttributeName

      public FlatPathDto nodeWithAttributeName(String attributeName)
      Clones this node and sets the attributeName property
      Parameters:
      attributeName -
      Returns:
    • pathWithAttributeName

      public FlatPathDto pathWithAttributeName(String attributeName)
      Clones the whole path and sets the attributeName property of the trailing node
      Parameters:
      attributeName -
      Returns:
    • getCount

      public Integer getCount()
    • nodeWithCount

      public FlatPathDto nodeWithCount(Integer count)
      Clones this node and sets the count property
      Parameters:
      count -
      Returns:
    • pathWithCount

      public FlatPathDto pathWithCount(Integer count)
      Clones the whole path and sets the count property of the trailing node
      Parameters:
      count -
      Returns:
    • format

      public String format()
    • getLast

      public FlatPathDto getLast()
    • removeEnd

      public static FlatPathDto removeEnd(FlatPathDto path, FlatPathDto remove)
    • replaceEnd

      public static FlatPathDto replaceEnd(FlatPathDto path, UnaryOperator<FlatPathDto> replacement)
    • isNodeEqual

      public static boolean isNodeEqual(FlatPathDto me, FlatPathDto other)
    • isNodeEqual

      public static boolean isNodeEqual(FlatPathDto me, FlatPathDto other, boolean ignoreCount, boolean ignoreAttribute)
    • removeStart

      public static FlatPathDto removeStart(FlatPathDto path, FlatPathDto remove)
    • addEnd

      public static FlatPathDto addEnd(FlatPathDto path, FlatPathDto add)
    • toString

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

      public boolean startsWith(CharSequence otherPath)
    • startsWith

      public boolean startsWith(FlatPathDto other)
    • isEqualTo

      public boolean isEqualTo(CharSequence otherPath)
      For count 0 and null are considered equal.
      Parameters:
      otherPath -
      Returns:
    • isEqualTo

      public boolean isEqualTo(FlatPathDto otherPath)
    • isEqualTo

      public boolean isEqualTo(FlatPathDto otherPath, boolean ignoreCount, boolean ignoreAttribute)
    • isEqualTo

      public static boolean isEqualTo(FlatPathDto me, FlatPathDto other, boolean ignoreCount, boolean ignoreAttribute)
    • equals

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

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

      public static <T> Map.Entry<FlatPathDto,T> get(Map<FlatPathDto,T> map, String otherPath)