public interface BindingNormalizedNodeWriterFactory
BindingStreamEventWriter
, which provides stream writers which translates data and delegates
calls to NormalizedNodeStreamWriter
.Modifier and Type | Method and Description |
---|---|
@NonNull BindingStreamEventWriter |
newActionInputWriter(@NonNull Class<? extends Action<?,?,?>> action,
@NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter domWriter)
Creates a
BindingStreamEventWriter for action input which will translate to NormalizedNode model
and invoke proper events on supplied NormalizedNodeStreamWriter . |
@NonNull BindingStreamEventWriter |
newActionOutputWriter(@NonNull Class<? extends Action<?,?,?>> action,
@NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter domWriter)
Creates a
BindingStreamEventWriter for action output which will translate to NormalizedNode model
and invoke proper events on supplied NormalizedNodeStreamWriter . |
@NonNull BindingStreamEventWriter |
newNotificationWriter(@NonNull Class<? extends Notification> notification,
@NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter domWriter)
Creates a
BindingStreamEventWriter for notification which will translate to NormalizedNode model
and invoke proper events on supplied NormalizedNodeStreamWriter . |
@NonNull BindingStreamEventWriter |
newRpcWriter(@NonNull Class<? extends DataContainer> rpcInputOrOutput,
@NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter domWriter)
Creates a
BindingStreamEventWriter for RPC data which will translate to NormalizedNode model and invoke
proper events on supplied NormalizedNodeStreamWriter . |
@NonNull BindingStreamEventWriter |
newWriter(@NonNull InstanceIdentifier<?> path,
@NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter domWriter)
Creates a
BindingStreamEventWriter for data tree path which will translate to NormalizedNode model
and invoke proper events on supplied NormalizedNodeStreamWriter . |
@NonNull Map.Entry<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,BindingStreamEventWriter> |
newWriterAndIdentifier(@NonNull InstanceIdentifier<?> path,
@NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter domWriter)
Creates a
BindingStreamEventWriter for data tree path which will translate to NormalizedNode model
and invoke proper events on supplied NormalizedNodeStreamWriter . |
@NonNull Map.Entry<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,BindingStreamEventWriter> newWriterAndIdentifier(@NonNull InstanceIdentifier<?> path, @NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter domWriter)
BindingStreamEventWriter
for data tree path which will translate to NormalizedNode model
and invoke proper events on supplied NormalizedNodeStreamWriter
.
Also provides translation of supplied Instance Identifier to YangInstanceIdentifier
so client code, does
not need to translate that separately.
If YangInstanceIdentifier
is not needed, please use
newWriter(InstanceIdentifier, NormalizedNodeStreamWriter)
method to conserve resources.
path
- Binding Path in conceptual data tree, for which writer should
be instantiateddomWriter
- Stream writer on which events will be invoked.BindingStreamEventWriter
which will write to supplied NormalizedNodeStreamWriter
.IllegalArgumentException
- If supplied Instance Identifier is not valid.@NonNull BindingStreamEventWriter newWriter(@NonNull InstanceIdentifier<?> path, @NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter domWriter)
BindingStreamEventWriter
for data tree path which will translate to NormalizedNode model
and invoke proper events on supplied NormalizedNodeStreamWriter
.
This variant does not provide YANG instance identifier and is useful for use-cases, where
InstanceIdentifier
translation is done in other way, or YANG instance identifier is unnecessary
(e.g. notifications, RPCs).
path
- Binding Path in conceptual data tree, for which writer should
be instantiateddomWriter
- Stream writer on which events will be invoked.BindingStreamEventWriter
which will write to supplied NormalizedNodeStreamWriter
.IllegalArgumentException
- If supplied Instance Identifier is not valid.@NonNull BindingStreamEventWriter newRpcWriter(@NonNull Class<? extends DataContainer> rpcInputOrOutput, @NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter domWriter)
BindingStreamEventWriter
for RPC data which will translate to NormalizedNode model and invoke
proper events on supplied NormalizedNodeStreamWriter
.rpcInputOrOutput
- Binding class representing RPC input or output,
for which writer should be instantiateddomWriter
- Stream writer on which events will be invoked.BindingStreamEventWriter
which will write to supplied
NormalizedNodeStreamWriter
.@NonNull BindingStreamEventWriter newNotificationWriter(@NonNull Class<? extends Notification> notification, @NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter domWriter)
BindingStreamEventWriter
for notification which will translate to NormalizedNode model
and invoke proper events on supplied NormalizedNodeStreamWriter
.notification
- Binding class representing notification,
for which writer should be instantiateddomWriter
- Stream writer on which events will be invoked.BindingStreamEventWriter
which will write to supplied
NormalizedNodeStreamWriter
.@NonNull BindingStreamEventWriter newActionInputWriter(@NonNull Class<? extends Action<?,?,?>> action, @NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter domWriter)
BindingStreamEventWriter
for action input which will translate to NormalizedNode model
and invoke proper events on supplied NormalizedNodeStreamWriter
.action
- Binding class representing action for which writer should be instantiateddomWriter
- Stream writer on which events will be invoked.BindingStreamEventWriter
which will write to supplied NormalizedNodeStreamWriter
.@NonNull BindingStreamEventWriter newActionOutputWriter(@NonNull Class<? extends Action<?,?,?>> action, @NonNull org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter domWriter)
BindingStreamEventWriter
for action output which will translate to NormalizedNode model
and invoke proper events on supplied NormalizedNodeStreamWriter
.action
- Binding class representing action for which writer should be instantiateddomWriter
- Stream writer on which events will be invoked.BindingStreamEventWriter
which will write to supplied NormalizedNodeStreamWriter
.Copyright © 2019 OpenDaylight. All rights reserved.