ec130673120c0babb39bc499a05d51781a0fc64b
[ccsdk/sli/plugins.git] / restconf-client / provider / src / main / java / org / onap / ccsdk / sli / plugins / yangserializers / dfserializer / PropertiesNodeJsonListener.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - CCSDK
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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=========================================================
19  */
20
21 package org.onap.ccsdk.sli.plugins.yangserializers.dfserializer;
22
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;
26
27 import java.io.Writer;
28
29 /**
30  * Representation of JSON implementation of properties node listener.
31  */
32 public class PropertiesNodeJsonListener implements PropertiesNodeListener{
33
34     /**
35      * JSON writer to write the JSON data format.
36      */
37     private JsonWriter jsonWriter;
38
39     /**
40      * Writer to write the JSON.
41      */
42     private Writer writer;
43
44     /**
45      * Creates the properties node JSON listener by instantiating and
46      * indenting the writer.
47      */
48     public PropertiesNodeJsonListener() {
49     }
50
51     @Override
52     public void start(PropertiesNode node) {
53         //TODO: Implementation code.
54     }
55
56     @Override
57     public void end(PropertiesNode node) {
58         //TODO: Implementation code.
59     }
60
61     @Override
62     public void enterPropertiesNode(PropertiesNode node) {
63         //TODO: Implementation code.
64     }
65
66     @Override
67     public void exitPropertiesNode(PropertiesNode node) {
68         //TODO: Implementation code.
69     }
70 }