2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.yang.data.codec.gson;
10 import java.io.IOException;
11 import org.opendaylight.yangtools.yang.common.Empty;
13 final class EmptyJSONCodec implements JSONCodec<Empty> {
14 static final EmptyJSONCodec INSTANCE = new EmptyJSONCodec();
16 private EmptyJSONCodec() {
21 public Class<Empty> getDataType() {
26 public Empty parseValue(final String input) {
31 public JSONValue unparseValue(final Empty value) {
32 return JSONValue.EMPTY;
36 public void writeValue(final JSONValueWriter ctx, final Empty value) throws IOException {