Interface Toaster
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.Augmentable<Toaster>,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.ChildOf<ToasterData>,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator") public interface Toaster extends org.opendaylight.yangtools.yang.binding.ChildOf<ToasterData>, org.opendaylight.yangtools.yang.binding.Augmentable<Toaster>
Top-level container for all toaster database objects.This class represents the following YANG schema fragment defined in module UnqualifiedQName{localName=toaster}
container toaster { presence "Indicates the toaster service is available"; leaf toasterManufacturer { type DisplayString; config false; } leaf toasterModelNumber { type DisplayString; config false; } leaf toasterStatus { type enumeration { enum up { value 1; } enum down { value 2; } } config false; } leaf darknessFactor { type uint32; default 1000; } }The schema path to identify an instance is toaster/toasterTo create instances of this class use
ToasterBuilder.- See Also:
ToasterBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classToaster.ToasterStatus
-
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 Toaster thisObj, Object obj)Default implementation ofObject.equals(Object)contract for this interface.static intbindingHashCode(@NonNull Toaster obj)Default implementation ofObject.hashCode()contract for this interface.static StringbindingToString(@NonNull Toaster obj)Default implementation ofObject.toString()contract for this interface.org.opendaylight.yangtools.yang.common.Uint32getDarknessFactor()Return darknessFactor, ornullif it is not present..DisplayStringgetToasterManufacturer()Return toasterManufacturer, ornullif it is not present..DisplayStringgetToasterModelNumber()Return toasterModelNumber, ornullif it is not present..Toaster.ToasterStatusgetToasterStatus()Return toasterStatus, ornullif it is not present..default Class<Toaster>implementedInterface()
-
-
-
Method Detail
-
implementedInterface
default Class<Toaster> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
bindingHashCode
static int bindingHashCode(@NonNull Toaster 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 Toaster 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 Toaster 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
-
getToasterManufacturer
DisplayString getToasterManufacturer()
Return toasterManufacturer, ornullif it is not present..The name of the toaster's manufacturer. For instance, Microsoft Toaster.- Returns:
org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.DisplayStringtoasterManufacturer, ornullif it is not present.
-
getToasterModelNumber
DisplayString getToasterModelNumber()
Return toasterModelNumber, ornullif it is not present..The name of the toaster's model. For instance, Radiant Automatic.- Returns:
org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.DisplayStringtoasterModelNumber, ornullif it is not present.
-
getToasterStatus
Toaster.ToasterStatus getToasterStatus()
Return toasterStatus, ornullif it is not present..This variable indicates the current state of the toaster.- Returns:
org.opendaylight.yang.gen.v1.http.netconfcentral.org.ns.toaster.rev091120.Toaster.ToasterStatustoasterStatus, ornullif it is not present.
-
getDarknessFactor
org.opendaylight.yangtools.yang.common.Uint32 getDarknessFactor()
Return darknessFactor, ornullif it is not present..The darkness factor. Basically, the number of ms to multiple the doneness value by.- Returns:
org.opendaylight.yangtools.yang.common.Uint32darknessFactor, ornullif it is not present.
-
-