Interface YangModel
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject,YangModelNameVersion
- All Known Subinterfaces:
GnmiYangModel,UploadYangModelInput
@Generated("mdsal-binding-generator") public interface YangModel extends org.opendaylight.yangtools.yang.binding.DataObject, YangModelNameVersion
This class represents the following YANG schema fragment defined in module gnmi-yang-storage
grouping yang-model { uses yang-model-name-version; leaf body { type string; } }The schema path to identify an instance is gnmi-yang-storageyang-model
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QNameQNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetBody()Return body, ornullif it is not present.Class<? extends YangModel>implementedInterface()default @NonNull StringrequireBody()Return body, guaranteed to be non-null.-
Methods inherited from interface org.opendaylight.yang.gen.v1.urn.lighty.gnmi.yang.storage.rev210331.YangModelNameVersion
getName, getVersion, requireName, requireVersion
-
-
-
-
Method Detail
-
implementedInterface
Class<? extends YangModel> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject- Specified by:
implementedInterfacein interfaceYangModelNameVersion
-
getBody
String getBody()
Return body, ornullif it is not present.Body of the yang model- Returns:
Stringbody, ornullif it is not present.
-
requireBody
default @NonNull String requireBody()
Return body, guaranteed to be non-null.Body of the yang model- Returns:
Stringbody, guaranteed to be non-null.- Throws:
NoSuchElementException- if body is not present
-
-