Interface ToasterAppConfig
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.Augmentable<ToasterAppConfig>,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.ChildOf<ToasterAppConfigData>,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator") public interface ToasterAppConfig extends org.opendaylight.yangtools.yang.binding.ChildOf<ToasterAppConfigData>, org.opendaylight.yangtools.yang.binding.Augmentable<ToasterAppConfig>
This class represents the following YANG schema fragment defined in module toaster-app-config
container toaster-app-config { leaf manufacturer { type toaster:DisplayString; default Opendaylight; } leaf model-number { type toaster:DisplayString; default "Model 1 - Binding Aware"; } leaf max-make-toast-tries { type uint16; default 2; } }The schema path to identify an instance is toaster-app-configtoaster-app-configTo create instances of this class use
ToasterAppConfigBuilder.- See Also:
ToasterAppConfigBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QNameQNAME
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static booleanbindingEquals(@NonNull ToasterAppConfig thisObj, Object obj)Default implementation ofObject.equals(Object)contract for this interface.static intbindingHashCode(@NonNull ToasterAppConfig obj)Default implementation ofObject.hashCode()contract for this interface.static StringbindingToString(@NonNull ToasterAppConfig obj)Default implementation ofObject.toString()contract for this interface.org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.DisplayStringgetManufacturer()Return manufacturer, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint16getMaxMakeToastTries()Return maxMakeToastTries, ornullif it is not present.org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.DisplayStringgetModelNumber()Return modelNumber, ornullif it is not present.default Class<ToasterAppConfig>implementedInterface()default @NonNull org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.DisplayStringrequireManufacturer()Return manufacturer, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint16requireMaxMakeToastTries()Return maxMakeToastTries, guaranteed to be non-null.default @NonNull org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.DisplayStringrequireModelNumber()Return modelNumber, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
default Class<ToasterAppConfig> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
bindingHashCode
static int bindingHashCode(@NonNull ToasterAppConfig obj)
Default implementation ofObject.hashCode()contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent hashing results across all implementations.- Parameters:
obj- Object for which to generate hashCode() result.- Returns:
- Hash code value of data modeled by this interface.
- Throws:
NullPointerException- ifobjis null
-
bindingEquals
static boolean bindingEquals(@NonNull ToasterAppConfig thisObj, Object obj)
Default implementation ofObject.equals(Object)contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent equality results across all implementations.- Parameters:
thisObj- Object acting as the receiver of equals invocationobj- Object acting as argument to equals invocation- Returns:
- True if thisObj and obj are considered equal
- Throws:
NullPointerException- ifthisObjis null
-
bindingToString
static String bindingToString(@NonNull ToasterAppConfig obj)
Default implementation ofObject.toString()contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent string representations across all implementations.- Parameters:
obj- Object for which to generate toString() result.- Returns:
Stringvalue of data modeled by this interface.- Throws:
NullPointerException- ifobjis null
-
getManufacturer
org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.DisplayString getManufacturer()
Return manufacturer, ornullif it is not present.- Returns:
DisplayStringmanufacturer, ornullif it is not present.
-
requireManufacturer
default @NonNull org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.DisplayString requireManufacturer()
Return manufacturer, guaranteed to be non-null.- Returns:
DisplayStringmanufacturer, guaranteed to be non-null.- Throws:
NoSuchElementException- if manufacturer is not present
-
getModelNumber
org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.DisplayString getModelNumber()
Return modelNumber, ornullif it is not present.- Returns:
DisplayStringmodelNumber, ornullif it is not present.
-
requireModelNumber
default @NonNull org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.DisplayString requireModelNumber()
Return modelNumber, guaranteed to be non-null.- Returns:
DisplayStringmodelNumber, guaranteed to be non-null.- Throws:
NoSuchElementException- if modelNumber is not present
-
getMaxMakeToastTries
org.opendaylight.yangtools.yang.common.Uint16 getMaxMakeToastTries()
Return maxMakeToastTries, ornullif it is not present.- Returns:
Uint16maxMakeToastTries, ornullif it is not present.
-
requireMaxMakeToastTries
default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireMaxMakeToastTries()
Return maxMakeToastTries, guaranteed to be non-null.- Returns:
Uint16maxMakeToastTries, guaranteed to be non-null.- Throws:
NoSuchElementException- if maxMakeToastTries is not present
-
-