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.Descendant, SchemaNodeIdentifier.Absolute
Represents unique path to every schema node inside the schema node identifier namespace. This concept is defined
in RFC7950.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An absolute schema node identifier.static class
A descendant schema node identifier. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SchemaNodeIdentifier
public SchemaNodeIdentifier()
-
-
Method Details
-
getNodeIdentifiers
Return the non-empty sequence of node identifiers which constitute this schema node identifier.- Returns:
- Non-empty sequence of node identifiers
-
firstNodeIdentifier
Return the first node identifier. This method is equivalent togetNodeIdentifiers().get(0)
, but is potentially more efficient.- Returns:
- The first node identifier
-
lastNodeIdentifier
Return the last node identifier. This method is equivalent togetNodeIdentifiers().get(size - 1)
, but is potentially more efficient.- Returns:
- The last node identifier
-
hashCode
public final int hashCode() -
equals
-
toString
-