2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2018 Huawei Technologies Co., Ltd. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.ccsdk.sli.plugins.yangserializers.dfserializer;
23 import com.google.gson.stream.JsonWriter;
24 import org.onap.ccsdk.sli.plugins.yangserializers.pnserializer.PropertiesNode;
25 import org.onap.ccsdk.sli.plugins.yangserializers.pnserializer.PropertiesNodeListener;
27 import java.io.Writer;
30 * Representation of JSON implementation of properties node listener.
32 public class PropertiesNodeJsonListener implements PropertiesNodeListener{
35 * JSON writer to write the JSON data format.
37 private JsonWriter jsonWriter;
40 * Writer to write the JSON.
42 private Writer writer;
45 * Creates the properties node JSON listener by instantiating and
46 * indenting the writer.
48 public PropertiesNodeJsonListener() {
52 public void start(PropertiesNode node) {
53 //TODO: Implementation code.
57 public void end(PropertiesNode node) {
58 //TODO: Implementation code.
62 public void enterPropertiesNode(PropertiesNode node) {
63 //TODO: Implementation code.
67 public void exitPropertiesNode(PropertiesNode node) {
68 //TODO: Implementation code.