Interface Lsp
- All Superinterfaces:
org.opendaylight.yangtools.binding.Augmentable<Lsp>
,org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>
,org.opendaylight.yangtools.binding.BindingObject
,org.opendaylight.yangtools.binding.ChildOf<LspObject>
,org.opendaylight.yangtools.binding.DataContainer
,org.opendaylight.yangtools.binding.DataObject
,org.opendaylight.yangtools.binding.Grouping
,Object
,ObjectHeader
@Generated("mdsal-binding-generator")
public interface Lsp
extends org.opendaylight.yangtools.binding.ChildOf<LspObject>, org.opendaylight.yangtools.binding.Augmentable<Lsp>, Object
This class represents the following YANG schema fragment defined in module odl-pcep-ietf-stateful
container lsp { uses pcep:object; container tlvs { uses lsp-error-code-tlv; uses lsp-identifiers-tlv; uses rsvp-error-spec-tlv; uses symbolic-path-name-tlv; uses pcep:vs-tlv; uses pcep:vendor-information-tlvs; uses path-binding-tlv; } leaf plsp-id { type plsp-id; } leaf delegate { type boolean; default false; } leaf sync { type boolean; default false; } leaf remove { type boolean; default false; } leaf administrative { type boolean; default false; } leaf operational { type operational-status; } }
To create instances of this class use LspBuilder
.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
bindingEquals
(@NonNull Lsp thisObj, Object obj) Default implementation ofObject.equals(java.lang.Object)
contract for this interface.static int
bindingHashCode
(@NonNull Lsp obj) Default implementation ofObject.hashCode()
contract for this interface.static String
bindingToString
(@NonNull Lsp obj) Default implementation ofObject.toString()
contract for this interface.Return administrative, ornull
if it is not present.Return delegate, ornull
if it is not present.Return operational, ornull
if it is not present.Return plspId, ornull
if it is not present.Return remove, ornull
if it is not present.getSync()
Return sync, ornull
if it is not present.getTlvs()
Return tlvs, ornull
if it is not present.@NonNull Tlvs
Return tlvs, or an empty instance if it is not present.default @NonNull Boolean
Return administrative, guaranteed to be non-null.default @NonNull Boolean
Return delegate, guaranteed to be non-null.default @NonNull OperationalStatus
Return operational, guaranteed to be non-null.default @NonNull PlspId
Return plspId, guaranteed to be non-null.default @NonNull Boolean
Return remove, guaranteed to be non-null.default @NonNull Boolean
Return sync, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.Augmentable
augmentation, augmentationOrElseThrow, augmentationOrElseThrow, augmentations
Methods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.ObjectHeader
getIgnore, getProcessingRule, requireIgnore, requireProcessingRule
-
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:
implementedInterface
in interfaceorg.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>
- Specified by:
implementedInterface
in 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
- ifobj
isnull
-
bindingEquals
Default implementation ofObject.equals(java.lang.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
- ifthisObj
isnull
-
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:
String
value of data modeled by this interface.- Throws:
NullPointerException
- ifobj
isnull
-
getTlvs
Tlvs getTlvs()Return tlvs, ornull
if it is not present.- Returns:
Tlvs
tlvs, ornull
if it is not present.
-
nonnullTlvs
@NonNull Tlvs nonnullTlvs()Return tlvs, or an empty instance if it is not present.- Returns:
Tlvs
tlvs, or an empty instance if it is not present.
-
getPlspId
PlspId getPlspId()Return plspId, ornull
if it is not present.- Returns:
PlspId
plspId, ornull
if it is not present.
-
requirePlspId
Return plspId, guaranteed to be non-null.- Returns:
PlspId
plspId, guaranteed to be non-null.- Throws:
NoSuchElementException
- if plspId is not present
-
getDelegate
Boolean getDelegate()Return delegate, ornull
if it is not present.- Returns:
Boolean
delegate, ornull
if it is not present.
-
requireDelegate
Return delegate, guaranteed to be non-null.- Returns:
Boolean
delegate, guaranteed to be non-null.- Throws:
NoSuchElementException
- if delegate is not present
-
getSync
Boolean getSync()Return sync, ornull
if it is not present.- Returns:
Boolean
sync, ornull
if it is not present.
-
requireSync
Return sync, guaranteed to be non-null.- Returns:
Boolean
sync, guaranteed to be non-null.- Throws:
NoSuchElementException
- if sync is not present
-
getRemove
Boolean getRemove()Return remove, ornull
if it is not present.- Returns:
Boolean
remove, ornull
if it is not present.
-
requireRemove
Return remove, guaranteed to be non-null.- Returns:
Boolean
remove, guaranteed to be non-null.- Throws:
NoSuchElementException
- if remove is not present
-
getAdministrative
Boolean getAdministrative()Return administrative, ornull
if it is not present.- Returns:
Boolean
administrative, ornull
if it is not present.
-
requireAdministrative
Return administrative, guaranteed to be non-null.- Returns:
Boolean
administrative, guaranteed to be non-null.- Throws:
NoSuchElementException
- if administrative is not present
-
getOperational
OperationalStatus getOperational()Return operational, ornull
if it is not present.- Returns:
OperationalStatus
operational, ornull
if it is not present.
-
requireOperational
Return operational, guaranteed to be non-null.- Returns:
OperationalStatus
operational, guaranteed to be non-null.- Throws:
NoSuchElementException
- if operational is not present
-