blob: bdd2804bb173ad6ba0ffbf1414d2d08b28e90fcf [file] [log] [blame]
Gaurav Agrawalc4105fe2017-01-20 17:12:28 +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.yang.model;
18
19/**
sonugupta-huaweiaa6791e2017-02-09 12:38:43 +053020 * Represents mapping of java data types with corresponding yang leaf's data
21 * type.
Gaurav Agrawalc4105fe2017-01-20 17:12:28 +053022 */
23public enum LeafType {
24
25 /**
sonugupta-huaweiaa6791e2017-02-09 12:38:43 +053026 * Represents INT8.
Gaurav Agrawalc4105fe2017-01-20 17:12:28 +053027 */
28 BYTE,
29
30 /**
sonugupta-huaweiaa6791e2017-02-09 12:38:43 +053031 * Represents INT16, UINT8.
32 */
33 SHORT,
34
35 /**
36 * Represents UINT16, INT32.
37 */
38 INT,
39
40 /**
41 * Represents UINT32, INT64.
42 */
43 LONG,
44
45 /**
46 * Represents BOOLEAN, EMPTY.
47 */
48 BOOLEAN,
49
50 /**
51 * Represents BITS, IDENTITYREF, ENUMERATION, STRING.
Gaurav Agrawalc4105fe2017-01-20 17:12:28 +053052 */
53 STRING,
54
55 /**
sonugupta-huaweiaa6791e2017-02-09 12:38:43 +053056 * Represents UINT64.
Gaurav Agrawalc4105fe2017-01-20 17:12:28 +053057 */
58 BIG_INTEGER,
59
60 /**
sonugupta-huaweiaa6791e2017-02-09 12:38:43 +053061 * Represents BASE64.
Gaurav Agrawalc4105fe2017-01-20 17:12:28 +053062 */
sonugupta-huaweiaa6791e2017-02-09 12:38:43 +053063 BYTE_ARRAY,
Gaurav Agrawalc4105fe2017-01-20 17:12:28 +053064
65 /**
sonugupta-huaweiaa6791e2017-02-09 12:38:43 +053066 * Represents DECIMAL64.
Gaurav Agrawalc4105fe2017-01-20 17:12:28 +053067 * The decimal64 type represents a subset of the real numbers, which can
68 * be represented by decimal numerals. The value space of decimal64 is
69 * the set of numbers that can be obtained by multiplying a 64-bit
70 * signed integer by a negative power of ten, i.e., expressible as
71 * "i x 10^-n" where i is an integer64 and n is an integer between 1 and
72 * 18, inclusively.
73 */
74 BIG_DECIMAL,
75
76 /**
sonugupta-huaweiaa6791e2017-02-09 12:38:43 +053077 * Represents union.
Gaurav Agrawalc4105fe2017-01-20 17:12:28 +053078 */
sonugupta-huaweiaa6791e2017-02-09 12:38:43 +053079 UNION
Gaurav Agrawalc4105fe2017-01-20 17:12:28 +053080}