Interface SchemaNode
-
- All Superinterfaces:
DocumentedNode
,DocumentedNode.WithStatus
- All Known Subinterfaces:
ActionDefinition
,AliasSchemaNode
,AnnotationSchemaNode
,AnnotationSchemaNodeAwareSchemaContext
,AnydataSchemaNode
,AnyxmlSchemaNode
,BinaryTypeDefinition
,BitsTypeDefinition
,BooleanTypeDefinition
,CaseSchemaNode
,ChoiceSchemaNode
,ContainerSchemaNode
,DataSchemaNode
,DecimalTypeDefinition
,DefaultDenyAllSchemaNode
,DefaultDenyWriteSchemaNode
,DefValSchemaNode
,DerivableSchemaNode
,DisplayHintSchemaNode
,EffectiveModelContext
,EffectiveStatementMixins.DataSchemaNodeMixin<A,D>
,EffectiveStatementMixins.OpaqueDataSchemaNodeMixin<D>
,EffectiveStatementMixins.OperationContainerMixin<D>
,EffectiveStatementMixins.OperationDefinitionMixin<D>
,EffectiveStatementMixins.SchemaNodeMixin<A,D>
,EffectiveStatementMixins.UnknownSchemaNodeMixin<A,D>
,EmptyTypeDefinition
,EnumTypeDefinition
,ExtensionDefinition
,FeatureDefinition
,GetFilterElementAttributesSchemaNode
,GroupingDefinition
,IdentityrefTypeDefinition
,IdentitySchemaNode
,IdentityTypeDefinition
,ImpliedSchemaNode
,InstanceIdentifierTypeDefinition
,Int16TypeDefinition
,Int32TypeDefinition
,Int64TypeDefinition
,Int8TypeDefinition
,LeafListSchemaNode
,LeafrefTypeDefinition
,LeafSchemaNode
,LengthRestrictedTypeDefinition<T>
,ListSchemaNode
,MaxAccessSchemaNode
,MountPointSchemaNode
,NotificationDefinition
,OidSchemaNode
,OpenConfigHashedValueSchemaNode
,OperationDefinition
,RangeRestrictedTypeDefinition<T,N>
,RequireInstanceRestrictedTypeDefinition<T>
,RpcDefinition
,SchemaContext
,StringTypeDefinition
,SubIdSchemaNode
,TypedDataSchemaNode
,TypeDefinition<T>
,Uint16TypeDefinition
,Uint32TypeDefinition
,Uint64TypeDefinition
,Uint8TypeDefinition
,UnionTypeDefinition
,UnknownSchemaNode
,UnknownTypeDefinition
,YangDataSchemaNode
,YangModeledAnyxmlSchemaNode
- All Known Implementing Classes:
AbstractSchemaContext
,AnyxmlSchemaLocationEffectiveStatementImpl
,EffectiveSchemaContext
,FilteringSchemaContextProxy
,OperationAsContainer
,RefineEffectiveStatementImpl
,SimpleSchemaContext
,UnknownEffectiveStatementBase
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 Deprecated Methods Modifier and Type Method Description @NonNull SchemaPath
getPath()
Deprecated.The idea of identifying SchemaNodes through a global path does not work.@NonNull 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 QName getQName()
Returns QName of the instance of the typeSchemaNode
.- Returns:
- QName with the name of the schema node
-
getPath
@Deprecated @NonNull SchemaPath getPath()
Deprecated.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
.
Returns the schema path of the instance of the typeSchemaNode
.- 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
-
-