Class SchemaNodeIdentifier

java.lang.Object
org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier
All Implemented Interfaces:
Immutable
Direct Known Subclasses:
SchemaNodeIdentifier.Absolute, SchemaNodeIdentifier.Descendant

public abstract sealed class SchemaNodeIdentifier extends Object implements Immutable permits SchemaNodeIdentifier.Absolute, SchemaNodeIdentifier.Descendant
Represents unique path to every schema node inside the schema node identifier namespace. This concept is defined in RFC7950.
  • Method Details

    • getNodeIdentifiers

      public final @NonNull List<QName> getNodeIdentifiers()
      Return the non-empty sequence of node identifiers which constitute this schema node identifier.
      Returns:
      Non-empty sequence of node identifiers
    • firstNodeIdentifier

      public final @NonNull QName firstNodeIdentifier()
      Return the first node identifier. This method is equivalent to getNodeIdentifiers().get(0), but is potentially more efficient.
      Returns:
      The first node identifier
    • lastNodeIdentifier

      public final @NonNull QName lastNodeIdentifier()
      Return the last node identifier. This method is equivalent to getNodeIdentifiers().get(size - 1), but is potentially more efficient.
      Returns:
      The last node identifier
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public final String toString()
      Overrides:
      toString in class Object