Interface Lsp
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.Augmentable<Lsp>
,org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.ChildOf<LspObject>
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
,Object
,ObjectHeader
@Generated("mdsal-binding-generator") public interface Lsp extends org.opendaylight.yangtools.yang.binding.ChildOf<LspObject>, org.opendaylight.yangtools.yang.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; } }
The schema path to identify an instance is odl-pcep-ietf-statefullsp-objectlspTo create instances of this class use
LspBuilder
.- See Also:
LspBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static 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.Boolean
getAdministrative()
Return administrative, ornull
if it is not present.Boolean
getDelegate()
Return delegate, ornull
if it is not present.OperationalStatus
getOperational()
Return operational, ornull
if it is not present.PlspId
getPlspId()
Return plspId, ornull
if it is not present.Boolean
getRemove()
Return remove, ornull
if it is not present.Boolean
getSync()
Return sync, ornull
if it is not present.Tlvs
getTlvs()
Return tlvs, ornull
if it is not present.default Class<Lsp>
implementedInterface()
default @NonNull Boolean
requireAdministrative()
Return administrative, guaranteed to be non-null.default @NonNull Boolean
requireDelegate()
Return delegate, guaranteed to be non-null.default @NonNull OperationalStatus
requireOperational()
Return operational, guaranteed to be non-null.default @NonNull PlspId
requirePlspId()
Return plspId, guaranteed to be non-null.default @NonNull Boolean
requireRemove()
Return remove, guaranteed to be non-null.default @NonNull Boolean
requireSync()
Return sync, guaranteed to be non-null.-
Methods inherited from interface org.opendaylight.yangtools.yang.binding.Augmentable
augmentation, augmentations
-
Methods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.ObjectHeader
getIgnore, getProcessingRule, requireIgnore, requireProcessingRule
-
-
-
-
Method Detail
-
implementedInterface
default Class<Lsp> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
- Specified by:
implementedInterface
in interfaceObject
- Specified by:
implementedInterface
in interfaceObjectHeader
-
bindingHashCode
static int bindingHashCode(@NonNull Lsp 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
- ifobj
is null
-
bindingEquals
static boolean bindingEquals(@NonNull Lsp thisObj, Object obj)
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
is null
-
bindingToString
static String bindingToString(@NonNull Lsp 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:
String
value of data modeled by this interface.- Throws:
NullPointerException
- ifobj
is null
-
getTlvs
Tlvs getTlvs()
Return tlvs, ornull
if it is not present.- Returns:
Tlvs
tlvs, ornull
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
default @NonNull PlspId 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
default @NonNull Boolean 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
default @NonNull Boolean 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
default @NonNull Boolean 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
default @NonNull Boolean 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
default @NonNull OperationalStatus requireOperational()
Return operational, guaranteed to be non-null.- Returns:
OperationalStatus
operational, guaranteed to be non-null.- Throws:
NoSuchElementException
- if operational is not present
-
-