package org.opendaylight.yangtools.yang.data.codec.gson;
import java.io.IOException;
-
-import org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter;
+import org.opendaylight.yangtools.yang.data.api.schema.stream.SchemaAwareNormalizedNodeStreamWriter;
import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
class LeafListEntryNodeDataWithSchema extends SimpleNodeDataWithSchema {
}
@Override
- public void write(final NormalizedNodeStreamWriter writer) throws IOException {
- writer.leafSetEntryNode(getValue());
+ public void write(final SchemaAwareNormalizedNodeStreamWriter writer) throws IOException {
+ writer.nextDataSchemaNode(getSchema());
+ writer.leafSetEntryNode(getSchema().getQName(), getValue());
}
}