Interface Toaster
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.Augmentable<Toaster>,org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>,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 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;
}
}
To create instances of this class use ToasterBuilder.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThis class represents the following YANG schema fragment defined in module toaster -
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 TypeMethodDescriptionstatic 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.Uint32Return darknessFactor, ornullif it is not present.Return toasterManufacturer, ornullif it is not present.Return toasterModelNumber, ornullif it is not present.Return toasterStatus, ornullif it is not present.default @NonNull org.opendaylight.yangtools.yang.common.Uint32Return darknessFactor, guaranteed to be non-null.default @NonNull DisplayStringReturn toasterManufacturer, guaranteed to be non-null.default @NonNull DisplayStringReturn toasterModelNumber, guaranteed to be non-null.default @NonNull Toaster.ToasterStatusReturn toasterStatus, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.yang.binding.Augmentable
augmentation, augmentations
-
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
-
bindingHashCode
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
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
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:
DisplayStringtoasterManufacturer, ornullif it is not present.
-
requireToasterManufacturer
Return toasterManufacturer, guaranteed to be non-null.The name of the toaster's manufacturer. For instance, Microsoft Toaster.- Returns:
DisplayStringtoasterManufacturer, guaranteed to be non-null.- Throws:
NoSuchElementException- if toasterManufacturer 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:
DisplayStringtoasterModelNumber, ornullif it is not present.
-
requireToasterModelNumber
Return toasterModelNumber, guaranteed to be non-null.The name of the toaster's model. For instance, Radiant Automatic.- Returns:
DisplayStringtoasterModelNumber, guaranteed to be non-null.- Throws:
NoSuchElementException- if toasterModelNumber is not present
-
getToasterStatus
Toaster.ToasterStatus getToasterStatus()Return toasterStatus, ornullif it is not present.This variable indicates the current state of the toaster.- Returns:
ToasterStatustoasterStatus, ornullif it is not present.
-
requireToasterStatus
Return toasterStatus, guaranteed to be non-null.This variable indicates the current state of the toaster.- Returns:
ToasterStatustoasterStatus, guaranteed to be non-null.- Throws:
NoSuchElementException- if toasterStatus 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:
Uint32darknessFactor, ornullif it is not present.
-
requireDarknessFactor
default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireDarknessFactor()Return darknessFactor, guaranteed to be non-null.The darkness factor. Basically, the number of ms to multiple the doneness value by.- Returns:
Uint32darknessFactor, guaranteed to be non-null.- Throws:
NoSuchElementException- if darknessFactor is not present
-