Interface YangModel
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>,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;
}
}
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Methods inherited from interface org.opendaylight.yang.gen.v1.urn.lighty.gnmi.yang.storage.rev210331.YangModelNameVersion
getName, getVersion, requireName, requireVersion
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.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
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
-