Vinod Kumar S | 212fcdd | 2016-02-05 16:15:09 +0530 | [diff] [blame] | 1 | /* |
Brian O'Connor | 0f7908b | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Laboratory |
Vinod Kumar S | 212fcdd | 2016-02-05 16:15:09 +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 | package org.onosproject.yangutils.datamodel; |
| 17 | |
| 18 | /** |
| 19 | * Node type in data model tree corresponding to YANG schema. |
| 20 | */ |
| 21 | public enum YangNodeType { |
| 22 | /** |
| 23 | * Node contains module information. |
| 24 | */ |
| 25 | MODULE_NODE, |
| 26 | |
| 27 | /** |
| 28 | * Node contains sub module information. |
| 29 | */ |
| 30 | SUB_MODULE_NODE, |
| 31 | |
| 32 | /** |
| 33 | * Node contains "YANG's typedef" information. |
| 34 | */ |
| 35 | TYPEDEF_NODE, |
| 36 | |
| 37 | /** |
| 38 | * Node contains "YANG's type" information. |
| 39 | */ |
| 40 | TYPE_NODE, |
| 41 | |
| 42 | /** |
| 43 | * Node contains "YANG's choice" information. |
| 44 | */ |
| 45 | CHOICE_NODE, |
| 46 | |
| 47 | /** |
| 48 | * Node contains "YANG's case" information. |
| 49 | */ |
| 50 | CASE_NODE, |
| 51 | |
| 52 | /** |
| 53 | * Node contains "YANG's enumeration" information. |
| 54 | */ |
| 55 | ENUMERATION_NODE, |
| 56 | |
| 57 | /** |
| 58 | * Node contains grouping information. |
| 59 | */ |
| 60 | GROUPING_NODE, |
| 61 | |
| 62 | /** |
| 63 | * Node contains "YANG's uses" information. |
| 64 | */ |
| 65 | USES_NODE, |
| 66 | |
| 67 | /** |
| 68 | * Node contains augmentation information. |
| 69 | */ |
| 70 | AUGMENT_NODE, |
| 71 | |
| 72 | /** |
| 73 | * Node contains "YANG's container" information. |
| 74 | */ |
| 75 | CONTAINER_NODE, |
| 76 | |
| 77 | /** |
Gaurav Agrawal | f576642 | 2016-03-23 19:04:17 +0530 | [diff] [blame] | 78 | * Node contains "YANG's notification" information. |
| 79 | */ |
| 80 | NOTIFICATION_NODE, |
| 81 | |
| 82 | /** |
| 83 | * Node contains "YANG's input" information. |
| 84 | */ |
| 85 | INPUT_NODE, |
| 86 | |
| 87 | /** |
| 88 | * Node contains "YANG's output" information. |
| 89 | */ |
| 90 | OUTPUT_NODE, |
| 91 | |
| 92 | /** |
| 93 | * Node contains "YANG's rpc" information. |
| 94 | */ |
| 95 | RPC_NODE, |
| 96 | |
| 97 | /** |
Vinod Kumar S | 212fcdd | 2016-02-05 16:15:09 +0530 | [diff] [blame] | 98 | * Node contains "YANG's list" information. |
| 99 | */ |
| 100 | LIST_NODE |
| 101 | } |