Class Path.PathElement

java.lang.Object
ch.tocco.nice2.persist.core.api.entity.Path.PathElement
All Implemented Interfaces:
Serializable
Enclosing class:
Path

public static final class Path.PathElement extends Object implements Serializable
See Also:
  • Constructor Details

    • PathElement

      public PathElement(String identifier, @Nullable @Nullable String selector, boolean optional)
    • PathElement

      public PathElement(String identifier, @Nullable @Nullable String selector, boolean optional, List<Path> subPaths)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      A machine-readable path element without extra junk.
    • toString

      public String toString(boolean quoteIdentifiers)
    • equals

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

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

      public String getIdentifier()
      Returns:
      The field or relation identifier without selector and question mark.
    • getSelector

      @Nullable public @Nullable String getSelector()
      Returns:
      The content of the selector (the thing in square brackets []), if any.
    • isOptional

      public boolean isOptional()
      Returns:
      Tells if the element was marked with the question mark operator "?".
    • hasSubPaths

      public boolean hasSubPaths()
    • getSubPaths

      public List<Path> getSubPaths()