blob: daa5ce3a79c926be0c6b3b9f3b1f3b6c10695f45 [file] [log] [blame]
sonu gupta1bb37b82016-11-11 16:51:18 +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.yms.app.ydt;
18
19/**
20 * Represents common constant utility for YANG data tree UT framework.
21 */
22final class YdtTestConstants {
23
24 // No instantiation.
25 private YdtTestConstants() {
26 }
27
28 public static final String BACKSLASH = "\"";
29 public static final String PERIOD = ".";
30 public static final String A = "92233720368547758.07";
31 public static final String B = "92233720368547757";
32 public static final String C = "-92233720368547758.08";
33 public static final String D = "92233720368547757";
34 public static final String E = "9.223372036854775807";
35 public static final String F = "-922337203685477580.8";
36 public static final String G = "922337203685477580.7";
37 public static final String H = "-9.223372036854775808";
38 public static final String I = "9223372036854775808";
39 public static final String J = "9223372036854775807";
40 public static final String K = "-9223372036854775808";
41 public static final String L = "-9223372036854775809";
42 public static final String M = "18446744073709551616";
43 public static final String NWF = "negIntWithMaxFraction";
44 public static final String PWF = "posIntWithMaxFraction";
45 public static final String NIWMF = "negIntWithMinFraction";
46 public static final String PIWMF = "posIntWithMinFraction";
47 public static final String CAPSUINT8 = "UINT8";
48 public static final String CAPSINT8 = "INT8";
49 public static final String SMALLUINT8 = "uint8.";
50 public static final String SMALLINT8 = "int8.";
51 public static final String MAXUINT8 = "255";
52 public static final String CAPSUINT16 = "UINT16";
53 public static final String CAPSINT16 = "INT16";
54 public static final String SUINT16 = "uint16.";
55 public static final String SINT16 = "int16.";
56 public static final String MAXUINT16 = "65535";
57 public static final String CAPSUINT32 = "UINT32";
58 public static final String CAPSINT32 = "INT32";
59 public static final String SUINT32 = "uint32.";
60 public static final String SINT32 = "int32.";
61 public static final String MAXUINT32 = "4294967295";
62 public static final String CAPSUINT64 = "UINT64";
63 public static final String CAPSINT64 = "INT64";
64 public static final String SMALLUINT64 = "uint64.";
65 public static final String SMALLINT64 = "int64.";
66 public static final String MAXUINT64 = "18446744073709551615";
67 public static final String MINVALUE = "0";
68 public static final String MINIWR = "minIntWithRange";
69 public static final String MIDIWR = "midIntWithRange";
70 public static final String MAXIWR = "maxIntWithRange";
71 public static final String MINUIWR = "minUIntWithRange";
72 public static final String MIDUIWR = "midUIntWithRange";
73 public static final String MAXUIWR = "maxUIntWithRange";
74 public static final String MRV = "multiRangeValidation";
75 public static final String RUI = "revUnInteger";
76 public static final String TYPE = "builtInType";
77 public static final String INT8NS = "ydt.integer8";
78 public static final String BIT = "BITS";
79 public static final String BOOL = "BOOLEAN";
80 public static final String EMPTY = "";
81 public static final String ENUM = "ENUMERATION";
82 public static final String LIST = "List";
83 public static final String LWC = "listwithcontainer";
84 public static final String INV = "invalidinterval";
85 public static final String INT16NS = "ydt.integer16";
86 public static final String INT32NS = "ydt.integer32";
87 public static final String INT64NS = "ydt.integer64";
88 public static final String BITNS = "ydt.bit";
89 public static final String BOOLNS = "ydt.boolean";
90 public static final String EMPTYNS = "ydt.emptydata";
91 public static final String ENUMNS = "ydt.enumtest";
92 public static final String LISTNS = "ydt.rootlist";
93 public static final String A1 = "ydt.augment-topology1";
94 public static final String A2 = "ydt.augment-topology2";
95 public static final String A3 = "ydt.augment-topology3";
96 public static final String A4 = "ydt.augment-topology4";
97 public static final String A5 = "ydt.augment-topology5";
98 public static final String A6 = "ydt.augment-topology6";
99 public static final String A2L = "augment2leafList";
100 public static final String A5L = "augment5leafList";
101 public static final String A6L = "augment6leafList";
102 public static final String MATERIALNS = "ydt.material-supervisor";
103 public static final String PURCHASNS = "ydt.purchasing-supervisor";
104 public static final String WAREHNS = "ydt.warehouse-supervisor";
105 public static final String TRADNS = "ydt.trading-supervisor";
106 public static final String EMPNS = "ydt.employee-id";
107 public static final String COUSTOMNS = "ydt.customs-supervisor";
108 public static final String MERCHNS = "ydt.Merchandiser-supervisor";
109 public static final String STP = "supporting-termination-point";
110 public static final String SLINK = "supporting-link";
111 public static final String AUG1 = "/nd:networks/nd:network";
112 public static final String AUG2 = "/nd:networks/nd:network/nd:node";
113 public static final String AUG3 = "/nd:networks/nd:network/topo:link";
114 public static final String AUG4 = "/nd:networks/nd:network/nd:node/" +
115 "topo:t-point/supporting-termination-point";
116 public static final String AUG5 = "/nd:networks/nd:network/topo:link/" +
117 "aug2:augment2";
118 public static final String AUG6 = "/nd:networks/nd:network/nd:node/" +
119 "topo:t-point/supporting-termination-point/aug2:augment2";
120 public static final String AUG7 = "/nd:networks/nd:network/topo:link/" +
121 "aug2:augment2/aug3:augment3";
122 public static final String AUG8 = "/nd:networks/nd:network/topo:link/" +
123 "aug2:augment2/aug3:augment3/aug5:augment5";
124 public static final String AUG9 = "/nd:networks/nd:network/topo:link/" +
125 "aug2:augment2/aug5:augment5";
126 public static final String NETNS = "ydt.augmentNetwork";
127 public static final String IETFNS =
128 "urn:ietf:params:xml:ns:yang:ietf-network";
129 public static final String IETF = "yms-ietf-network";
130 public static final String TOPONS =
131 "urn:ietf:params:xml:ns:yang:ietf-network-topology";
132 public static final String E_LEAF = "Exception has not occurred for " +
133 "invalid leaf value with name ";
134 public static final String E_LIST = "Exception has not occurred for " +
135 "invalid node addition with the name ";
136 public static final String E_TOPARENT = "Exception has not occurred " +
137 "in traverse back to parent for multi instance node.";
138}