Interface IdentitySchemaNode
- All Superinterfaces:
DocumentedNode
,DocumentedNode.WithStatus
,EffectiveStatementEquivalent<IdentityEffectiveStatement>
,SchemaNode
- All Known Implementing Classes:
EmptyIdentityEffectiveStatement
,RegularIdentityEffectiveStatement
public interface IdentitySchemaNode
extends SchemaNode, EffectiveStatementEquivalent<IdentityEffectiveStatement>
Interface describing YANG 'identity' statement.
The 'identity' statement is used to define a new globally unique, abstract, and untyped identity. Its only purpose is to denote its name, semantics, and existence. The built-in datatype "identityref" can be used to reference identities within a data model.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
DocumentedNode.WithStatus
-
Method Summary
Modifier and TypeMethodDescription@NonNull Collection
<? extends @NonNull IdentitySchemaNode> Return base identities of this identity.Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
getDescription, getReference, getUnknownSchemaNodes
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus
getStatus
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.EffectiveStatementEquivalent
asEffectiveStatement
Methods inherited from interface org.opendaylight.yangtools.yang.model.api.SchemaNode
getQName
-
Method Details
-
getBaseIdentities
@NonNull Collection<? extends @NonNull IdentitySchemaNode> getBaseIdentities()Return base identities of this identity. The semantics of differ between RFC6020 and RFC7950 here. YANG 1.0 uses single inheritance, where there can be 0..1 base identities. YANG 1.1 uses multiple inheritance, where there can be 0..N base identities.Callers should be prepared to handle multiple base identities.
- Returns:
- set of existing identities from which the new identity is derived or an empty Set if the identity is a root identity.
-