Gaurav Agrawal | b102b01 | 2016-08-02 12:52:48 +0530 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Foundation |
Gaurav Agrawal | b102b01 | 2016-08-02 12:52:48 +0530 | [diff] [blame] | 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 | |
| 17 | package 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 | */ |
| 30 | public 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 gupta | eff184b | 2016-11-24 12:43:49 +0530 | [diff] [blame] | 50 | MULTI_INSTANCE_LEAF_VALUE_NODE, |
| 51 | |
| 52 | /** |
| 53 | * Logical root node. |
| 54 | */ |
| 55 | LOGICAL_ROOT_NODE |
Gaurav Agrawal | b102b01 | 2016-08-02 12:52:48 +0530 | [diff] [blame] | 56 | } |