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 org.dom4j.Element;
 
  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;
 
  28 import java.util.Stack;
 
  31  * Representation of XML implementation of properties node listener.
 
  33 public class PropertiesNodeXmlListener implements PropertiesNodeListener {
 
  36      * XML data from the element.
 
  38     private String xmlData;
 
  41      * Root element of the XML document.
 
  43     private Element rootElement;
 
  46      * Writer to write the XML.
 
  48     private Writer writer;
 
  51      * XML element stack to store the elements.
 
  53     private final Stack<Element> elementStack = new Stack<>();
 
  56      * Creates the properties node XML listener.
 
  58     public PropertiesNodeXmlListener() {
 
  62     public void start(PropertiesNode node) {
 
  63         //TODO: Implementation code.
 
  67     public void end(PropertiesNode node) {
 
  68         //TODO: Implementation code.
 
  72     public void enterPropertiesNode(PropertiesNode node) {
 
  73         //TODO: Implementation code.
 
  77     public void exitPropertiesNode(PropertiesNode node) {
 
  78         //TODO: Implementation code.