Vinod Kumar S | cd48133 | 2016-02-09 19:53:45 +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 | cd48133 | 2016-02-09 19:53:45 +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 | * Reference:RFC 6020. |
| 20 | * The "status" statement takes as an argument one of the strings |
| 21 | * "current", "deprecated", or "obsolete". If no status is specified, |
| 22 | * the default is "current". |
| 23 | */ |
| 24 | |
| 25 | /** |
Vinod Kumar S | 6a6ce4c | 2016-02-11 20:13:28 +0530 | [diff] [blame] | 26 | * Represents the status of YANG entities. |
Vinod Kumar S | cd48133 | 2016-02-09 19:53:45 +0530 | [diff] [blame] | 27 | */ |
| 28 | public enum YangStatusType { |
| 29 | /** |
| 30 | * Reference:RFC 6020. |
Vinod Kumar S | 6a6ce4c | 2016-02-11 20:13:28 +0530 | [diff] [blame] | 31 | * |
Vinod Kumar S | cd48133 | 2016-02-09 19:53:45 +0530 | [diff] [blame] | 32 | * "current" means that the definition is current and valid. |
| 33 | */ |
| 34 | CURRENT, |
| 35 | |
| 36 | /** |
| 37 | * Reference:RFC 6020. |
Vinod Kumar S | 6a6ce4c | 2016-02-11 20:13:28 +0530 | [diff] [blame] | 38 | * |
| 39 | * "deprecated" indicates an obsolete definition, but it |
| 40 | * permits new/ continued implementation in order to foster interoperability |
| 41 | * with older/existing implementations. |
Vinod Kumar S | cd48133 | 2016-02-09 19:53:45 +0530 | [diff] [blame] | 42 | */ |
| 43 | DEPRECATED, |
| 44 | |
| 45 | /** |
| 46 | * Reference:RFC 6020. |
Vinod Kumar S | 6a6ce4c | 2016-02-11 20:13:28 +0530 | [diff] [blame] | 47 | * |
| 48 | * "obsolete" means the definition is obsolete and |
| 49 | * SHOULD NOT be implemented and/or can be removed from implementations. |
Vinod Kumar S | cd48133 | 2016-02-09 19:53:45 +0530 | [diff] [blame] | 50 | */ |
| 51 | OBSOLETE |
| 52 | } |