Class SchemaNodeIdentifier
- java.lang.Object
-
- org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier
-
- All Implemented Interfaces:
Immutable
,MutationBehaviour<Immutable>
- Direct Known Subclasses:
SchemaNodeIdentifier.Absolute
,SchemaNodeIdentifier.Descendant
public abstract class SchemaNodeIdentifier extends Object implements Immutable
Represents unique path to every schema node inside the schema node identifier namespace. This concept is defined in RFC7950.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SchemaNodeIdentifier.Absolute
An absolute schema node identifier.static class
SchemaNodeIdentifier.Descendant
A descendant schema node identifier.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description @NonNull SchemaPath
asSchemaPath()
Create theSchemaPath
equivalent of this identifier.boolean
equals(Object obj)
@NonNull QName
firstNodeIdentifier()
Return the first node identifier.abstract @NonNull List<QName>
getNodeIdentifiers()
Return the non-empty sequence of node identifiers which constitute this schema node identifier.int
hashCode()
@NonNull QName
lastNodeIdentifier()
Return the last node identifier.String
toString()
-
-
-
Method Detail
-
getNodeIdentifiers
public abstract @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 @NonNull QName firstNodeIdentifier()
Return the first node identifier. This method is equivalent togetNodeIdentifiers().get(0)
, but is potentially more efficient.- Returns:
- The first node identifier
-
lastNodeIdentifier
public @NonNull QName lastNodeIdentifier()
Return the last node identifier. This method is equivalent togetNodeIdentifiers().get(size - 1)
, but is potentially more efficient.- Returns:
- The last node identifier
-
asSchemaPath
public final @NonNull SchemaPath asSchemaPath()
Create theSchemaPath
equivalent of this identifier.- Returns:
- SchemaPath equivalent.
-
-