Interface SchemaNode
-
- All Superinterfaces:
DocumentedNode
,DocumentedNode.WithStatus
- All Known Subinterfaces:
ActionDefinition
,AnydataSchemaNode
,AnyxmlSchemaNode
,BinaryTypeDefinition
,BitsTypeDefinition
,BooleanTypeDefinition
,CaseSchemaNode
,ChoiceSchemaNode
,ContainerLike
,ContainerSchemaNode
,DataSchemaNode
,DecimalTypeDefinition
,DerivableSchemaNode
,EffectiveModelContext
,EmptyTypeDefinition
,EnumTypeDefinition
,ExtensionDefinition
,FeatureDefinition
,GroupingDefinition
,IdentityrefTypeDefinition
,IdentitySchemaNode
,IdentityTypeDefinition
,InputSchemaNode
,InstanceIdentifierTypeDefinition
,Int16TypeDefinition
,Int32TypeDefinition
,Int64TypeDefinition
,Int8TypeDefinition
,LeafListSchemaNode
,LeafrefTypeDefinition
,LeafSchemaNode
,LengthRestrictedTypeDefinition<T>
,ListSchemaNode
,NotificationDefinition
,OperationDefinition
,OutputSchemaNode
,RangeRestrictedTypeDefinition<T,N>
,RequireInstanceRestrictedTypeDefinition<T>
,RpcDefinition
,SchemaContext
,StringTypeDefinition
,TypedDataSchemaNode
,TypeDefinition<T>
,Uint16TypeDefinition
,Uint32TypeDefinition
,Uint64TypeDefinition
,Uint8TypeDefinition
,UnionTypeDefinition
,UnknownSchemaNode
,UnknownTypeDefinition
public interface SchemaNode extends DocumentedNode.WithStatus
SchemaNode represents a node in schema tree.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode
DocumentedNode.WithStatus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default @NonNull SchemaPath
getPath()
Deprecated, for removal: This API element is subject to removal in a future version.The idea of identifying SchemaNodes through a global path does not work.@NonNull org.opendaylight.yangtools.yang.common.QName
getQName()
Returns QName of the instance of the typeSchemaNode
.-
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
-
-
-
-
Method Detail
-
getQName
@NonNull org.opendaylight.yangtools.yang.common.QName getQName()
Returns QName of the instance of the typeSchemaNode
.- Returns:
- QName with the name of the schema node
-
getPath
@Deprecated(forRemoval=true) default @NonNull SchemaPath getPath()
Deprecated, for removal: This API element is subject to removal in a future version.The idea of identifying SchemaNodes through a global path does not work. There are two problems:- SchemaPath does not work because it does not discern namespaces, i.e. we do not known whether
the
QName
refers to agrouping
, atypedef
or acontainer
. - Such a path needs to be maintained by each SchemaNode and requires us to instantiate each
effective statement as a separate object (because
getPath()
is effectively an identity within a givenEffectiveModelContext
.
EffectiveStatementInference
and its ecosystem. This method is scheduled for removal in the next major release.Returns the schema path of the instance of the typeSchemaNode
.The default implementation throws an
UnsupportedOperationException
.- Returns:
- schema path of the schema node
- Throws:
UnsupportedOperationException
- when the implementation does not support per-node unique paths
- SchemaPath does not work because it does not discern namespaces, i.e. we do not known whether
the
-
-