Interface BindingInstanceIdentifierCodec
- All Superinterfaces:
Immutable
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull YangInstanceIdentifier
fromBinding
(@NonNull BindingInstanceIdentifier bindingPath) Translates suppliedBindingInstanceIdentifier
into aYangInstanceIdentifier
.default @NonNull YangInstanceIdentifier
fromBinding
(@NonNull DataObjectIdentifier<?> bindingPath) Translates suppliedDataObjectIdentifier
into aYangInstanceIdentifier
.@NonNull YangInstanceIdentifier
fromBinding
(@NonNull DataObjectReference<?> bindingPath) Translates suppliedDataObjectReference
into aYangInstanceIdentifier
.@NonNull YangInstanceIdentifier
fromBinding
(@NonNull PropertyIdentifier<?, ?> bindingPath) Translates suppliedPropertyIdentifier
into aYangInstanceIdentifier
.<T extends DataObject>
@Nullable DataObjectReference<T> toBinding
(@NonNull YangInstanceIdentifier domPath) Translates suppliedYangInstanceIdentifier
into aDataObjectReference
, if possible.@Nullable BindingInstanceIdentifier
toBindingInstanceIdentifier
(@NonNull YangInstanceIdentifier domPath) Translates suppliedYangInstanceIdentifier
into aBindingInstanceIdentifier
, if possible.
-
Method Details
-
toBinding
<T extends DataObject> @Nullable DataObjectReference<T> toBinding(@NonNull YangInstanceIdentifier domPath) Translates suppliedYangInstanceIdentifier
into aDataObjectReference
, if possible.- Parameters:
domPath
- YANG Instance Identifier- Returns:
- a
DataObjectReference
, ornull
if the instance identifier is not representable. - Throws:
NullPointerException
- if domPath isnull
IllegalArgumentException
- if domPath is not valid.
-
toBindingInstanceIdentifier
@Nullable BindingInstanceIdentifier toBindingInstanceIdentifier(@NonNull YangInstanceIdentifier domPath) Translates suppliedYangInstanceIdentifier
into aBindingInstanceIdentifier
, if possible. Identifiers which refer toChoiceNode
,MapNode
,UnkeyedListNode
andLeafSetNode
are impossible to translate into aBindingInstanceIdentifier
because they are an addressing artifact ofNormalizedNode
representation.- Parameters:
domPath
- YANG Instance Identifier- Returns:
- BindingInstanceIdentifier, or
null
if theYangInstanceIdentifier
is not representable. - Throws:
NullPointerException
- if domPath isnull
IllegalArgumentException
- if domPath is not valid.
-
fromBinding
Translates suppliedDataObjectReference
into aYangInstanceIdentifier
.- Parameters:
bindingPath
- a data object reference- Returns:
- DOM Instance Identifier
- Throws:
NullPointerException
- if bindingPath is nullIllegalArgumentException
- if bindingPath is not valid.
-
fromBinding
Translates suppliedDataObjectIdentifier
into aYangInstanceIdentifier
.- Parameters:
bindingPath
- a data object reference- Returns:
- DOM Instance Identifier
- Throws:
NullPointerException
- if bindingPath is nullIllegalArgumentException
- if bindingPath is not valid.
-
fromBinding
Translates suppliedPropertyIdentifier
into aYangInstanceIdentifier
.- Parameters:
bindingPath
- a property identifier- Returns:
- DOM Instance Identifier
- Throws:
NullPointerException
- if bindingPath is nullIllegalArgumentException
- if bindingPath is not valid.
-
fromBinding
Translates suppliedBindingInstanceIdentifier
into aYangInstanceIdentifier
.- Parameters:
bindingPath
- Binding Instance Identifier- Returns:
- DOM Instance Identifier
- Throws:
NullPointerException
- if bindingPath is nullIllegalArgumentException
- if bindingPath is not valid.
-