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 Deprecated Methods Modifier and Type Method Description @NonNull SchemaPath
asSchemaPath()
Deprecated, for removal: This API element is subject to removal in a future version.This method is scheduled for removal along withSchemaPath
.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
@Deprecated(since="7.0.9", forRemoval=true) public final @NonNull SchemaPath asSchemaPath()
Deprecated, for removal: This API element is subject to removal in a future version.This method is scheduled for removal along withSchemaPath
. This method performs memoization, which should not be needed most of the time. If you need memoization, you probably can do better, as you probably want to attach more state. If you just need a SchemaPath, useSchemaPath.of(SchemaNodeIdentifier)
instead.Create theSchemaPath
equivalent of this identifier.- Returns:
- SchemaPath equivalent.
-
-