final class BindingToNormalizedStreamWriter implements AnydataBindingStreamWriter,
Delegator<NormalizedNodeStreamWriter> {
- private final Deque<NodeCodecContext> schema = new ArrayDeque<>();
+ private final Deque<CodecContext> schema = new ArrayDeque<>();
private final @NonNull NormalizedNodeStreamWriter delegate;
- private final NodeCodecContext rootContext;
+ private final CodecContext rootContext;
BindingToNormalizedStreamWriter(final DataContainerCodecContext<?, ?> rootContext,
final NormalizedNodeStreamWriter delegate) {
delegate.nextDataSchemaNode((DataSchemaNode) schemaNode);
}
- NodeCodecContext current() {
+ CodecContext current() {
return schema.peek();
}
private NodeIdentifier duplicateSchemaEnter() {
final var current = current();
- final NodeCodecContext next;
+ final CodecContext next;
if (current == null) {
// Entry of first node
next = rootContext;
@SuppressWarnings({"unchecked", "rawtypes"})
private <T extends YangInstanceIdentifier.PathArgument> T enter(final Class<?> name, final Class<T> identifier) {
final var current = current();
- final NodeCodecContext next;
+ final CodecContext next;
if (current == null) {
// Entry of first node
next = rootContext;
@Override
public void endNode() throws IOException {
- NodeCodecContext left = schema.pop();
+ CodecContext left = schema.pop();
// Due to writer does not start a new node on startCase() and on startAugmentationNode()
// node ending should not be triggered when associated endNode() is invoked.
if (!(left instanceof CaseNodeCodecContext) && !(left instanceof AugmentationNodeContext)) {