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
All Known Subinterfaces:
GnmiYangModel, UploadYangModelInput, YangModel

@Generated("mdsal-binding-generator") public interface YangModelNameVersion extends org.opendaylight.yangtools.yang.binding.DataObject

This class represents the following YANG schema fragment defined in module gnmi-yang-storage

 grouping yang-model-name-version {
   leaf name {
     type string;
   }
   leaf version {
     type module-version-type;
   }
 }
 
  • Field Details

    • QNAME

      static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
      YANG identifier of the statement represented by this class.
  • Method Details

    • implementedInterface

      Class<? extends YangModelNameVersion> implementedInterface()
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
    • getName

      String getName()
      Return name, or null if it is not present.
           
               Name of the yang model
           
       
      Returns:
      String name, or null if it is not present.
    • requireName

      default @NonNull String requireName()
      Return name, guaranteed to be non-null.
           
               Name of the yang model
           
       
      Returns:
      String name, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if name is not present
    • getVersion

      ModuleVersionType getVersion()
      Return version, or null if it is not present.
           
               Version of the yang model
           
       
      Returns:
      ModuleVersionType version, or null if it is not present.
    • requireVersion

      default @NonNull ModuleVersionType requireVersion()
      Return version, guaranteed to be non-null.
           
               Version of the yang model
           
       
      Returns:
      ModuleVersionType version, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if version is not present