Interface SchemaNode

    • Method Detail

      • getQName

        @NonNull org.opendaylight.yangtools.yang.common.QName getQName()
        Returns QName of the instance of the type SchemaNode.
        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 a grouping, a typedef or a container.
        • 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 given EffectiveModelContext.
        An alternative method of exchanging pointers to schema nodes (well, statements, really), exists in the form of EffectiveStatementInference and its ecosystem. This method is scheduled for removal in the next major release.
        Returns the schema path of the instance of the type SchemaNode.

        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