cfc59ca109be898ae776762ee7eb85778242a816
[ccsdk/sli/plugins.git] / restconf-client / provider / src / main / java / org / onap / ccsdk / sli / plugins / yangserializers / dfserializer / PropertiesNodeXmlListener.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 org.dom4j.Element;
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 import java.util.Stack;
29
30 /**
31  * Representation of XML implementation of properties node listener.
32  */
33 public class PropertiesNodeXmlListener implements PropertiesNodeListener {
34
35     /**
36      * XML data from the element.
37      */
38     private String xmlData;
39
40     /**
41      * Root element of the XML document.
42      */
43     private Element rootElement;
44
45     /**
46      * Writer to write the XML.
47      */
48     private Writer writer;
49
50     /**
51      * XML element stack to store the elements.
52      */
53     private final Stack<Element> elementStack = new Stack<>();
54
55     /**
56      * Creates the properties node XML listener.
57      */
58     public PropertiesNodeXmlListener() {
59     }
60
61     @Override
62     public void start(PropertiesNode node) {
63         //TODO: Implementation code.
64     }
65
66     @Override
67     public void end(PropertiesNode node) {
68         //TODO: Implementation code.
69     }
70
71     @Override
72     public void enterPropertiesNode(PropertiesNode node) {
73         //TODO: Implementation code.
74     }
75
76     @Override
77     public void exitPropertiesNode(PropertiesNode node) {
78         //TODO: Implementation code.
79     }
80 }