Package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.protection.subobject
Interface ProtectionSubobject
- All Superinterfaces:
org.opendaylight.yangtools.binding.Augmentable<ProtectionSubobject>,org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>,org.opendaylight.yangtools.binding.BindingObject,org.opendaylight.yangtools.binding.ChildOf<ProtectionSubobject>,org.opendaylight.yangtools.binding.DataContainer,org.opendaylight.yangtools.binding.DataObject
@Generated("mdsal-binding-generator")
public interface ProtectionSubobject
extends org.opendaylight.yangtools.binding.ChildOf<ProtectionSubobject>, org.opendaylight.yangtools.binding.Augmentable<ProtectionSubobject>
This class represents the following YANG schema fragment defined in module rsvp
container protection-subobject {
leaf secondary {
type boolean;
default false;
}
leaf protecting {
type boolean;
default false;
}
leaf notification {
type boolean;
default false;
}
leaf operational {
type boolean;
default false;
}
leaf lsp-flag {
type lsp-flag;
}
leaf link-flags {
type link-flags;
}
leaf in-place {
type boolean;
default false;
}
leaf required {
type boolean;
default false;
}
leaf seg-flag {
type lsp-flag;
}
}
To create instances of this class use ProtectionSubobjectBuilder.
- See Also:
-
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 ProtectionSubobject thisObj, Object obj) Default implementation ofObject.equals(Object)contract for this interface.static intbindingHashCode(@NonNull ProtectionSubobject obj) Default implementation ofObject.hashCode()contract for this interface.static StringbindingToString(@NonNull ProtectionSubobject obj) Default implementation ofObject.toString()contract for this interface.Return inPlace, ornullif it is not present.Return linkFlags, ornullif it is not present.Return lspFlag, ornullif it is not present.Return notification, ornullif it is not present.Return operational, ornullif it is not present.Return protecting, ornullif it is not present.Return required, ornullif it is not present.Return secondary, ornullif it is not present.Return segFlag, ornullif it is not present.default Class<ProtectionSubobject> default @NonNull BooleanReturn inPlace, guaranteed to be non-null.default @NonNull LinkFlagsReturn linkFlags, guaranteed to be non-null.default @NonNull LspFlagReturn lspFlag, guaranteed to be non-null.default @NonNull BooleanReturn notification, guaranteed to be non-null.default @NonNull BooleanReturn operational, guaranteed to be non-null.default @NonNull BooleanReturn protecting, guaranteed to be non-null.default @NonNull BooleanReturn required, guaranteed to be non-null.default @NonNull BooleanReturn secondary, guaranteed to be non-null.default @NonNull LspFlagReturn segFlag, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.Augmentable
augmentation, augmentationOrElseThrow, augmentationOrElseThrow, 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.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.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- ifobjisnull
-
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- ifthisObjisnull
-
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- ifobjisnull
-
getSecondary
Boolean getSecondary()Return secondary, ornullif it is not present.- Returns:
Booleansecondary, ornullif it is not present.
-
requireSecondary
Return secondary, guaranteed to be non-null.- Returns:
Booleansecondary, guaranteed to be non-null.- Throws:
NoSuchElementException- if secondary is not present
-
getProtecting
Boolean getProtecting()Return protecting, ornullif it is not present.- Returns:
Booleanprotecting, ornullif it is not present.
-
requireProtecting
Return protecting, guaranteed to be non-null.- Returns:
Booleanprotecting, guaranteed to be non-null.- Throws:
NoSuchElementException- if protecting is not present
-
getNotification
Boolean getNotification()Return notification, ornullif it is not present.- Returns:
Booleannotification, ornullif it is not present.
-
requireNotification
Return notification, guaranteed to be non-null.- Returns:
Booleannotification, guaranteed to be non-null.- Throws:
NoSuchElementException- if notification is not present
-
getOperational
Boolean getOperational()Return operational, ornullif it is not present.- Returns:
Booleanoperational, ornullif it is not present.
-
requireOperational
Return operational, guaranteed to be non-null.- Returns:
Booleanoperational, guaranteed to be non-null.- Throws:
NoSuchElementException- if operational is not present
-
getLspFlag
LspFlag getLspFlag()Return lspFlag, ornullif it is not present.- Returns:
LspFlaglspFlag, ornullif it is not present.
-
requireLspFlag
Return lspFlag, guaranteed to be non-null.- Returns:
LspFlaglspFlag, guaranteed to be non-null.- Throws:
NoSuchElementException- if lspFlag is not present
-
getLinkFlags
LinkFlags getLinkFlags()Return linkFlags, ornullif it is not present.- Returns:
LinkFlagslinkFlags, ornullif it is not present.
-
requireLinkFlags
Return linkFlags, guaranteed to be non-null.- Returns:
LinkFlagslinkFlags, guaranteed to be non-null.- Throws:
NoSuchElementException- if linkFlags is not present
-
getInPlace
Boolean getInPlace()Return inPlace, ornullif it is not present.- Returns:
BooleaninPlace, ornullif it is not present.
-
requireInPlace
Return inPlace, guaranteed to be non-null.- Returns:
BooleaninPlace, guaranteed to be non-null.- Throws:
NoSuchElementException- if inPlace is not present
-
getRequired
Boolean getRequired()Return required, ornullif it is not present.- Returns:
Booleanrequired, ornullif it is not present.
-
requireRequired
Return required, guaranteed to be non-null.- Returns:
Booleanrequired, guaranteed to be non-null.- Throws:
NoSuchElementException- if required is not present
-
getSegFlag
LspFlag getSegFlag()Return segFlag, ornullif it is not present.- Returns:
LspFlagsegFlag, ornullif it is not present.
-
requireSegFlag
Return segFlag, guaranteed to be non-null.- Returns:
LspFlagsegFlag, guaranteed to be non-null.- Throws:
NoSuchElementException- if segFlag is not present
-