org.onosproject.yang.runtime.impl.DataTreeNodeInfo Maven / Gradle / Ivy
/*
* Copyright 2017-present Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.onosproject.yang.runtime.impl;
import org.onosproject.yang.compiler.datamodel.YangAugment;
import org.onosproject.yang.model.DataNode;
import java.util.Iterator;
import java.util.Map;
/**
* Represents data tree info for all the nodes that are added to the
* data tree.Contains the information which can be attached and retrieved
* back from data tree while walking.
*/
class DataTreeNodeInfo {
/**
* Data node type info.
*/
private DataNode.Type type;
/**
* Object of the corresponding YANG construct. This object is bound to
* each and every data node. So, whenever walk of parent and sibling
* happens, object can be retrieved from its data node.
*/
private Object yangObject;
/**
* The list iterator since first content of the multi instance node is
* faced. With this iterator the node can be walked multiple times till
* it becomes empty.
*/
private Iterator