blob: 5efd67f8e08317dd6354adcb3e0490db3a214c48 [file] [log] [blame]
Gaurav Agrawalb102b012016-08-02 12:52:48 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Gaurav Agrawalb102b012016-08-02 12:52:48 +05303 *
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
19/**
20 * Represents type of node in YANG data tree. Protocols based on input data
21 * format provide this information to YMS during YDT building. YMS use this
22 * information to carry out the validation against the schema information
23 * obtained as a part of application registration. Also as a part of response
24 * YMS encode this information in YDT node, protocol may use this information
25 * while construction the data format string.
26 *
27 * Protocols unaware of node type like NETCONF, may opt not to provide this
28 * information.
29 */
30public enum YdtType {
31
32 /**
33 * Single instance node.
34 */
35 SINGLE_INSTANCE_NODE,
36
37 /**
38 * Multi instance node.
39 */
40 MULTI_INSTANCE_NODE,
41
42 /**
43 * Single instance leaf node.
44 */
45 SINGLE_INSTANCE_LEAF_VALUE_NODE,
46
47 /**
48 * Multi instance leaf node.
49 */
sonu guptaeff184b2016-11-24 12:43:49 +053050 MULTI_INSTANCE_LEAF_VALUE_NODE,
51
52 /**
53 * Logical root node.
54 */
55 LOGICAL_ROOT_NODE
Gaurav Agrawalb102b012016-08-02 12:52:48 +053056}