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 Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QNameQNAMEYANG identifier of the statement represented by this class.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetName()Return name, ornullif it is not present.StringgetValue()Return value, ornullif it is not present.Class<? extends NameValue>implementedInterface()default @NonNull StringrequireName()Return name, guaranteed to be non-null.default @NonNull StringrequireValue()Return value, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends NameValue> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getName
String getName()
Return name, ornullif it is not present.- Returns:
Stringname, ornullif it is not present.
-
requireName
default @NonNull String requireName()
Return name, guaranteed to be non-null.- Returns:
Stringname, guaranteed to be non-null.- Throws:
NoSuchElementException- if name is not present
-
getValue
String getValue()
Return value, ornullif it is not present.- Returns:
Stringvalue, ornullif it is not present.
-
requireValue
default @NonNull String requireValue()
Return value, guaranteed to be non-null.- Returns:
Stringvalue, guaranteed to be non-null.- Throws:
NoSuchElementException- if value is not present
-
-