Class YangLibraryConstants
- java.lang.Object
-
- org.opendaylight.yangtools.rfc8528.data.api.YangLibraryConstants
-
@Beta @NonNullByDefault public final class YangLibraryConstants extends Object
Constants related toietf-yang-library.yang
. As schema-mount works in concert with yang-library, we need these constants to interpret correctly categorize incoming data and present them to schema resolution process.While RFC7895 and RFC8525 are not strictly required by YANG, RFC7950 contains a weak reference to it when dealing with capability negotiation on protocol layers. Moreover RFC8528 makes it explicit that an instance of yang-library is mounted underneath both
inline
andshared-schema
types of mount.While we could mandate use of either RFC7895 or RFC8525 across the board, this is not feasible, as mount points may be nested and point to external systems -- hence it is completely possible to encounter both old and new information in a single mount point tree.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
YangLibraryConstants.ContainerName
Top-level containers which hold YANG Library information, ordered by descending preference, with more modern and/or preferred entries first.
-
Field Summary
Fields Modifier and Type Field Description static String
MODULE_NAME
The module name assigned toietf-yang-library
.static URI
MODULE_NAMESPACE
The namespace assigned toietf-yang-library
.
-
-
-
Field Detail
-
MODULE_NAMESPACE
public static final URI MODULE_NAMESPACE
The namespace assigned toietf-yang-library
. This constant is required for XML-like parsers, using XML namespaces to reference modules.
-
MODULE_NAME
public static final String MODULE_NAME
The module name assigned toietf-yang-library
. This constant is required for JSON-like parsers, using module names to reference modules.- See Also:
- Constant Field Values
-
-