blob: 72790e27043599f8666bdd5bcd36749232918be8 [file] [log] [blame]
Gaurav Agrawalb102b012016-08-02 12:52:48 +05301/*
2 * Copyright 2016-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.yms.ydt;
18
19import org.onosproject.yms.ymsm.YmsOperationType;
20
21/**
22 * Abstraction of an entity which represent YANG data tree. This is used
23 * for exchanging information between YANG management system and NBI protocol.
24 */
25public interface Ydt {
26
27 /**
28 * Returns the root context information available in YDT node. This root
29 * node is a logical container of a protocol which holds the complete data
30 * tree. After building YANG data tree, root node can be obtained from this.
31 *
32 * @return root YDT context which is logical container of a protocol which
33 * is holder of the complete tree
34 */
35 YdtContext getRootNode();
36
37 /**
38 * Returns YANG management system operation type. It represents type of
39 * root level operation for the request. This is used by protocols to
40 * specify the root level operation associated with the request.
41 *
42 * @return YANG management system operation type
43 */
44 YmsOperationType getYmsOperationType();
45}