Interface NameValue
- 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:
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
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
-
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
-
getName
String getName()Return name, ornullif it is not present.- Returns:
Stringname, ornullif it is not present.
-
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
Return value, guaranteed to be non-null.- Returns:
Stringvalue, guaranteed to be non-null.- Throws:
NoSuchElementException- if value is not present
-