Interface InterfaceRefCommon
- 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
@Generated("mdsal-binding-generator")
public interface InterfaceRefCommon
extends org.opendaylight.yangtools.yang.binding.DataObject
Reference leafrefs to interface / subinterface
This class represents the following YANG schema fragment defined in module openconfig-interfaces
grouping interface-ref-common {
leaf interface {
type leafref {
path /oc-if:interfaces/oc-if:interface/oc-if:name;
}
}
leaf subinterface {
type leafref {
path /oc-if:interfaces/oc-if:interface[oc-if:name=current()/../interface]/oc-if:subinterfaces/oc-if:subinterface/oc-if:index;
}
}
}
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionReturn interface, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint32Return subinterface, ornullif it is not present.Class<? extends InterfaceRefCommon>default @NonNull StringReturn interface, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint32Return subinterface, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends InterfaceRefCommon> 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
-
getInterface
String getInterface()Return interface, ornullif it is not present.Reference to a base interface. If a reference to a subinterface is required, this leaf must be specified to indicate the base interface.- Returns:
Stringinterface, ornullif it is not present.
-
requireInterface
Return interface, guaranteed to be non-null.Reference to a base interface. If a reference to a subinterface is required, this leaf must be specified to indicate the base interface.- Returns:
Stringinterface, guaranteed to be non-null.- Throws:
NoSuchElementException- if interface is not present
-
getSubinterface
org.opendaylight.yangtools.yang.common.Uint32 getSubinterface()Return subinterface, ornullif it is not present.Reference to a subinterface -- this requires the base interface to be specified using the interface leaf in this container. If only a reference to a base interface is requuired, this leaf should not be set.- Returns:
Uint32subinterface, ornullif it is not present.
-
requireSubinterface
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireSubinterface()Return subinterface, guaranteed to be non-null.Reference to a subinterface -- this requires the base interface to be specified using the interface leaf in this container. If only a reference to a base interface is requuired, this leaf should not be set.- Returns:
Uint32subinterface, guaranteed to be non-null.- Throws:
NoSuchElementException- if subinterface is not present
-