import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-
+import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
/**
* A recursion level of {@link JSONNormalizedNodeStreamWriter}, which represents
* container.
*/
final class JSONStreamWriterNamedObjectContext extends JSONStreamWriterObjectContext {
- protected JSONStreamWriterNamedObjectContext(final JSONStreamWriterContext parent, final PathArgument arg, final boolean mandatory) {
+ protected JSONStreamWriterNamedObjectContext(final JSONStreamWriterContext parent, final PathArgument arg,
+ final boolean mandatory) {
super(parent, arg, mandatory);
}
@Override
- protected void emitStart(final SchemaContext schema, final JsonWriter writer) throws IOException {
+ protected void emitStart(final EffectiveModelContext schema, final JsonWriter writer) throws IOException {
writeMyJsonIdentifier(schema, writer, getQName());
super.emitStart(schema, writer);
}