Interface NameValue

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject
    All Known Subinterfaces:
    OrderedList, UnkeyedList, UnorderedList

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

    This class represents the following YANG schema fragment defined in module opendaylight-sal-test-store

     grouping name-value {
       leaf name {
         type string;
       }
       leaf value {
         type string;
       }
     }
     
    • Field Detail

      • QNAME

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

      • implementedInterface

        Class<? extends NameValue> implementedInterface()
        Specified by:
        implementedInterface in interface 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.
        Returns:
        String name, or null if it is not present.
      • requireName

        default @NonNull String requireName()
        Return name, guaranteed to be non-null.
        Returns:
        String name, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if name is not present
      • getValue

        String getValue()
        Return value, or null if it is not present.
        Returns:
        String value, or null if it is not present.
      • requireValue

        default @NonNull String requireValue()
        Return value, guaranteed to be non-null.
        Returns:
        String value, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if value is not present