Committed by
Gerrit Code Review
[ONOS-4350] Inter Jar dependency implementation and code restructuring.
Change-Id: Iacac75e4187aed93ce1754c170a9c19707e5b8c3
Showing
990 changed files
with
636 additions
and
209 deletions
utils/yangutils/datamodel/pom.xml
0 → 100644
1 | +<!-- | ||
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 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
17 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
18 | + <modelVersion>4.0.0</modelVersion> | ||
19 | + | ||
20 | + <parent> | ||
21 | + <groupId>org.onosproject</groupId> | ||
22 | + <artifactId>onos-yangutils</artifactId> | ||
23 | + <version>1.7.0-SNAPSHOT</version> | ||
24 | + <relativePath>../pom.xml</relativePath> | ||
25 | + </parent> | ||
26 | + | ||
27 | + <artifactId>yangutils-datamodel</artifactId> | ||
28 | + <version>1.7.0-SNAPSHOT</version> | ||
29 | + <name>onos-yang-utils-datamodel</name> | ||
30 | + <packaging>jar</packaging> | ||
31 | + | ||
32 | + <properties> | ||
33 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
34 | + </properties> | ||
35 | +</project> |
... | @@ -17,7 +17,7 @@ | ... | @@ -17,7 +17,7 @@ |
17 | package org.onosproject.yangutils.datamodel; | 17 | package org.onosproject.yangutils.datamodel; |
18 | 18 | ||
19 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 19 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
20 | -import org.onosproject.yangutils.utils.YangConstructType; | 20 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
21 | 21 | ||
22 | /** | 22 | /** |
23 | * Abstraction of YANG collision function. Abstracted to unify the collision | 23 | * Abstraction of YANG collision function. Abstracted to unify the collision | ... | ... |
... | @@ -14,9 +14,10 @@ | ... | @@ -14,9 +14,10 @@ |
14 | * limitations under the License. | 14 | * limitations under the License. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | -package org.onosproject.yangutils.linker; | 17 | +package org.onosproject.yangutils.datamodel; |
18 | 18 | ||
19 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 19 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
20 | +import org.onosproject.yangutils.datamodel.utils.ResolvableStatus; | ||
20 | 21 | ||
21 | /** | 22 | /** |
22 | * Abstraction of YANG resolvable information. Abstracted to obtain the | 23 | * Abstraction of YANG resolvable information. Abstracted to obtain the | ... | ... |
... | @@ -19,8 +19,8 @@ import java.util.LinkedList; | ... | @@ -19,8 +19,8 @@ import java.util.LinkedList; |
19 | import java.util.List; | 19 | import java.util.List; |
20 | 20 | ||
21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
22 | -import org.onosproject.yangutils.parser.Parsable; | 22 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
23 | -import org.onosproject.yangutils.utils.YangConstructType; | 23 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
24 | 24 | ||
25 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; | 25 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; |
26 | 26 | ||
... | @@ -83,6 +83,8 @@ public class YangAugment | ... | @@ -83,6 +83,8 @@ public class YangAugment |
83 | extends YangNode | 83 | extends YangNode |
84 | implements YangLeavesHolder, YangCommonInfo, Parsable, CollisionDetector { | 84 | implements YangLeavesHolder, YangCommonInfo, Parsable, CollisionDetector { |
85 | 85 | ||
86 | + private static final long serialVersionUID = 806201602L; | ||
87 | + | ||
86 | /** | 88 | /** |
87 | * Augment target node. | 89 | * Augment target node. |
88 | */ | 90 | */ |
... | @@ -140,7 +142,7 @@ public class YangAugment | ... | @@ -140,7 +142,7 @@ public class YangAugment |
140 | * @param nodeIdentifiers the augmented node | 142 | * @param nodeIdentifiers the augmented node |
141 | */ | 143 | */ |
142 | public void setTargetNode(List<YangNodeIdentifier> nodeIdentifiers) { | 144 | public void setTargetNode(List<YangNodeIdentifier> nodeIdentifiers) { |
143 | - this.targetNode = nodeIdentifiers; | 145 | + targetNode = nodeIdentifiers; |
144 | } | 146 | } |
145 | 147 | ||
146 | /** | 148 | /** |
... | @@ -173,9 +175,9 @@ public class YangAugment | ... | @@ -173,9 +175,9 @@ public class YangAugment |
173 | @Override | 175 | @Override |
174 | public void detectSelfCollision(String identifierName, YangConstructType dataType) | 176 | public void detectSelfCollision(String identifierName, YangConstructType dataType) |
175 | throws DataModelException { | 177 | throws DataModelException { |
176 | - if (this.getName().equals(identifierName)) { | 178 | + if (getName().equals(identifierName)) { |
177 | throw new DataModelException("YANG file error: Duplicate input identifier detected, same as input \"" | 179 | throw new DataModelException("YANG file error: Duplicate input identifier detected, same as input \"" |
178 | - + this.getName() + "\""); | 180 | + + getName() + "\""); |
179 | } | 181 | } |
180 | } | 182 | } |
181 | 183 | ... | ... |
... | @@ -15,10 +15,12 @@ | ... | @@ -15,10 +15,12 @@ |
15 | */ | 15 | */ |
16 | package org.onosproject.yangutils.datamodel; | 16 | package org.onosproject.yangutils.datamodel; |
17 | 17 | ||
18 | +import java.io.Serializable; | ||
18 | import java.util.Set; | 19 | import java.util.Set; |
20 | + | ||
19 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
20 | -import org.onosproject.yangutils.parser.Parsable; | 22 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
21 | -import org.onosproject.yangutils.utils.YangConstructType; | 23 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
22 | 24 | ||
23 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.findReferredNode; | 25 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.findReferredNode; |
24 | 26 | ||
... | @@ -49,7 +51,9 @@ import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.findRefer | ... | @@ -49,7 +51,9 @@ import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.findRefer |
49 | /** | 51 | /** |
50 | * Represents the belongs-to data type information. | 52 | * Represents the belongs-to data type information. |
51 | */ | 53 | */ |
52 | -public class YangBelongsTo implements Parsable, LocationInfo { | 54 | +public class YangBelongsTo implements Parsable, LocationInfo, Serializable { |
55 | + | ||
56 | + private static final long serialVersionUID = 806201639L; | ||
53 | 57 | ||
54 | /** | 58 | /** |
55 | * Reference RFC 6020. | 59 | * Reference RFC 6020. |
... | @@ -74,10 +78,10 @@ public class YangBelongsTo implements Parsable, LocationInfo { | ... | @@ -74,10 +78,10 @@ public class YangBelongsTo implements Parsable, LocationInfo { |
74 | private String prefix; | 78 | private String prefix; |
75 | 79 | ||
76 | // Error Line number. | 80 | // Error Line number. |
77 | - private int lineNumber; | 81 | + private transient int lineNumber; |
78 | 82 | ||
79 | // Error character position. | 83 | // Error character position. |
80 | - private int charPosition; | 84 | + private transient int charPosition; |
81 | 85 | ||
82 | /** | 86 | /** |
83 | * Create a belongs to object. | 87 | * Create a belongs to object. |
... | @@ -187,7 +191,7 @@ public class YangBelongsTo implements Parsable, LocationInfo { | ... | @@ -187,7 +191,7 @@ public class YangBelongsTo implements Parsable, LocationInfo { |
187 | 191 | ||
188 | @Override | 192 | @Override |
189 | public void setCharPosition(int charPositionInLine) { | 193 | public void setCharPosition(int charPositionInLine) { |
190 | - this.charPosition = charPositionInLine; | 194 | + charPosition = charPositionInLine; |
191 | } | 195 | } |
192 | 196 | ||
193 | /** | 197 | /** | ... | ... |
... | @@ -16,11 +16,12 @@ | ... | @@ -16,11 +16,12 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel; | 17 | package org.onosproject.yangutils.datamodel; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
19 | import java.util.Objects; | 20 | import java.util.Objects; |
20 | 21 | ||
21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 22 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
22 | -import org.onosproject.yangutils.parser.Parsable; | 23 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
23 | -import org.onosproject.yangutils.utils.YangConstructType; | 24 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
24 | 25 | ||
25 | /*- | 26 | /*- |
26 | * The "bit" statement, which is a sub-statement to the "type" statement, | 27 | * The "bit" statement, which is a sub-statement to the "type" statement, |
... | @@ -46,7 +47,9 @@ import org.onosproject.yangutils.utils.YangConstructType; | ... | @@ -46,7 +47,9 @@ import org.onosproject.yangutils.utils.YangConstructType; |
46 | /** | 47 | /** |
47 | * Represents the bit data type information. | 48 | * Represents the bit data type information. |
48 | */ | 49 | */ |
49 | -public class YangBit implements YangCommonInfo, Parsable { | 50 | +public class YangBit implements YangCommonInfo, Parsable, Serializable { |
51 | + | ||
52 | + private static final long serialVersionUID = 806201640L; | ||
50 | 53 | ||
51 | /** | 54 | /** |
52 | * Name of the bit. | 55 | * Name of the bit. |
... | @@ -194,14 +197,14 @@ public class YangBit implements YangCommonInfo, Parsable { | ... | @@ -194,14 +197,14 @@ public class YangBit implements YangCommonInfo, Parsable { |
194 | } | 197 | } |
195 | if (obj instanceof YangBit) { | 198 | if (obj instanceof YangBit) { |
196 | final YangBit other = (YangBit) obj; | 199 | final YangBit other = (YangBit) obj; |
197 | - return Objects.equals(this.bitName, other.bitName); | 200 | + return Objects.equals(bitName, other.bitName); |
198 | } | 201 | } |
199 | return false; | 202 | return false; |
200 | } | 203 | } |
201 | 204 | ||
202 | @Override | 205 | @Override |
203 | public int hashCode() { | 206 | public int hashCode() { |
204 | - return Objects.hashCode(this.bitName); | 207 | + return Objects.hashCode(bitName); |
205 | } | 208 | } |
206 | 209 | ||
207 | /** | 210 | /** | ... | ... |
... | @@ -16,12 +16,13 @@ | ... | @@ -16,12 +16,13 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel; | 17 | package org.onosproject.yangutils.datamodel; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
19 | import java.util.HashSet; | 20 | import java.util.HashSet; |
20 | import java.util.Set; | 21 | import java.util.Set; |
21 | 22 | ||
22 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 23 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
23 | -import org.onosproject.yangutils.parser.Parsable; | 24 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
24 | -import org.onosproject.yangutils.utils.YangConstructType; | 25 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
25 | 26 | ||
26 | /* | 27 | /* |
27 | * Reference RFC 6020. | 28 | * Reference RFC 6020. |
... | @@ -34,7 +35,9 @@ import org.onosproject.yangutils.utils.YangConstructType; | ... | @@ -34,7 +35,9 @@ import org.onosproject.yangutils.utils.YangConstructType; |
34 | /** | 35 | /** |
35 | * Represents the bits data type information. | 36 | * Represents the bits data type information. |
36 | */ | 37 | */ |
37 | -public class YangBits implements Parsable { | 38 | +public class YangBits implements Parsable, Serializable { |
39 | + | ||
40 | + private static final long serialVersionUID = 806201641L; | ||
38 | 41 | ||
39 | // Bits information set. | 42 | // Bits information set. |
40 | private Set<YangBit> bitSet; | 43 | private Set<YangBit> bitSet; | ... | ... |
... | @@ -19,11 +19,11 @@ import java.util.LinkedList; | ... | @@ -19,11 +19,11 @@ import java.util.LinkedList; |
19 | import java.util.List; | 19 | import java.util.List; |
20 | 20 | ||
21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
22 | -import org.onosproject.yangutils.parser.Parsable; | 22 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
23 | -import org.onosproject.yangutils.utils.YangConstructType; | 23 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
24 | 24 | ||
25 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; | 25 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; |
26 | -import static org.onosproject.yangutils.utils.YangConstructType.CASE_DATA; | 26 | +import static org.onosproject.yangutils.datamodel.utils.YangConstructType.CASE_DATA; |
27 | 27 | ||
28 | /*- | 28 | /*- |
29 | * Reference RFC 6020. | 29 | * Reference RFC 6020. |
... | @@ -96,6 +96,8 @@ public class YangCase | ... | @@ -96,6 +96,8 @@ public class YangCase |
96 | extends YangNode | 96 | extends YangNode |
97 | implements YangLeavesHolder, YangCommonInfo, Parsable, CollisionDetector, YangAugmentationHolder { | 97 | implements YangLeavesHolder, YangCommonInfo, Parsable, CollisionDetector, YangAugmentationHolder { |
98 | 98 | ||
99 | + private static final long serialVersionUID = 806201603L; | ||
100 | + | ||
99 | /** | 101 | /** |
100 | * Case name. | 102 | * Case name. |
101 | */ | 103 | */ | ... | ... |
... | @@ -16,10 +16,10 @@ | ... | @@ -16,10 +16,10 @@ |
16 | package org.onosproject.yangutils.datamodel; | 16 | package org.onosproject.yangutils.datamodel; |
17 | 17 | ||
18 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 18 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
19 | -import org.onosproject.yangutils.parser.Parsable; | 19 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
20 | -import org.onosproject.yangutils.utils.YangConstructType; | 20 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
21 | 21 | ||
22 | -import static org.onosproject.yangutils.utils.YangConstructType.CHOICE_DATA; | 22 | +import static org.onosproject.yangutils.datamodel.utils.YangConstructType.CHOICE_DATA; |
23 | 23 | ||
24 | /*- | 24 | /*- |
25 | * Reference RFC 6020. | 25 | * Reference RFC 6020. |
... | @@ -62,6 +62,8 @@ import static org.onosproject.yangutils.utils.YangConstructType.CHOICE_DATA; | ... | @@ -62,6 +62,8 @@ import static org.onosproject.yangutils.utils.YangConstructType.CHOICE_DATA; |
62 | public class YangChoice extends YangNode | 62 | public class YangChoice extends YangNode |
63 | implements YangCommonInfo, Parsable, CollisionDetector, YangAugmentationHolder { | 63 | implements YangCommonInfo, Parsable, CollisionDetector, YangAugmentationHolder { |
64 | 64 | ||
65 | + private static final long serialVersionUID = 806201604L; | ||
66 | + | ||
65 | /** | 67 | /** |
66 | * Name of choice. | 68 | * Name of choice. |
67 | */ | 69 | */ |
... | @@ -332,7 +334,7 @@ public class YangChoice extends YangNode | ... | @@ -332,7 +334,7 @@ public class YangChoice extends YangNode |
332 | @Override | 334 | @Override |
333 | public void detectCollidingChild(String identifierName, YangConstructType dataType) throws DataModelException { | 335 | public void detectCollidingChild(String identifierName, YangConstructType dataType) throws DataModelException { |
334 | 336 | ||
335 | - if (this.getParent() instanceof YangCase && dataType != YangConstructType.CASE_DATA) { | 337 | + if (getParent() instanceof YangCase && dataType != YangConstructType.CASE_DATA) { |
336 | ((CollisionDetector) getParent()).detectCollidingChild(identifierName, dataType); | 338 | ((CollisionDetector) getParent()).detectCollidingChild(identifierName, dataType); |
337 | } | 339 | } |
338 | YangNode node = getChild(); | 340 | YangNode node = getChild(); | ... | ... |
... | @@ -20,8 +20,8 @@ import java.util.LinkedList; | ... | @@ -20,8 +20,8 @@ import java.util.LinkedList; |
20 | import java.util.List; | 20 | import java.util.List; |
21 | 21 | ||
22 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 22 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
23 | -import org.onosproject.yangutils.parser.Parsable; | 23 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
24 | -import org.onosproject.yangutils.utils.YangConstructType; | 24 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
25 | 25 | ||
26 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; | 26 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; |
27 | 27 | ||
... | @@ -91,6 +91,8 @@ public class YangContainer | ... | @@ -91,6 +91,8 @@ public class YangContainer |
91 | extends YangNode | 91 | extends YangNode |
92 | implements YangLeavesHolder, YangCommonInfo, Parsable, CollisionDetector, YangAugmentationHolder { | 92 | implements YangLeavesHolder, YangCommonInfo, Parsable, CollisionDetector, YangAugmentationHolder { |
93 | 93 | ||
94 | + private static final long serialVersionUID = 806201605L; | ||
95 | + | ||
94 | /** | 96 | /** |
95 | * Name of the container. | 97 | * Name of the container. |
96 | */ | 98 | */ | ... | ... |
This diff is collapsed. Click to expand it.
... | @@ -16,11 +16,12 @@ | ... | @@ -16,11 +16,12 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel; | 17 | package org.onosproject.yangutils.datamodel; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
19 | import java.util.Objects; | 20 | import java.util.Objects; |
20 | 21 | ||
21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 22 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
22 | -import org.onosproject.yangutils.parser.Parsable; | 23 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
23 | -import org.onosproject.yangutils.utils.YangConstructType; | 24 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
24 | 25 | ||
25 | /*- | 26 | /*- |
26 | * The "ENUM" statement, which is a sub-statement to the "type" | 27 | * The "ENUM" statement, which is a sub-statement to the "type" |
... | @@ -50,7 +51,9 @@ import org.onosproject.yangutils.utils.YangConstructType; | ... | @@ -50,7 +51,9 @@ import org.onosproject.yangutils.utils.YangConstructType; |
50 | /** | 51 | /** |
51 | * Represents the ENUM data type information. | 52 | * Represents the ENUM data type information. |
52 | */ | 53 | */ |
53 | -public class YangEnum implements YangCommonInfo, Parsable, Comparable<YangEnum> { | 54 | +public class YangEnum implements YangCommonInfo, Parsable, Comparable<YangEnum>, Serializable { |
55 | + | ||
56 | + private static final long serialVersionUID = 806201643L; | ||
54 | 57 | ||
55 | /** | 58 | /** |
56 | * Named value for the ENUM. | 59 | * Named value for the ENUM. |
... | @@ -197,14 +200,14 @@ public class YangEnum implements YangCommonInfo, Parsable, Comparable<YangEnum> | ... | @@ -197,14 +200,14 @@ public class YangEnum implements YangCommonInfo, Parsable, Comparable<YangEnum> |
197 | } | 200 | } |
198 | if (obj instanceof YangEnum) { | 201 | if (obj instanceof YangEnum) { |
199 | final YangEnum other = (YangEnum) obj; | 202 | final YangEnum other = (YangEnum) obj; |
200 | - return Objects.equals(this.namedValue, other.namedValue); | 203 | + return Objects.equals(namedValue, other.namedValue); |
201 | } | 204 | } |
202 | return false; | 205 | return false; |
203 | } | 206 | } |
204 | 207 | ||
205 | @Override | 208 | @Override |
206 | public int hashCode() { | 209 | public int hashCode() { |
207 | - return Objects.hashCode(this.namedValue); | 210 | + return Objects.hashCode(namedValue); |
208 | } | 211 | } |
209 | 212 | ||
210 | /** | 213 | /** |
... | @@ -229,9 +232,9 @@ public class YangEnum implements YangCommonInfo, Parsable, Comparable<YangEnum> | ... | @@ -229,9 +232,9 @@ public class YangEnum implements YangCommonInfo, Parsable, Comparable<YangEnum> |
229 | 232 | ||
230 | @Override | 233 | @Override |
231 | public int compareTo(YangEnum otherEnum) { | 234 | public int compareTo(YangEnum otherEnum) { |
232 | - if (this.namedValue.equals(otherEnum.getNamedValue())) { | 235 | + if (namedValue.equals(otherEnum.getNamedValue())) { |
233 | return 0; | 236 | return 0; |
234 | } | 237 | } |
235 | - return new Integer(this.value).compareTo(otherEnum.getValue()); | 238 | + return new Integer(value).compareTo(otherEnum.getValue()); |
236 | } | 239 | } |
237 | } | 240 | } | ... | ... |
... | @@ -20,8 +20,8 @@ import java.util.SortedSet; | ... | @@ -20,8 +20,8 @@ import java.util.SortedSet; |
20 | import java.util.TreeSet; | 20 | import java.util.TreeSet; |
21 | 21 | ||
22 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 22 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
23 | -import org.onosproject.yangutils.parser.Parsable; | 23 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
24 | -import org.onosproject.yangutils.utils.YangConstructType; | 24 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
25 | 25 | ||
26 | /* | 26 | /* |
27 | * The enumeration built-in type represents values from a set of | 27 | * The enumeration built-in type represents values from a set of |
... | @@ -35,6 +35,8 @@ public class YangEnumeration | ... | @@ -35,6 +35,8 @@ public class YangEnumeration |
35 | extends YangNode | 35 | extends YangNode |
36 | implements Parsable, CollisionDetector { | 36 | implements Parsable, CollisionDetector { |
37 | 37 | ||
38 | + private static final long serialVersionUID = 806201606L; | ||
39 | + | ||
38 | // Enumeration info set. | 40 | // Enumeration info set. |
39 | private SortedSet<YangEnum> enumSet; | 41 | private SortedSet<YangEnum> enumSet; |
40 | 42 | ... | ... |
... | @@ -19,8 +19,8 @@ import java.util.LinkedList; | ... | @@ -19,8 +19,8 @@ import java.util.LinkedList; |
19 | import java.util.List; | 19 | import java.util.List; |
20 | 20 | ||
21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
22 | -import org.onosproject.yangutils.parser.Parsable; | 22 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
23 | -import org.onosproject.yangutils.utils.YangConstructType; | 23 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
24 | 24 | ||
25 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; | 25 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; |
26 | 26 | ||
... | @@ -81,6 +81,8 @@ public class YangGrouping | ... | @@ -81,6 +81,8 @@ public class YangGrouping |
81 | extends YangNode | 81 | extends YangNode |
82 | implements YangLeavesHolder, YangCommonInfo, Parsable, CollisionDetector { | 82 | implements YangLeavesHolder, YangCommonInfo, Parsable, CollisionDetector { |
83 | 83 | ||
84 | + private static final long serialVersionUID = 806201607L; | ||
85 | + | ||
84 | /** | 86 | /** |
85 | * Name of the grouping. | 87 | * Name of the grouping. |
86 | */ | 88 | */ | ... | ... |
... | @@ -15,10 +15,12 @@ | ... | @@ -15,10 +15,12 @@ |
15 | */ | 15 | */ |
16 | package org.onosproject.yangutils.datamodel; | 16 | package org.onosproject.yangutils.datamodel; |
17 | 17 | ||
18 | +import java.io.Serializable; | ||
18 | import java.util.Set; | 19 | import java.util.Set; |
20 | + | ||
19 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
20 | -import org.onosproject.yangutils.parser.Parsable; | 22 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
21 | -import org.onosproject.yangutils.utils.YangConstructType; | 23 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
22 | 24 | ||
23 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.findReferredNode; | 25 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.findReferredNode; |
24 | 26 | ||
... | @@ -67,7 +69,9 @@ import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.findRefer | ... | @@ -67,7 +69,9 @@ import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.findRefer |
67 | * Represents the information about the imported modules. | 69 | * Represents the information about the imported modules. |
68 | */ | 70 | */ |
69 | public class YangImport | 71 | public class YangImport |
70 | - implements Parsable, LocationInfo { | 72 | + implements Parsable, LocationInfo, Serializable { |
73 | + | ||
74 | + private static final long serialVersionUID = 806201642L; | ||
71 | 75 | ||
72 | /** | 76 | /** |
73 | * Name of the module that is being imported. | 77 | * Name of the module that is being imported. |
... | @@ -95,10 +99,10 @@ public class YangImport | ... | @@ -95,10 +99,10 @@ public class YangImport |
95 | private YangNode importedNode; | 99 | private YangNode importedNode; |
96 | 100 | ||
97 | // Error Line number. | 101 | // Error Line number. |
98 | - private int lineNumber; | 102 | + private transient int lineNumber; |
99 | 103 | ||
100 | // Error character position. | 104 | // Error character position. |
101 | - private int charPosition; | 105 | + private transient int charPosition; |
102 | 106 | ||
103 | /** | 107 | /** |
104 | * Creates a YANG import. | 108 | * Creates a YANG import. |
... | @@ -230,7 +234,7 @@ public class YangImport | ... | @@ -230,7 +234,7 @@ public class YangImport |
230 | 234 | ||
231 | @Override | 235 | @Override |
232 | public void setCharPosition(int charPositionInLine) { | 236 | public void setCharPosition(int charPositionInLine) { |
233 | - this.charPosition = charPositionInLine; | 237 | + charPosition = charPositionInLine; |
234 | } | 238 | } |
235 | 239 | ||
236 | /** | 240 | /** |
... | @@ -244,8 +248,8 @@ public class YangImport | ... | @@ -244,8 +248,8 @@ public class YangImport |
244 | String importedModuleRevision = getRevision(); | 248 | String importedModuleRevision = getRevision(); |
245 | YangNode moduleNode = null; | 249 | YangNode moduleNode = null; |
246 | /* | 250 | /* |
247 | - * Find the imported module node for a given module name | 251 | + * Find the imported module node for a given module name with a |
248 | - * with a specified revision if revision is not null. | 252 | + * specified revision if revision is not null. |
249 | */ | 253 | */ |
250 | if (importedModuleRevision != null) { | 254 | if (importedModuleRevision != null) { |
251 | String importedModuleNameWithRevision = importedModuleName + "@" + importedModuleRevision; | 255 | String importedModuleNameWithRevision = importedModuleName + "@" + importedModuleRevision; |
... | @@ -253,8 +257,8 @@ public class YangImport | ... | @@ -253,8 +257,8 @@ public class YangImport |
253 | } | 257 | } |
254 | 258 | ||
255 | /* | 259 | /* |
256 | - * Find the imported module node for a given module name | 260 | + * Find the imported module node for a given module name without |
257 | - * without revision if can't find with revision. | 261 | + * revision if can't find with revision. |
258 | */ | 262 | */ |
259 | if (moduleNode == null) { | 263 | if (moduleNode == null) { |
260 | moduleNode = findReferredNode(yangNodeSet, importedModuleName); | 264 | moduleNode = findReferredNode(yangNodeSet, importedModuleName); | ... | ... |
... | @@ -15,10 +15,12 @@ | ... | @@ -15,10 +15,12 @@ |
15 | */ | 15 | */ |
16 | package org.onosproject.yangutils.datamodel; | 16 | package org.onosproject.yangutils.datamodel; |
17 | 17 | ||
18 | +import java.io.Serializable; | ||
18 | import java.util.Set; | 19 | import java.util.Set; |
20 | + | ||
19 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
20 | -import org.onosproject.yangutils.parser.Parsable; | 22 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
21 | -import org.onosproject.yangutils.utils.YangConstructType; | 23 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
22 | 24 | ||
23 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.findReferredNode; | 25 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.findReferredNode; |
24 | 26 | ||
... | @@ -41,7 +43,9 @@ import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.findRefer | ... | @@ -41,7 +43,9 @@ import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.findRefer |
41 | * Represents the information about the included sub-modules. | 43 | * Represents the information about the included sub-modules. |
42 | */ | 44 | */ |
43 | public class YangInclude | 45 | public class YangInclude |
44 | - implements Parsable, LocationInfo { | 46 | + implements Parsable, LocationInfo, Serializable { |
47 | + | ||
48 | + private static final long serialVersionUID = 806201644L; | ||
45 | 49 | ||
46 | /** | 50 | /** |
47 | * Name of the sub-module that is being included. | 51 | * Name of the sub-module that is being included. |
... | @@ -60,10 +64,10 @@ public class YangInclude | ... | @@ -60,10 +64,10 @@ public class YangInclude |
60 | private YangNode includedNode; | 64 | private YangNode includedNode; |
61 | 65 | ||
62 | // Error Line number. | 66 | // Error Line number. |
63 | - private int lineNumber; | 67 | + private transient int lineNumber; |
64 | 68 | ||
65 | // Error character position. | 69 | // Error character position. |
66 | - private int charPosition; | 70 | + private transient int charPosition; |
67 | 71 | ||
68 | /** | 72 | /** |
69 | * Creates a YANG include. | 73 | * Creates a YANG include. |
... | @@ -166,7 +170,7 @@ public class YangInclude | ... | @@ -166,7 +170,7 @@ public class YangInclude |
166 | 170 | ||
167 | @Override | 171 | @Override |
168 | public void setCharPosition(int charPositionInLine) { | 172 | public void setCharPosition(int charPositionInLine) { |
169 | - this.charPosition = charPositionInLine; | 173 | + charPosition = charPositionInLine; |
170 | } | 174 | } |
171 | 175 | ||
172 | /** | 176 | /** |
... | @@ -182,8 +186,8 @@ public class YangInclude | ... | @@ -182,8 +186,8 @@ public class YangInclude |
182 | YangNode subModuleNode = null; | 186 | YangNode subModuleNode = null; |
183 | 187 | ||
184 | /* | 188 | /* |
185 | - * Find the included sub-module node for a given module name | 189 | + * Find the included sub-module node for a given module name with a |
186 | - * with a specified revision if revision is not null. | 190 | + * specified revision if revision is not null. |
187 | */ | 191 | */ |
188 | if (includedSubModuleRevision != null) { | 192 | if (includedSubModuleRevision != null) { |
189 | String includedSubModuleNameWithRevision = includedSubModuleName + "@" + includedSubModuleRevision; | 193 | String includedSubModuleNameWithRevision = includedSubModuleName + "@" + includedSubModuleRevision; |
... | @@ -191,8 +195,8 @@ public class YangInclude | ... | @@ -191,8 +195,8 @@ public class YangInclude |
191 | } | 195 | } |
192 | 196 | ||
193 | /* | 197 | /* |
194 | - * Find the imported sub module node for a given module name | 198 | + * Find the imported sub module node for a given module name without |
195 | - * without revision if can't find with revision. | 199 | + * revision if can't find with revision. |
196 | */ | 200 | */ |
197 | if (subModuleNode == null) { | 201 | if (subModuleNode == null) { |
198 | subModuleNode = findReferredNode(yangNodeSet, includedSubModuleName); | 202 | subModuleNode = findReferredNode(yangNodeSet, includedSubModuleName); | ... | ... |
... | @@ -20,8 +20,8 @@ import java.util.LinkedList; | ... | @@ -20,8 +20,8 @@ import java.util.LinkedList; |
20 | import java.util.List; | 20 | import java.util.List; |
21 | 21 | ||
22 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 22 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
23 | -import org.onosproject.yangutils.parser.Parsable; | 23 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
24 | -import org.onosproject.yangutils.utils.YangConstructType; | 24 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
25 | 25 | ||
26 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; | 26 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; |
27 | 27 | ||
... | @@ -72,6 +72,8 @@ public class YangInput | ... | @@ -72,6 +72,8 @@ public class YangInput |
72 | extends YangNode | 72 | extends YangNode |
73 | implements YangLeavesHolder, Parsable, CollisionDetector, YangAugmentationHolder { | 73 | implements YangLeavesHolder, Parsable, CollisionDetector, YangAugmentationHolder { |
74 | 74 | ||
75 | + private static final long serialVersionUID = 806201608L; | ||
76 | + | ||
75 | /** | 77 | /** |
76 | * Name of the input. | 78 | * Name of the input. |
77 | */ | 79 | */ |
... | @@ -106,9 +108,9 @@ public class YangInput | ... | @@ -106,9 +108,9 @@ public class YangInput |
106 | @Override | 108 | @Override |
107 | public void detectSelfCollision(String identifierName, YangConstructType dataType) | 109 | public void detectSelfCollision(String identifierName, YangConstructType dataType) |
108 | throws DataModelException { | 110 | throws DataModelException { |
109 | - if (this.getName().equals(identifierName)) { | 111 | + if (getName().equals(identifierName)) { |
110 | throw new DataModelException("YANG file error: Duplicate input identifier detected, same as input \"" | 112 | throw new DataModelException("YANG file error: Duplicate input identifier detected, same as input \"" |
111 | - + this.getName() + "\""); | 113 | + + getName() + "\""); |
112 | } | 114 | } |
113 | } | 115 | } |
114 | 116 | ... | ... |
... | @@ -16,9 +16,11 @@ | ... | @@ -16,9 +16,11 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel; | 17 | package org.onosproject.yangutils.datamodel; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
20 | + | ||
19 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
20 | -import org.onosproject.yangutils.parser.Parsable; | 22 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
21 | -import org.onosproject.yangutils.utils.YangConstructType; | 23 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
22 | 24 | ||
23 | /* | 25 | /* |
24 | * Reference:RFC 6020. | 26 | * Reference:RFC 6020. |
... | @@ -58,7 +60,9 @@ import org.onosproject.yangutils.utils.YangConstructType; | ... | @@ -58,7 +60,9 @@ import org.onosproject.yangutils.utils.YangConstructType; |
58 | * Represents leaf data represented in YANG. | 60 | * Represents leaf data represented in YANG. |
59 | */ | 61 | */ |
60 | public class YangLeaf | 62 | public class YangLeaf |
61 | - implements YangCommonInfo, Parsable, Cloneable { | 63 | + implements YangCommonInfo, Parsable, Cloneable, Serializable { |
64 | + | ||
65 | + private static final long serialVersionUID = 806201635L; | ||
62 | 66 | ||
63 | /** | 67 | /** |
64 | * Name of leaf. | 68 | * Name of leaf. |
... | @@ -109,7 +113,7 @@ public class YangLeaf | ... | @@ -109,7 +113,7 @@ public class YangLeaf |
109 | /** | 113 | /** |
110 | * YANG Node in which the leaf is contained. | 114 | * YANG Node in which the leaf is contained. |
111 | */ | 115 | */ |
112 | - YangLeavesHolder containedIn; | 116 | + private transient YangLeavesHolder containedIn; |
113 | 117 | ||
114 | /** | 118 | /** |
115 | * Creates a YANG leaf. | 119 | * Creates a YANG leaf. | ... | ... |
... | @@ -16,9 +16,11 @@ | ... | @@ -16,9 +16,11 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel; | 17 | package org.onosproject.yangutils.datamodel; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
20 | + | ||
19 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
20 | -import org.onosproject.yangutils.parser.Parsable; | 22 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
21 | -import org.onosproject.yangutils.utils.YangConstructType; | 23 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
22 | 24 | ||
23 | /* | 25 | /* |
24 | * Reference:RFC 6020. | 26 | * Reference:RFC 6020. |
... | @@ -54,7 +56,9 @@ import org.onosproject.yangutils.utils.YangConstructType; | ... | @@ -54,7 +56,9 @@ import org.onosproject.yangutils.utils.YangConstructType; |
54 | * Represents leaf-list data represented in YANG. | 56 | * Represents leaf-list data represented in YANG. |
55 | */ | 57 | */ |
56 | public class YangLeafList | 58 | public class YangLeafList |
57 | - implements YangCommonInfo, Parsable, Cloneable { | 59 | + implements YangCommonInfo, Parsable, Cloneable, Serializable { |
60 | + | ||
61 | + private static final long serialVersionUID = 806201637L; | ||
58 | 62 | ||
59 | /** | 63 | /** |
60 | * Name of leaf-list. | 64 | * Name of leaf-list. |
... | @@ -126,7 +130,7 @@ public class YangLeafList | ... | @@ -126,7 +130,7 @@ public class YangLeafList |
126 | /** | 130 | /** |
127 | * YANG Node in which the leaf is contained. | 131 | * YANG Node in which the leaf is contained. |
128 | */ | 132 | */ |
129 | - YangLeavesHolder containedIn; | 133 | + private transient YangLeavesHolder containedIn; |
130 | 134 | ||
131 | /** | 135 | /** |
132 | * Creates a YANG leaf-list. | 136 | * Creates a YANG leaf-list. | ... | ... |
... | @@ -16,6 +16,8 @@ | ... | @@ -16,6 +16,8 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel; | 17 | package org.onosproject.yangutils.datamodel; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
20 | + | ||
19 | /*- | 21 | /*- |
20 | * Reference RFC 6020. | 22 | * Reference RFC 6020. |
21 | * | 23 | * |
... | @@ -24,14 +26,14 @@ package org.onosproject.yangutils.datamodel; | ... | @@ -24,14 +26,14 @@ package org.onosproject.yangutils.datamodel; |
24 | */ | 26 | */ |
25 | 27 | ||
26 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 28 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
27 | -import org.onosproject.yangutils.parser.Parsable; | 29 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
28 | -import org.onosproject.yangutils.utils.YangConstructType; | 30 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
29 | import org.onosproject.yangutils.datamodel.utils.builtindatatype.YangUint64; | 31 | import org.onosproject.yangutils.datamodel.utils.builtindatatype.YangUint64; |
30 | 32 | ||
31 | /** | 33 | /** |
32 | * Represents the restriction for length data type. | 34 | * Represents the restriction for length data type. |
33 | */ | 35 | */ |
34 | -public class YangLengthRestriction implements YangDesc, YangReference, YangAppErrorInfo, Parsable { | 36 | +public class YangLengthRestriction implements YangDesc, YangReference, YangAppErrorInfo, Parsable, Serializable { |
35 | 37 | ||
36 | /*- | 38 | /*- |
37 | * Reference RFC 6020. | 39 | * Reference RFC 6020. |
... | @@ -69,6 +71,8 @@ public class YangLengthRestriction implements YangDesc, YangReference, YangAppEr | ... | @@ -69,6 +71,8 @@ public class YangLengthRestriction implements YangDesc, YangReference, YangAppEr |
69 | * +---------------+---------+-------------+-----------------+ | 71 | * +---------------+---------+-------------+-----------------+ |
70 | */ | 72 | */ |
71 | 73 | ||
74 | + private static final long serialVersionUID = 806201645L; | ||
75 | + | ||
72 | /** | 76 | /** |
73 | * Length restriction information. | 77 | * Length restriction information. |
74 | */ | 78 | */ |
... | @@ -207,11 +211,11 @@ public class YangLengthRestriction implements YangDesc, YangReference, YangAppEr | ... | @@ -207,11 +211,11 @@ public class YangLengthRestriction implements YangDesc, YangReference, YangAppEr |
207 | 211 | ||
208 | @Override | 212 | @Override |
209 | public void validateDataOnEntry() throws DataModelException { | 213 | public void validateDataOnEntry() throws DataModelException { |
210 | - //TODO: implement the method. | 214 | + // TODO: implement the method. |
211 | } | 215 | } |
212 | 216 | ||
213 | @Override | 217 | @Override |
214 | public void validateDataOnExit() throws DataModelException { | 218 | public void validateDataOnExit() throws DataModelException { |
215 | - //TODO: implement the method. | 219 | + // TODO: implement the method. |
216 | } | 220 | } |
217 | } | 221 | } | ... | ... |
... | @@ -20,8 +20,8 @@ import java.util.LinkedList; | ... | @@ -20,8 +20,8 @@ import java.util.LinkedList; |
20 | import java.util.List; | 20 | import java.util.List; |
21 | 21 | ||
22 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 22 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
23 | -import org.onosproject.yangutils.parser.Parsable; | 23 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
24 | -import org.onosproject.yangutils.utils.YangConstructType; | 24 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
25 | 25 | ||
26 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; | 26 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; |
27 | 27 | ||
... | @@ -71,6 +71,8 @@ public class YangList | ... | @@ -71,6 +71,8 @@ public class YangList |
71 | extends YangNode | 71 | extends YangNode |
72 | implements YangLeavesHolder, YangCommonInfo, Parsable, CollisionDetector, YangAugmentationHolder { | 72 | implements YangLeavesHolder, YangCommonInfo, Parsable, CollisionDetector, YangAugmentationHolder { |
73 | 73 | ||
74 | + private static final long serialVersionUID = 806201609L; | ||
75 | + | ||
74 | /** | 76 | /** |
75 | * Name of the YANG list. | 77 | * Name of the YANG list. |
76 | */ | 78 | */ |
... | @@ -619,7 +621,7 @@ public class YangList | ... | @@ -619,7 +621,7 @@ public class YangList |
619 | } | 621 | } |
620 | 622 | ||
621 | private boolean isUsesPresentInList() { | 623 | private boolean isUsesPresentInList() { |
622 | - YangNode node = this.getChild(); | 624 | + YangNode node = getChild(); |
623 | while (node != null) { | 625 | while (node != null) { |
624 | if (node instanceof YangUses) { | 626 | if (node instanceof YangUses) { |
625 | return true; | 627 | return true; |
... | @@ -631,7 +633,7 @@ public class YangList | ... | @@ -631,7 +633,7 @@ public class YangList |
631 | } | 633 | } |
632 | 634 | ||
633 | private boolean isListPresentInGrouping() { | 635 | private boolean isListPresentInGrouping() { |
634 | - YangNode node = this.getParent(); | 636 | + YangNode node = getParent(); |
635 | while (node != null) { | 637 | while (node != null) { |
636 | if (node instanceof YangGrouping) { | 638 | if (node instanceof YangGrouping) { |
637 | return true; | 639 | return true; | ... | ... |
... | @@ -19,9 +19,10 @@ import java.util.Iterator; | ... | @@ -19,9 +19,10 @@ import java.util.Iterator; |
19 | import java.util.LinkedList; | 19 | import java.util.LinkedList; |
20 | import java.util.List; | 20 | import java.util.List; |
21 | import java.util.Set; | 21 | import java.util.Set; |
22 | + | ||
22 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 23 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
23 | -import org.onosproject.yangutils.parser.Parsable; | 24 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
24 | -import org.onosproject.yangutils.utils.YangConstructType; | 25 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
25 | 26 | ||
26 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; | 27 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; |
27 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.linkInterFileReferences; | 28 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.linkInterFileReferences; |
... | @@ -75,6 +76,8 @@ public class YangModule | ... | @@ -75,6 +76,8 @@ public class YangModule |
75 | implements YangLeavesHolder, YangDesc, YangReference, Parsable, CollisionDetector, YangReferenceResolver, | 76 | implements YangLeavesHolder, YangDesc, YangReference, Parsable, CollisionDetector, YangReferenceResolver, |
76 | RpcNotificationContainer { | 77 | RpcNotificationContainer { |
77 | 78 | ||
79 | + private static final long serialVersionUID = 806201610L; | ||
80 | + | ||
78 | /** | 81 | /** |
79 | * Name of the module. | 82 | * Name of the module. |
80 | */ | 83 | */ | ... | ... |
... | @@ -15,9 +15,11 @@ | ... | @@ -15,9 +15,11 @@ |
15 | */ | 15 | */ |
16 | package org.onosproject.yangutils.datamodel; | 16 | package org.onosproject.yangutils.datamodel; |
17 | 17 | ||
18 | +import java.io.Serializable; | ||
19 | + | ||
18 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 20 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
19 | -import org.onosproject.yangutils.parser.Parsable; | 21 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
20 | -import org.onosproject.yangutils.utils.YangConstructType; | 22 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
21 | 23 | ||
22 | /*- | 24 | /*- |
23 | * The "must" statement, which is optional, takes as an argument a string that | 25 | * The "must" statement, which is optional, takes as an argument a string that |
... | @@ -46,7 +48,9 @@ import org.onosproject.yangutils.utils.YangConstructType; | ... | @@ -46,7 +48,9 @@ import org.onosproject.yangutils.utils.YangConstructType; |
46 | /** | 48 | /** |
47 | * Represents information defined in YANG must. | 49 | * Represents information defined in YANG must. |
48 | */ | 50 | */ |
49 | -public class YangMust implements YangDesc, YangReference, Parsable { | 51 | +public class YangMust implements YangDesc, YangReference, Parsable, Serializable { |
52 | + | ||
53 | + private static final long serialVersionUID = 806201646L; | ||
50 | 54 | ||
51 | /** | 55 | /** |
52 | * Constraint info. | 56 | * Constraint info. | ... | ... |
... | @@ -16,9 +16,11 @@ | ... | @@ -16,9 +16,11 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel; | 17 | package org.onosproject.yangutils.datamodel; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
20 | + | ||
19 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
20 | -import org.onosproject.yangutils.parser.Parsable; | 22 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
21 | -import org.onosproject.yangutils.utils.YangConstructType; | 23 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
22 | 24 | ||
23 | /* | 25 | /* |
24 | * Reference:RFC 6020. | 26 | * Reference:RFC 6020. |
... | @@ -32,7 +34,9 @@ import org.onosproject.yangutils.utils.YangConstructType; | ... | @@ -32,7 +34,9 @@ import org.onosproject.yangutils.utils.YangConstructType; |
32 | /** | 34 | /** |
33 | * Represents name space to be used for the XML data tree. | 35 | * Represents name space to be used for the XML data tree. |
34 | */ | 36 | */ |
35 | -public class YangNameSpace implements Parsable { | 37 | +public class YangNameSpace implements Parsable, Serializable { |
38 | + | ||
39 | + private static final long serialVersionUID = 806201647L; | ||
36 | 40 | ||
37 | private String uri; | 41 | private String uri; |
38 | 42 | ... | ... |
... | @@ -15,13 +15,17 @@ | ... | @@ -15,13 +15,17 @@ |
15 | */ | 15 | */ |
16 | package org.onosproject.yangutils.datamodel; | 16 | package org.onosproject.yangutils.datamodel; |
17 | 17 | ||
18 | +import java.io.Serializable; | ||
19 | + | ||
18 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 20 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
19 | 21 | ||
20 | /** | 22 | /** |
21 | * Represents base class of a node in data model tree. | 23 | * Represents base class of a node in data model tree. |
22 | */ | 24 | */ |
23 | public abstract class YangNode | 25 | public abstract class YangNode |
24 | - implements Cloneable { | 26 | + implements Cloneable, Serializable { |
27 | + | ||
28 | + private static final long serialVersionUID = 806201601L; | ||
25 | 29 | ||
26 | /** | 30 | /** |
27 | * Type of node. | 31 | * Type of node. | ... | ... |
... | @@ -16,10 +16,14 @@ | ... | @@ -16,10 +16,14 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel; | 17 | package org.onosproject.yangutils.datamodel; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
20 | + | ||
19 | /** | 21 | /** |
20 | * Represents YANG node identifier which is a combination of prefix and name. | 22 | * Represents YANG node identifier which is a combination of prefix and name. |
21 | */ | 23 | */ |
22 | -public class YangNodeIdentifier { | 24 | +public class YangNodeIdentifier implements Serializable { |
25 | + | ||
26 | + private static final long serialVersionUID = 806201648L; | ||
23 | 27 | ||
24 | // Name of the node. | 28 | // Name of the node. |
25 | private String name; | 29 | private String name; | ... | ... |
... | @@ -20,8 +20,8 @@ import java.util.LinkedList; | ... | @@ -20,8 +20,8 @@ import java.util.LinkedList; |
20 | import java.util.List; | 20 | import java.util.List; |
21 | 21 | ||
22 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 22 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
23 | -import org.onosproject.yangutils.parser.Parsable; | 23 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
24 | -import org.onosproject.yangutils.utils.YangConstructType; | 24 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
25 | 25 | ||
26 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; | 26 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; |
27 | 27 | ||
... | @@ -78,6 +78,8 @@ public class YangNotification | ... | @@ -78,6 +78,8 @@ public class YangNotification |
78 | extends YangNode | 78 | extends YangNode |
79 | implements YangLeavesHolder, YangCommonInfo, Parsable, CollisionDetector, YangAugmentationHolder { | 79 | implements YangLeavesHolder, YangCommonInfo, Parsable, CollisionDetector, YangAugmentationHolder { |
80 | 80 | ||
81 | + private static final long serialVersionUID = 806201611L; | ||
82 | + | ||
81 | /** | 83 | /** |
82 | * Name of the notification. | 84 | * Name of the notification. |
83 | */ | 85 | */ |
... | @@ -127,9 +129,9 @@ public class YangNotification | ... | @@ -127,9 +129,9 @@ public class YangNotification |
127 | @Override | 129 | @Override |
128 | public void detectSelfCollision(String identifierName, YangConstructType dataType) | 130 | public void detectSelfCollision(String identifierName, YangConstructType dataType) |
129 | throws DataModelException { | 131 | throws DataModelException { |
130 | - if (this.getName().equals(identifierName)) { | 132 | + if (getName().equals(identifierName)) { |
131 | throw new DataModelException("YANG file error: Duplicate input identifier detected, same as notification \"" | 133 | throw new DataModelException("YANG file error: Duplicate input identifier detected, same as notification \"" |
132 | - + this.getName() + "\""); | 134 | + + getName() + "\""); |
133 | } | 135 | } |
134 | } | 136 | } |
135 | 137 | ... | ... |
... | @@ -20,8 +20,8 @@ import java.util.LinkedList; | ... | @@ -20,8 +20,8 @@ import java.util.LinkedList; |
20 | import java.util.List; | 20 | import java.util.List; |
21 | 21 | ||
22 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 22 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
23 | -import org.onosproject.yangutils.parser.Parsable; | 23 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
24 | -import org.onosproject.yangutils.utils.YangConstructType; | 24 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
25 | 25 | ||
26 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; | 26 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; |
27 | 27 | ||
... | @@ -71,6 +71,8 @@ public class YangOutput | ... | @@ -71,6 +71,8 @@ public class YangOutput |
71 | extends YangNode | 71 | extends YangNode |
72 | implements YangLeavesHolder, Parsable, CollisionDetector, YangAugmentationHolder { | 72 | implements YangLeavesHolder, Parsable, CollisionDetector, YangAugmentationHolder { |
73 | 73 | ||
74 | + private static final long serialVersionUID = 806201612L; | ||
75 | + | ||
74 | /** | 76 | /** |
75 | * Name of the output. | 77 | * Name of the output. |
76 | */ | 78 | */ |
... | @@ -105,9 +107,9 @@ public class YangOutput | ... | @@ -105,9 +107,9 @@ public class YangOutput |
105 | @Override | 107 | @Override |
106 | public void detectSelfCollision(String identifierName, YangConstructType dataType) | 108 | public void detectSelfCollision(String identifierName, YangConstructType dataType) |
107 | throws DataModelException { | 109 | throws DataModelException { |
108 | - if (this.getName().equals(identifierName)) { | 110 | + if (getName().equals(identifierName)) { |
109 | throw new DataModelException("YANG file error: Duplicate identifier detected, same as output \"" | 111 | throw new DataModelException("YANG file error: Duplicate identifier detected, same as output \"" |
110 | - + this.getName() + "\""); | 112 | + + getName() + "\""); |
111 | } | 113 | } |
112 | } | 114 | } |
113 | 115 | ... | ... |
... | @@ -16,6 +16,7 @@ | ... | @@ -16,6 +16,7 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel; | 17 | package org.onosproject.yangutils.datamodel; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
19 | import java.util.LinkedList; | 20 | import java.util.LinkedList; |
20 | import java.util.List; | 21 | import java.util.List; |
21 | 22 | ||
... | @@ -51,7 +52,9 @@ import java.util.List; | ... | @@ -51,7 +52,9 @@ import java.util.List; |
51 | * Represents pattern restriction information. The regular expression restriction on string | 52 | * Represents pattern restriction information. The regular expression restriction on string |
52 | * data type. | 53 | * data type. |
53 | */ | 54 | */ |
54 | -public class YangPatternRestriction { | 55 | +public class YangPatternRestriction implements Serializable { |
56 | + | ||
57 | + private static final long serialVersionUID = 806201649L; | ||
55 | 58 | ||
56 | /** | 59 | /** |
57 | * Pattern restriction defined for the current type. | 60 | * Pattern restriction defined for the current type. | ... | ... |
... | @@ -13,6 +13,8 @@ See the License for the specific language governing permissions and | ... | @@ -13,6 +13,8 @@ See the License for the specific language governing permissions and |
13 | limitations under the License.*/ | 13 | limitations under the License.*/ |
14 | package org.onosproject.yangutils.datamodel; | 14 | package org.onosproject.yangutils.datamodel; |
15 | 15 | ||
16 | +import java.io.Serializable; | ||
17 | + | ||
16 | import org.onosproject.yangutils.datamodel.utils.builtindatatype.YangBuiltInDataTypeInfo; | 18 | import org.onosproject.yangutils.datamodel.utils.builtindatatype.YangBuiltInDataTypeInfo; |
17 | 19 | ||
18 | /** | 20 | /** |
... | @@ -20,7 +22,9 @@ import org.onosproject.yangutils.datamodel.utils.builtindatatype.YangBuiltInData | ... | @@ -20,7 +22,9 @@ import org.onosproject.yangutils.datamodel.utils.builtindatatype.YangBuiltInData |
20 | * | 22 | * |
21 | * @param <T> range type based on the data type | 23 | * @param <T> range type based on the data type |
22 | */ | 24 | */ |
23 | -public class YangRangeInterval<T extends YangBuiltInDataTypeInfo<T>> { | 25 | +public class YangRangeInterval<T extends YangBuiltInDataTypeInfo<T>> implements Serializable { |
26 | + | ||
27 | + private static final long serialVersionUID = 806201650L; | ||
24 | 28 | ||
25 | /** | 29 | /** |
26 | * Starting value of the range interval. | 30 | * Starting value of the range interval. | ... | ... |
... | @@ -16,14 +16,17 @@ | ... | @@ -16,14 +16,17 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel; | 17 | package org.onosproject.yangutils.datamodel; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
19 | import java.util.LinkedList; | 20 | import java.util.LinkedList; |
20 | import java.util.List; | 21 | import java.util.List; |
22 | + | ||
21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 23 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
22 | -import org.onosproject.yangutils.parser.Parsable; | 24 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
23 | -import org.onosproject.yangutils.utils.YangConstructType; | 25 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
24 | import org.onosproject.yangutils.datamodel.utils.builtindatatype.YangBuiltInDataTypeInfo; | 26 | import org.onosproject.yangutils.datamodel.utils.builtindatatype.YangBuiltInDataTypeInfo; |
25 | 27 | ||
26 | import static org.onosproject.yangutils.datamodel.utils.builtindatatype.BuiltInTypeObjectFactory.getDataObjectFromString; | 28 | import static org.onosproject.yangutils.datamodel.utils.builtindatatype.BuiltInTypeObjectFactory.getDataObjectFromString; |
29 | + | ||
27 | import static com.google.common.base.Preconditions.checkNotNull; | 30 | import static com.google.common.base.Preconditions.checkNotNull; |
28 | 31 | ||
29 | /*- | 32 | /*- |
... | @@ -57,7 +60,9 @@ import static com.google.common.base.Preconditions.checkNotNull; | ... | @@ -57,7 +60,9 @@ import static com.google.common.base.Preconditions.checkNotNull; |
57 | * @param <T> range type (data type) | 60 | * @param <T> range type (data type) |
58 | */ | 61 | */ |
59 | public class YangRangeRestriction<T extends YangBuiltInDataTypeInfo<T>> | 62 | public class YangRangeRestriction<T extends YangBuiltInDataTypeInfo<T>> |
60 | - implements YangDesc, YangReference, YangAppErrorInfo, Parsable { | 63 | + implements YangDesc, YangReference, YangAppErrorInfo, Parsable, Serializable { |
64 | + | ||
65 | + private static final long serialVersionUID = 8062016051L; | ||
61 | 66 | ||
62 | /** | 67 | /** |
63 | * Ascending list of range interval restriction. If the restriction is a | 68 | * Ascending list of range interval restriction. If the restriction is a |
... | @@ -186,7 +191,8 @@ public class YangRangeRestriction<T extends YangBuiltInDataTypeInfo<T>> | ... | @@ -186,7 +191,8 @@ public class YangRangeRestriction<T extends YangBuiltInDataTypeInfo<T>> |
186 | 191 | ||
187 | if (getAscendingRangeIntervals() == null | 192 | if (getAscendingRangeIntervals() == null |
188 | || getAscendingRangeIntervals().isEmpty()) { | 193 | || getAscendingRangeIntervals().isEmpty()) { |
189 | - // Throw exception, At least one default range needs to be set in constructor or in linker. | 194 | + // Throw exception, At least one default range needs to be set in |
195 | + // constructor or in linker. | ||
190 | throw new DataModelException("Range interval missing in range restriction."); | 196 | throw new DataModelException("Range interval missing in range restriction."); |
191 | 197 | ||
192 | } | 198 | } |
... | @@ -217,7 +223,8 @@ public class YangRangeRestriction<T extends YangBuiltInDataTypeInfo<T>> | ... | @@ -217,7 +223,8 @@ public class YangRangeRestriction<T extends YangBuiltInDataTypeInfo<T>> |
217 | 223 | ||
218 | if (getAscendingRangeIntervals() == null | 224 | if (getAscendingRangeIntervals() == null |
219 | || getAscendingRangeIntervals().isEmpty()) { | 225 | || getAscendingRangeIntervals().isEmpty()) { |
220 | - // Throw exception, At least one default range needs to be set in constructor or in linker. | 226 | + // Throw exception, At least one default range needs to be set in |
227 | + // constructor or in linker. | ||
221 | throw new DataModelException("Range interval missing in range restriction."); | 228 | throw new DataModelException("Range interval missing in range restriction."); |
222 | } | 229 | } |
223 | 230 | ||
... | @@ -321,11 +328,11 @@ public class YangRangeRestriction<T extends YangBuiltInDataTypeInfo<T>> | ... | @@ -321,11 +328,11 @@ public class YangRangeRestriction<T extends YangBuiltInDataTypeInfo<T>> |
321 | 328 | ||
322 | @Override | 329 | @Override |
323 | public void validateDataOnEntry() throws DataModelException { | 330 | public void validateDataOnEntry() throws DataModelException { |
324 | - //TODO: implement the method. | 331 | + // TODO: implement the method. |
325 | } | 332 | } |
326 | 333 | ||
327 | @Override | 334 | @Override |
328 | public void validateDataOnExit() throws DataModelException { | 335 | public void validateDataOnExit() throws DataModelException { |
329 | - //TODO: implement the method. | 336 | + // TODO: implement the method. |
330 | } | 337 | } |
331 | } | 338 | } | ... | ... |
... | @@ -15,9 +15,11 @@ | ... | @@ -15,9 +15,11 @@ |
15 | */ | 15 | */ |
16 | package org.onosproject.yangutils.datamodel; | 16 | package org.onosproject.yangutils.datamodel; |
17 | 17 | ||
18 | +import java.io.Serializable; | ||
19 | + | ||
18 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 20 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
19 | -import org.onosproject.yangutils.parser.Parsable; | 21 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
20 | -import org.onosproject.yangutils.utils.YangConstructType; | 22 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
21 | 23 | ||
22 | /* | 24 | /* |
23 | * Reference:RFC 6020. | 25 | * Reference:RFC 6020. |
... | @@ -42,7 +44,9 @@ import org.onosproject.yangutils.utils.YangConstructType; | ... | @@ -42,7 +44,9 @@ import org.onosproject.yangutils.utils.YangConstructType; |
42 | /** | 44 | /** |
43 | * Represents the information about the revision. | 45 | * Represents the information about the revision. |
44 | */ | 46 | */ |
45 | -public class YangRevision implements YangDesc, YangReference, Parsable { | 47 | +public class YangRevision implements YangDesc, YangReference, Parsable, Serializable { |
48 | + | ||
49 | + private static final long serialVersionUID = 8062016052L; | ||
46 | 50 | ||
47 | /** | 51 | /** |
48 | * Revision date. Date string in the format "YYYY-MM-DD" | 52 | * Revision date. Date string in the format "YYYY-MM-DD" | ... | ... |
... | @@ -17,8 +17,8 @@ | ... | @@ -17,8 +17,8 @@ |
17 | package org.onosproject.yangutils.datamodel; | 17 | package org.onosproject.yangutils.datamodel; |
18 | 18 | ||
19 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 19 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
20 | -import org.onosproject.yangutils.parser.Parsable; | 20 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
21 | -import org.onosproject.yangutils.utils.YangConstructType; | 21 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
22 | 22 | ||
23 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; | 23 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; |
24 | 24 | ||
... | @@ -59,6 +59,8 @@ import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCol | ... | @@ -59,6 +59,8 @@ import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCol |
59 | public class YangRpc extends YangNode implements YangCommonInfo, Parsable, | 59 | public class YangRpc extends YangNode implements YangCommonInfo, Parsable, |
60 | CollisionDetector { | 60 | CollisionDetector { |
61 | 61 | ||
62 | + private static final long serialVersionUID = 806201613L; | ||
63 | + | ||
62 | /** | 64 | /** |
63 | * Name of the rpc. | 65 | * Name of the rpc. |
64 | */ | 66 | */ | ... | ... |
... | @@ -16,9 +16,11 @@ | ... | @@ -16,9 +16,11 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel; | 17 | package org.onosproject.yangutils.datamodel; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
20 | + | ||
19 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
20 | -import org.onosproject.yangutils.parser.Parsable; | 22 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
21 | -import org.onosproject.yangutils.utils.YangConstructType; | 23 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
22 | import org.onosproject.yangutils.datamodel.utils.builtindatatype.YangUint64; | 24 | import org.onosproject.yangutils.datamodel.utils.builtindatatype.YangUint64; |
23 | 25 | ||
24 | /*- | 26 | /*- |
... | @@ -31,7 +33,7 @@ import org.onosproject.yangutils.datamodel.utils.builtindatatype.YangUint64; | ... | @@ -31,7 +33,7 @@ import org.onosproject.yangutils.datamodel.utils.builtindatatype.YangUint64; |
31 | /** | 33 | /** |
32 | * Represents the restriction for string data type. | 34 | * Represents the restriction for string data type. |
33 | */ | 35 | */ |
34 | -public class YangStringRestriction implements YangDesc, YangReference, YangAppErrorInfo, Parsable { | 36 | +public class YangStringRestriction implements YangDesc, YangReference, YangAppErrorInfo, Parsable, Serializable { |
35 | 37 | ||
36 | /*- | 38 | /*- |
37 | * Reference RFC 6020. | 39 | * Reference RFC 6020. |
... | @@ -69,6 +71,8 @@ public class YangStringRestriction implements YangDesc, YangReference, YangAppEr | ... | @@ -69,6 +71,8 @@ public class YangStringRestriction implements YangDesc, YangReference, YangAppEr |
69 | * +---------------+---------+-------------+-----------------+ | 71 | * +---------------+---------+-------------+-----------------+ |
70 | */ | 72 | */ |
71 | 73 | ||
74 | + private static final long serialVersionUID = 8062016053L; | ||
75 | + | ||
72 | /** | 76 | /** |
73 | * Length restriction information. | 77 | * Length restriction information. |
74 | */ | 78 | */ |
... | @@ -242,11 +246,11 @@ public class YangStringRestriction implements YangDesc, YangReference, YangAppEr | ... | @@ -242,11 +246,11 @@ public class YangStringRestriction implements YangDesc, YangReference, YangAppEr |
242 | 246 | ||
243 | @Override | 247 | @Override |
244 | public void validateDataOnEntry() throws DataModelException { | 248 | public void validateDataOnEntry() throws DataModelException { |
245 | - //TODO: implement the method. | 249 | + // TODO: implement the method. |
246 | } | 250 | } |
247 | 251 | ||
248 | @Override | 252 | @Override |
249 | public void validateDataOnExit() throws DataModelException { | 253 | public void validateDataOnExit() throws DataModelException { |
250 | - //TODO: implement the method. | 254 | + // TODO: implement the method. |
251 | } | 255 | } |
252 | } | 256 | } | ... | ... |
... | @@ -19,9 +19,10 @@ import java.util.Iterator; | ... | @@ -19,9 +19,10 @@ import java.util.Iterator; |
19 | import java.util.LinkedList; | 19 | import java.util.LinkedList; |
20 | import java.util.List; | 20 | import java.util.List; |
21 | import java.util.Set; | 21 | import java.util.Set; |
22 | + | ||
22 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 23 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
23 | -import org.onosproject.yangutils.parser.Parsable; | 24 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
24 | -import org.onosproject.yangutils.utils.YangConstructType; | 25 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
25 | 26 | ||
26 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; | 27 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; |
27 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.linkInterFileReferences; | 28 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.linkInterFileReferences; |
... | @@ -83,6 +84,8 @@ public class YangSubModule | ... | @@ -83,6 +84,8 @@ public class YangSubModule |
83 | implements YangLeavesHolder, YangDesc, YangReference, Parsable, CollisionDetector, YangReferenceResolver, | 84 | implements YangLeavesHolder, YangDesc, YangReference, Parsable, CollisionDetector, YangReferenceResolver, |
84 | RpcNotificationContainer { | 85 | RpcNotificationContainer { |
85 | 86 | ||
87 | + private static final long serialVersionUID = 806201614L; | ||
88 | + | ||
86 | /** | 89 | /** |
87 | * Name of sub module. | 90 | * Name of sub module. |
88 | */ | 91 | */ | ... | ... |
... | @@ -16,11 +16,12 @@ | ... | @@ -16,11 +16,12 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel; | 17 | package org.onosproject.yangutils.datamodel; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
20 | + | ||
19 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
20 | -import org.onosproject.yangutils.linker.Resolvable; | 22 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
21 | -import org.onosproject.yangutils.linker.ResolvableStatus; | 23 | +import org.onosproject.yangutils.datamodel.utils.ResolvableStatus; |
22 | -import org.onosproject.yangutils.parser.Parsable; | 24 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
23 | -import org.onosproject.yangutils.utils.YangConstructType; | ||
24 | 25 | ||
25 | import static org.onosproject.yangutils.datamodel.YangDataTypes.DERIVED; | 26 | import static org.onosproject.yangutils.datamodel.YangDataTypes.DERIVED; |
26 | 27 | ||
... | @@ -54,7 +55,9 @@ import static org.onosproject.yangutils.datamodel.YangDataTypes.DERIVED; | ... | @@ -54,7 +55,9 @@ import static org.onosproject.yangutils.datamodel.YangDataTypes.DERIVED; |
54 | * @param <T> YANG data type info | 55 | * @param <T> YANG data type info |
55 | */ | 56 | */ |
56 | public class YangType<T> | 57 | public class YangType<T> |
57 | - implements Parsable, Resolvable { | 58 | + implements Parsable, Resolvable, Serializable { |
59 | + | ||
60 | + private static final long serialVersionUID = 8062016054L; | ||
58 | 61 | ||
59 | /** | 62 | /** |
60 | * YANG node identifier. | 63 | * YANG node identifier. | ... | ... |
... | @@ -17,9 +17,10 @@ package org.onosproject.yangutils.datamodel; | ... | @@ -17,9 +17,10 @@ package org.onosproject.yangutils.datamodel; |
17 | 17 | ||
18 | import java.util.LinkedList; | 18 | import java.util.LinkedList; |
19 | import java.util.List; | 19 | import java.util.List; |
20 | + | ||
20 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
21 | -import org.onosproject.yangutils.parser.Parsable; | 22 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
22 | -import org.onosproject.yangutils.utils.YangConstructType; | 23 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
23 | 24 | ||
24 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; | 25 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; |
25 | 26 | ||
... | @@ -58,6 +59,8 @@ import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCol | ... | @@ -58,6 +59,8 @@ import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCol |
58 | */ | 59 | */ |
59 | public class YangTypeDef extends YangNode implements YangCommonInfo, Parsable, YangTypeHolder, CollisionDetector { | 60 | public class YangTypeDef extends YangNode implements YangCommonInfo, Parsable, YangTypeHolder, CollisionDetector { |
60 | 61 | ||
62 | + private static final long serialVersionUID = 806201615L; | ||
63 | + | ||
61 | /** | 64 | /** |
62 | * Default value in string, needs to be converted to the target object, | 65 | * Default value in string, needs to be converted to the target object, |
63 | * based on the type. | 66 | * based on the type. | ... | ... |
... | @@ -18,9 +18,10 @@ package org.onosproject.yangutils.datamodel; | ... | @@ -18,9 +18,10 @@ package org.onosproject.yangutils.datamodel; |
18 | 18 | ||
19 | import java.util.LinkedList; | 19 | import java.util.LinkedList; |
20 | import java.util.List; | 20 | import java.util.List; |
21 | + | ||
21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 22 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
22 | -import org.onosproject.yangutils.parser.Parsable; | 23 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
23 | -import org.onosproject.yangutils.utils.YangConstructType; | 24 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
24 | 25 | ||
25 | /* | 26 | /* |
26 | * Reference RFC 6020. | 27 | * Reference RFC 6020. |
... | @@ -49,6 +50,8 @@ import org.onosproject.yangutils.utils.YangConstructType; | ... | @@ -49,6 +50,8 @@ import org.onosproject.yangutils.utils.YangConstructType; |
49 | */ | 50 | */ |
50 | public class YangUnion extends YangNode implements Parsable, YangTypeHolder { | 51 | public class YangUnion extends YangNode implements Parsable, YangTypeHolder { |
51 | 52 | ||
53 | + private static final long serialVersionUID = 806201616L; | ||
54 | + | ||
52 | // List of YANG type. | 55 | // List of YANG type. |
53 | private List<YangType<?>> typeList; | 56 | private List<YangType<?>> typeList; |
54 | 57 | ||
... | @@ -56,7 +59,7 @@ public class YangUnion extends YangNode implements Parsable, YangTypeHolder { | ... | @@ -56,7 +59,7 @@ public class YangUnion extends YangNode implements Parsable, YangTypeHolder { |
56 | private String name; | 59 | private String name; |
57 | 60 | ||
58 | // Current child union number. | 61 | // Current child union number. |
59 | - private int childUnionNumber; | 62 | + private transient int childUnionNumber; |
60 | 63 | ||
61 | /** | 64 | /** |
62 | * Creates a YANG union node. | 65 | * Creates a YANG union node. | ... | ... |
... | @@ -17,14 +17,14 @@ package org.onosproject.yangutils.datamodel; | ... | @@ -17,14 +17,14 @@ package org.onosproject.yangutils.datamodel; |
17 | 17 | ||
18 | import java.util.LinkedList; | 18 | import java.util.LinkedList; |
19 | import java.util.List; | 19 | import java.util.List; |
20 | + | ||
20 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
21 | -import org.onosproject.yangutils.linker.Resolvable; | 22 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
22 | -import org.onosproject.yangutils.linker.ResolvableStatus; | 23 | +import org.onosproject.yangutils.datamodel.utils.ResolvableStatus; |
23 | -import org.onosproject.yangutils.parser.Parsable; | 24 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
24 | -import org.onosproject.yangutils.utils.YangConstructType; | ||
25 | 25 | ||
26 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; | 26 | import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.detectCollidingChildUtil; |
27 | -import static org.onosproject.yangutils.translator.tojava.utils.JavaIdentifierSyntax.getParentNodeInGenCode; | 27 | +import static org.onosproject.yangutils.datamodel.utils.DataModelUtils.getParentNodeInGenCode; |
28 | 28 | ||
29 | /*- | 29 | /*- |
30 | * Reference RFC 6020. | 30 | * Reference RFC 6020. |
... | @@ -63,6 +63,8 @@ public class YangUses | ... | @@ -63,6 +63,8 @@ public class YangUses |
63 | extends YangNode | 63 | extends YangNode |
64 | implements YangCommonInfo, Parsable, Resolvable, CollisionDetector { | 64 | implements YangCommonInfo, Parsable, Resolvable, CollisionDetector { |
65 | 65 | ||
66 | + private static final long serialVersionUID = 806201617L; | ||
67 | + | ||
66 | /** | 68 | /** |
67 | * YANG node identifier. | 69 | * YANG node identifier. |
68 | */ | 70 | */ |
... | @@ -99,17 +101,17 @@ public class YangUses | ... | @@ -99,17 +101,17 @@ public class YangUses |
99 | /** | 101 | /** |
100 | * Effective list of nodes of grouping that needs to replicated at YANG uses. | 102 | * Effective list of nodes of grouping that needs to replicated at YANG uses. |
101 | */ | 103 | */ |
102 | - List<YangNode> resolvedGroupingNodes; | 104 | + private List<YangNode> resolvedGroupingNodes; |
103 | 105 | ||
104 | /** | 106 | /** |
105 | * Effective list of leaves of grouping that needs to replicated at YANG uses. | 107 | * Effective list of leaves of grouping that needs to replicated at YANG uses. |
106 | */ | 108 | */ |
107 | - List<List<YangLeaf>> resolvedGroupingLeaves; | 109 | + private List<List<YangLeaf>> resolvedGroupingLeaves; |
108 | 110 | ||
109 | /** | 111 | /** |
110 | * Effective list of leaf lists of grouping that needs to replicated at YANG uses. | 112 | * Effective list of leaf lists of grouping that needs to replicated at YANG uses. |
111 | */ | 113 | */ |
112 | - List<List<YangLeafList>> resolvedGroupingLeafLists; | 114 | + private List<List<YangLeafList>> resolvedGroupingLeafLists; |
113 | 115 | ||
114 | /** | 116 | /** |
115 | * Creates an YANG uses node. | 117 | * Creates an YANG uses node. |
... | @@ -313,17 +315,17 @@ public class YangUses | ... | @@ -313,17 +315,17 @@ public class YangUses |
313 | YangNode childInGrouping = referredGrouping.getChild(); | 315 | YangNode childInGrouping = referredGrouping.getChild(); |
314 | 316 | ||
315 | while (childInGrouping != null) { | 317 | while (childInGrouping != null) { |
316 | - if ((childInGrouping instanceof YangEnumeration) | 318 | + if (childInGrouping instanceof YangEnumeration |
317 | - || (childInGrouping instanceof YangUnion) | 319 | + || childInGrouping instanceof YangUnion |
318 | - || (childInGrouping instanceof YangTypeDef)) { | 320 | + || childInGrouping instanceof YangTypeDef) { |
319 | 321 | ||
320 | /* | 322 | /* |
321 | - * No need to copy the leaves, union / enum class, | 323 | + * No need to copy the leaves, union / enum class, as these will |
322 | - * as these will be generated in the scope of grouping | 324 | + * be generated in the scope of grouping |
323 | */ | 325 | */ |
324 | childInGrouping = childInGrouping.getNextSibling(); | 326 | childInGrouping = childInGrouping.getNextSibling(); |
325 | continue; | 327 | continue; |
326 | - } else if ((childInGrouping instanceof YangUses)) { | 328 | + } else if (childInGrouping instanceof YangUses) { |
327 | addResolvedUsesInfoOfGrouping((YangUses) childInGrouping, | 329 | addResolvedUsesInfoOfGrouping((YangUses) childInGrouping, |
328 | usesParentLeavesHolder); | 330 | usesParentLeavesHolder); |
329 | } else { | 331 | } else { |
... | @@ -342,18 +344,15 @@ public class YangUses | ... | @@ -342,18 +344,15 @@ public class YangUses |
342 | */ | 344 | */ |
343 | private void addResolvedUsesInfoOfGrouping(YangUses usesInGrouping, | 345 | private void addResolvedUsesInfoOfGrouping(YangUses usesInGrouping, |
344 | YangLeavesHolder usesHolder) throws DataModelException { | 346 | YangLeavesHolder usesHolder) throws DataModelException { |
345 | - for (YangNode usesResolvedNode : | 347 | + for (YangNode usesResolvedNode : usesInGrouping.getUsesResolvedNodeList()) { |
346 | - usesInGrouping.getUsesResolvedNodeList()) { | ||
347 | addNodeOfGrouping(usesResolvedNode); | 348 | addNodeOfGrouping(usesResolvedNode); |
348 | } | 349 | } |
349 | 350 | ||
350 | - for (List<YangLeaf> leavesList : | 351 | + for (List<YangLeaf> leavesList : usesInGrouping.getUsesResolvedLeavesList()) { |
351 | - usesInGrouping.getUsesResolvedLeavesList()) { | ||
352 | addLeavesOfGrouping(cloneLeavesList(leavesList, usesHolder)); | 352 | addLeavesOfGrouping(cloneLeavesList(leavesList, usesHolder)); |
353 | } | 353 | } |
354 | 354 | ||
355 | - for (List<YangLeafList> listOfLeafLists : | 355 | + for (List<YangLeafList> listOfLeafLists : usesInGrouping.getUsesResolvedListOfLeafList()) { |
356 | - usesInGrouping.getUsesResolvedListOfLeafList()) { | ||
357 | addListOfLeafListOfGrouping( | 356 | addListOfLeafListOfGrouping( |
358 | cloneListOfLeafList(listOfLeafLists, usesHolder)); | 357 | cloneListOfLeafList(listOfLeafLists, usesHolder)); |
359 | } | 358 | } |
... | @@ -369,7 +368,7 @@ public class YangUses | ... | @@ -369,7 +368,7 @@ public class YangUses |
369 | */ | 368 | */ |
370 | private List<YangLeaf> cloneLeavesList(List<YangLeaf> listOfLeaves, | 369 | private List<YangLeaf> cloneLeavesList(List<YangLeaf> listOfLeaves, |
371 | YangLeavesHolder usesParentNode) throws DataModelException { | 370 | YangLeavesHolder usesParentNode) throws DataModelException { |
372 | - if ((listOfLeaves == null) || listOfLeaves.size() == 0) { | 371 | + if (listOfLeaves == null || listOfLeaves.size() == 0) { |
373 | throw new DataModelException("No leaves to clone"); | 372 | throw new DataModelException("No leaves to clone"); |
374 | } | 373 | } |
375 | 374 | ||
... | @@ -400,7 +399,7 @@ public class YangUses | ... | @@ -400,7 +399,7 @@ public class YangUses |
400 | */ | 399 | */ |
401 | private List<YangLeafList> cloneListOfLeafList(List<YangLeafList> listOfLeafList, | 400 | private List<YangLeafList> cloneListOfLeafList(List<YangLeafList> listOfLeafList, |
402 | YangLeavesHolder usesParentNode) throws DataModelException { | 401 | YangLeavesHolder usesParentNode) throws DataModelException { |
403 | - if ((listOfLeafList == null) || listOfLeafList.size() == 0) { | 402 | + if (listOfLeafList == null || listOfLeafList.size() == 0) { |
404 | throw new DataModelException("No leaf lists to clone"); | 403 | throw new DataModelException("No leaf lists to clone"); |
405 | } | 404 | } |
406 | 405 | ||
... | @@ -422,7 +421,6 @@ public class YangUses | ... | @@ -422,7 +421,6 @@ public class YangUses |
422 | return newListOfLeafList; | 421 | return newListOfLeafList; |
423 | } | 422 | } |
424 | 423 | ||
425 | - | ||
426 | @Override | 424 | @Override |
427 | public ResolvableStatus getResolvableStatus() { | 425 | public ResolvableStatus getResolvableStatus() { |
428 | return resolvableStatus; | 426 | return resolvableStatus; |
... | @@ -449,7 +447,6 @@ public class YangUses | ... | @@ -449,7 +447,6 @@ public class YangUses |
449 | } | 447 | } |
450 | } | 448 | } |
451 | 449 | ||
452 | - | ||
453 | /** | 450 | /** |
454 | * Adds the node under grouping to the effective uses resolved info. | 451 | * Adds the node under grouping to the effective uses resolved info. |
455 | * | 452 | * | ... | ... |
... | @@ -18,6 +18,7 @@ package org.onosproject.yangutils.datamodel.utils; | ... | @@ -18,6 +18,7 @@ package org.onosproject.yangutils.datamodel.utils; |
18 | 18 | ||
19 | import java.util.List; | 19 | import java.util.List; |
20 | import java.util.Set; | 20 | import java.util.Set; |
21 | + | ||
21 | import org.onosproject.yangutils.datamodel.CollisionDetector; | 22 | import org.onosproject.yangutils.datamodel.CollisionDetector; |
22 | import org.onosproject.yangutils.datamodel.ResolvableType; | 23 | import org.onosproject.yangutils.datamodel.ResolvableType; |
23 | import org.onosproject.yangutils.datamodel.YangLeaf; | 24 | import org.onosproject.yangutils.datamodel.YangLeaf; |
... | @@ -29,8 +30,6 @@ import org.onosproject.yangutils.datamodel.YangResolutionInfo; | ... | @@ -29,8 +30,6 @@ import org.onosproject.yangutils.datamodel.YangResolutionInfo; |
29 | import org.onosproject.yangutils.datamodel.YangRpc; | 30 | import org.onosproject.yangutils.datamodel.YangRpc; |
30 | import org.onosproject.yangutils.datamodel.YangType; | 31 | import org.onosproject.yangutils.datamodel.YangType; |
31 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 32 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
32 | -import org.onosproject.yangutils.parser.Parsable; | ||
33 | -import org.onosproject.yangutils.utils.YangConstructType; | ||
34 | 33 | ||
35 | /** | 34 | /** |
36 | * Represents utilities for data model tree. | 35 | * Represents utilities for data model tree. |
... | @@ -196,8 +195,8 @@ public final class DataModelUtils { | ... | @@ -196,8 +195,8 @@ public final class DataModelUtils { |
196 | YangReferenceResolver dataModelRootNode) | 195 | YangReferenceResolver dataModelRootNode) |
197 | throws DataModelException { | 196 | throws DataModelException { |
198 | /* | 197 | /* |
199 | - * Run through the resolution list, find type/uses referring to | 198 | + * Run through the resolution list, find type/uses referring to inter |
200 | - * inter file typedef/grouping, ask for linking. | 199 | + * file typedef/grouping, ask for linking. |
201 | */ | 200 | */ |
202 | for (YangResolutionInfo resolutionInfo : resolutionList) { | 201 | for (YangResolutionInfo resolutionInfo : resolutionList) { |
203 | resolutionInfo.linkInterFile(dataModelRootNode); | 202 | resolutionInfo.linkInterFile(dataModelRootNode); |
... | @@ -240,4 +239,20 @@ public final class DataModelUtils { | ... | @@ -240,4 +239,20 @@ public final class DataModelUtils { |
240 | } | 239 | } |
241 | return null; | 240 | return null; |
242 | } | 241 | } |
242 | + | ||
243 | + /** | ||
244 | + * Returns the contained data model parent node. | ||
245 | + * | ||
246 | + * @param currentNode current node which parent contained node is required | ||
247 | + * @return parent node in which the current node is an attribute | ||
248 | + */ | ||
249 | + public static YangNode getParentNodeInGenCode(YangNode currentNode) { | ||
250 | + | ||
251 | + /* | ||
252 | + * TODO: recursive parent lookup to support choice/augment/uses. TODO: | ||
253 | + * need to check if this needs to be updated for | ||
254 | + * choice/case/augment/grouping | ||
255 | + */ | ||
256 | + return currentNode.getParent(); | ||
257 | + } | ||
243 | } | 258 | } | ... | ... |
... | @@ -14,10 +14,9 @@ | ... | @@ -14,10 +14,9 @@ |
14 | * limitations under the License. | 14 | * limitations under the License. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | -package org.onosproject.yangutils.parser; | 17 | +package org.onosproject.yangutils.datamodel.utils; |
18 | 18 | ||
19 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 19 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
20 | -import org.onosproject.yangutils.utils.YangConstructType; | ||
21 | 20 | ||
22 | /** | 21 | /** |
23 | * Abstraction of an entity which process the data of lexer's parse tree. | 22 | * Abstraction of an entity which process the data of lexer's parse tree. | ... | ... |
... | @@ -14,7 +14,7 @@ | ... | @@ -14,7 +14,7 @@ |
14 | * limitations under the License. | 14 | * limitations under the License. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | -package org.onosproject.yangutils.linker; | 17 | +package org.onosproject.yangutils.datamodel.utils; |
18 | 18 | ||
19 | /** | 19 | /** |
20 | * Represents the status of resolvable entity. | 20 | * Represents the status of resolvable entity. | ... | ... |
... | @@ -16,14 +16,6 @@ | ... | @@ -16,14 +16,6 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel.utils; | 17 | package org.onosproject.yangutils.datamodel.utils; |
18 | 18 | ||
19 | -import java.util.regex.Pattern; | ||
20 | -import org.onosproject.yangutils.datamodel.YangDataTypes; | ||
21 | -import org.onosproject.yangutils.datamodel.YangRangeInterval; | ||
22 | -import org.onosproject.yangutils.datamodel.YangRangeRestriction; | ||
23 | -import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | ||
24 | -import org.onosproject.yangutils.utils.YangConstructType; | ||
25 | -import org.onosproject.yangutils.datamodel.utils.builtindatatype.YangBuiltInDataTypeInfo; | ||
26 | - | ||
27 | import static org.onosproject.yangutils.datamodel.YangDataTypes.DECIMAL64; | 19 | import static org.onosproject.yangutils.datamodel.YangDataTypes.DECIMAL64; |
28 | import static org.onosproject.yangutils.datamodel.YangDataTypes.INT16; | 20 | import static org.onosproject.yangutils.datamodel.YangDataTypes.INT16; |
29 | import static org.onosproject.yangutils.datamodel.YangDataTypes.INT32; | 21 | import static org.onosproject.yangutils.datamodel.YangDataTypes.INT32; |
... | @@ -33,12 +25,18 @@ import static org.onosproject.yangutils.datamodel.YangDataTypes.UINT16; | ... | @@ -33,12 +25,18 @@ import static org.onosproject.yangutils.datamodel.YangDataTypes.UINT16; |
33 | import static org.onosproject.yangutils.datamodel.YangDataTypes.UINT32; | 25 | import static org.onosproject.yangutils.datamodel.YangDataTypes.UINT32; |
34 | import static org.onosproject.yangutils.datamodel.YangDataTypes.UINT64; | 26 | import static org.onosproject.yangutils.datamodel.YangDataTypes.UINT64; |
35 | import static org.onosproject.yangutils.datamodel.YangDataTypes.UINT8; | 27 | import static org.onosproject.yangutils.datamodel.YangDataTypes.UINT8; |
36 | -import static org.onosproject.yangutils.utils.UtilConstants.ADD; | 28 | +import static org.onosproject.yangutils.datamodel.utils.YangConstructType.LENGTH_DATA; |
37 | -import static org.onosproject.yangutils.utils.UtilConstants.EMPTY_STRING; | 29 | +import static org.onosproject.yangutils.datamodel.utils.YangConstructType.RANGE_DATA; |
38 | -import static org.onosproject.yangutils.utils.YangConstructType.LENGTH_DATA; | ||
39 | -import static org.onosproject.yangutils.utils.YangConstructType.RANGE_DATA; | ||
40 | import static org.onosproject.yangutils.datamodel.utils.builtindatatype.BuiltInTypeObjectFactory.getDataObjectFromString; | 30 | import static org.onosproject.yangutils.datamodel.utils.builtindatatype.BuiltInTypeObjectFactory.getDataObjectFromString; |
41 | 31 | ||
32 | +import java.util.regex.Pattern; | ||
33 | + | ||
34 | +import org.onosproject.yangutils.datamodel.YangDataTypes; | ||
35 | +import org.onosproject.yangutils.datamodel.YangRangeInterval; | ||
36 | +import org.onosproject.yangutils.datamodel.YangRangeRestriction; | ||
37 | +import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | ||
38 | +import org.onosproject.yangutils.datamodel.utils.builtindatatype.YangBuiltInDataTypeInfo; | ||
39 | + | ||
42 | /** | 40 | /** |
43 | * Represents restriction resolver which provide common utility used by parser | 41 | * Represents restriction resolver which provide common utility used by parser |
44 | * and during linking for restriction resolution. | 42 | * and during linking for restriction resolution. |
... | @@ -46,6 +44,8 @@ import static org.onosproject.yangutils.datamodel.utils.builtindatatype.BuiltInT | ... | @@ -46,6 +44,8 @@ import static org.onosproject.yangutils.datamodel.utils.builtindatatype.BuiltInT |
46 | public final class RestrictionResolver { | 44 | public final class RestrictionResolver { |
47 | 45 | ||
48 | private static final String PIPE = "|"; | 46 | private static final String PIPE = "|"; |
47 | + private static final String ADD = "+"; | ||
48 | + private static final String EMPTY_STRING = ""; | ||
49 | private static final String INTERVAL = ".."; | 49 | private static final String INTERVAL = ".."; |
50 | private static final int MAX_RANGE_BOUNDARY = 2; | 50 | private static final int MAX_RANGE_BOUNDARY = 2; |
51 | private static final int MIN_RANGE_BOUNDARY = 1; | 51 | private static final int MIN_RANGE_BOUNDARY = 1; |
... | @@ -238,7 +238,7 @@ public final class RestrictionResolver { | ... | @@ -238,7 +238,7 @@ public final class RestrictionResolver { |
238 | * @return true, if data type can have range restrictions, false otherwise | 238 | * @return true, if data type can have range restrictions, false otherwise |
239 | */ | 239 | */ |
240 | public static boolean isOfRangeRestrictedType(YangDataTypes dataType) { | 240 | public static boolean isOfRangeRestrictedType(YangDataTypes dataType) { |
241 | - return (dataType == INT8 | 241 | + return dataType == INT8 |
242 | || dataType == INT16 | 242 | || dataType == INT16 |
243 | || dataType == INT32 | 243 | || dataType == INT32 |
244 | || dataType == INT64 | 244 | || dataType == INT64 |
... | @@ -246,7 +246,7 @@ public final class RestrictionResolver { | ... | @@ -246,7 +246,7 @@ public final class RestrictionResolver { |
246 | || dataType == UINT16 | 246 | || dataType == UINT16 |
247 | || dataType == UINT32 | 247 | || dataType == UINT32 |
248 | || dataType == UINT64 | 248 | || dataType == UINT64 |
249 | - || dataType == DECIMAL64); | 249 | + || dataType == DECIMAL64; |
250 | } | 250 | } |
251 | 251 | ||
252 | /** | 252 | /** | ... | ... |
... | @@ -13,7 +13,7 @@ | ... | @@ -13,7 +13,7 @@ |
13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
14 | * limitations under the License. | 14 | * limitations under the License. |
15 | */ | 15 | */ |
16 | -package org.onosproject.yangutils.utils; | 16 | +package org.onosproject.yangutils.datamodel.utils; |
17 | 17 | ||
18 | /** | 18 | /** |
19 | * Represents ENUM to represent the type of data in parse tree. | 19 | * Represents ENUM to represent the type of data in parse tree. | ... | ... |
... | @@ -15,12 +15,16 @@ | ... | @@ -15,12 +15,16 @@ |
15 | */ | 15 | */ |
16 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; | 16 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; |
17 | 17 | ||
18 | +import java.io.Serializable; | ||
19 | + | ||
18 | import org.onosproject.yangutils.datamodel.YangDataTypes; | 20 | import org.onosproject.yangutils.datamodel.YangDataTypes; |
19 | 21 | ||
20 | /** | 22 | /** |
21 | * Factory to create an object of required type. | 23 | * Factory to create an object of required type. |
22 | */ | 24 | */ |
23 | -public final class BuiltInTypeObjectFactory { | 25 | +public final class BuiltInTypeObjectFactory implements Serializable { |
26 | + | ||
27 | + private static final long serialVersionUID = 8006201671L; | ||
24 | 28 | ||
25 | /** | 29 | /** |
26 | * Utility factory class, hence the object creation is forbidden. | 30 | * Utility factory class, hence the object creation is forbidden. | ... | ... |
... | @@ -16,13 +16,17 @@ | ... | @@ -16,13 +16,17 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; | 17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
19 | import java.util.Objects; | 20 | import java.util.Objects; |
21 | + | ||
20 | import com.google.common.base.MoreObjects; | 22 | import com.google.common.base.MoreObjects; |
21 | 23 | ||
22 | /** | 24 | /** |
23 | * Represents binary data type. | 25 | * Represents binary data type. |
24 | */ | 26 | */ |
25 | -public final class YangBinary { | 27 | +public final class YangBinary implements Serializable { |
28 | + | ||
29 | + private static final long serialVersionUID = 8006201670L; | ||
26 | 30 | ||
27 | private byte[] byteArray; | 31 | private byte[] byteArray; |
28 | 32 | ||
... | @@ -38,7 +42,7 @@ public final class YangBinary { | ... | @@ -38,7 +42,7 @@ public final class YangBinary { |
38 | * @param bytes byte array | 42 | * @param bytes byte array |
39 | */ | 43 | */ |
40 | public YangBinary(byte[] bytes) { | 44 | public YangBinary(byte[] bytes) { |
41 | - this.byteArray = bytes; | 45 | + byteArray = bytes; |
42 | } | 46 | } |
43 | 47 | ||
44 | /** | 48 | /** | ... | ... |
... | @@ -16,13 +16,17 @@ | ... | @@ -16,13 +16,17 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; | 17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
19 | import java.util.Objects; | 20 | import java.util.Objects; |
21 | + | ||
20 | import com.google.common.base.MoreObjects; | 22 | import com.google.common.base.MoreObjects; |
21 | 23 | ||
22 | /** | 24 | /** |
23 | * Represents bits data type. | 25 | * Represents bits data type. |
24 | */ | 26 | */ |
25 | -public class YangBits { | 27 | +public class YangBits implements Serializable { |
28 | + | ||
29 | + private static final long serialVersionUID = 8006201669L; | ||
26 | 30 | ||
27 | private byte[] byteArray; | 31 | private byte[] byteArray; |
28 | 32 | ||
... | @@ -38,7 +42,7 @@ public class YangBits { | ... | @@ -38,7 +42,7 @@ public class YangBits { |
38 | * @param bytes byte array | 42 | * @param bytes byte array |
39 | */ | 43 | */ |
40 | public YangBits(byte[] bytes) { | 44 | public YangBits(byte[] bytes) { |
41 | - this.byteArray = bytes; | 45 | + byteArray = bytes; |
42 | } | 46 | } |
43 | 47 | ||
44 | /** | 48 | /** | ... | ... |
... | @@ -16,13 +16,17 @@ | ... | @@ -16,13 +16,17 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; | 17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
19 | import java.util.Objects; | 20 | import java.util.Objects; |
21 | + | ||
20 | import com.google.common.base.MoreObjects; | 22 | import com.google.common.base.MoreObjects; |
21 | 23 | ||
22 | /** | 24 | /** |
23 | * Represents YANG decimal 64. | 25 | * Represents YANG decimal 64. |
24 | */ | 26 | */ |
25 | -public class YangDecimal64 { | 27 | +public class YangDecimal64 implements Serializable { |
28 | + | ||
29 | + private static final long serialVersionUID = 8006201668L; | ||
26 | 30 | ||
27 | private int fractionDigit; | 31 | private int fractionDigit; |
28 | 32 | ||
... | @@ -38,7 +42,7 @@ public class YangDecimal64 { | ... | @@ -38,7 +42,7 @@ public class YangDecimal64 { |
38 | * @param fractionDigit fraction digit | 42 | * @param fractionDigit fraction digit |
39 | */ | 43 | */ |
40 | public YangDecimal64(int fractionDigit) { | 44 | public YangDecimal64(int fractionDigit) { |
41 | - this.setFractionDigit(fractionDigit); | 45 | + setFractionDigit(fractionDigit); |
42 | } | 46 | } |
43 | 47 | ||
44 | /** | 48 | /** | ... | ... |
... | @@ -16,15 +16,18 @@ | ... | @@ -16,15 +16,18 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; | 17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; |
18 | 18 | ||
19 | -import org.onosproject.yangutils.datamodel.YangDataTypes; | 19 | +import java.io.Serializable; |
20 | 20 | ||
21 | +import org.onosproject.yangutils.datamodel.YangDataTypes; | ||
21 | 22 | ||
22 | /** | 23 | /** |
23 | * Handles the YANG's int16 data type processing. | 24 | * Handles the YANG's int16 data type processing. |
24 | * | 25 | * |
25 | * int16 represents integer values between -32768 and 32767, inclusively. | 26 | * int16 represents integer values between -32768 and 32767, inclusively. |
26 | */ | 27 | */ |
27 | -public class YangInt16 implements YangBuiltInDataTypeInfo<YangInt16> { | 28 | +public class YangInt16 implements YangBuiltInDataTypeInfo<YangInt16>, Serializable { |
29 | + | ||
30 | + private static final long serialVersionUID = 8006201667L; | ||
28 | 31 | ||
29 | /** | 32 | /** |
30 | * YANG's min keyword. | 33 | * YANG's min keyword. | ... | ... |
... | @@ -16,6 +16,8 @@ | ... | @@ -16,6 +16,8 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; | 17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
20 | + | ||
19 | import org.onosproject.yangutils.datamodel.YangDataTypes; | 21 | import org.onosproject.yangutils.datamodel.YangDataTypes; |
20 | 22 | ||
21 | /** | 23 | /** |
... | @@ -23,7 +25,9 @@ import org.onosproject.yangutils.datamodel.YangDataTypes; | ... | @@ -23,7 +25,9 @@ import org.onosproject.yangutils.datamodel.YangDataTypes; |
23 | * | 25 | * |
24 | * int32 represents integer values between -2147483648 and 2147483647, inclusively. | 26 | * int32 represents integer values between -2147483648 and 2147483647, inclusively. |
25 | */ | 27 | */ |
26 | -public class YangInt32 implements YangBuiltInDataTypeInfo<YangInt32> { | 28 | +public class YangInt32 implements YangBuiltInDataTypeInfo<YangInt32>, Serializable { |
29 | + | ||
30 | + private static final long serialVersionUID = 8006201666L; | ||
27 | 31 | ||
28 | /** | 32 | /** |
29 | * YANG's min keyword. | 33 | * YANG's min keyword. |
... | @@ -72,7 +76,6 @@ public class YangInt32 implements YangBuiltInDataTypeInfo<YangInt32> { | ... | @@ -72,7 +76,6 @@ public class YangInt32 implements YangBuiltInDataTypeInfo<YangInt32> { |
72 | } | 76 | } |
73 | } | 77 | } |
74 | 78 | ||
75 | - | ||
76 | /** | 79 | /** |
77 | * Returns YANG's int32 value. | 80 | * Returns YANG's int32 value. |
78 | * | 81 | * | ... | ... |
... | @@ -16,6 +16,8 @@ | ... | @@ -16,6 +16,8 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; | 17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
20 | + | ||
19 | import org.onosproject.yangutils.datamodel.YangDataTypes; | 21 | import org.onosproject.yangutils.datamodel.YangDataTypes; |
20 | 22 | ||
21 | /** | 23 | /** |
... | @@ -23,7 +25,9 @@ import org.onosproject.yangutils.datamodel.YangDataTypes; | ... | @@ -23,7 +25,9 @@ import org.onosproject.yangutils.datamodel.YangDataTypes; |
23 | * | 25 | * |
24 | * int8 represents integer values between -9223372036854775808 and 9223372036854775807, inclusively. | 26 | * int8 represents integer values between -9223372036854775808 and 9223372036854775807, inclusively. |
25 | */ | 27 | */ |
26 | -public class YangInt64 implements YangBuiltInDataTypeInfo<YangInt64> { | 28 | +public class YangInt64 implements YangBuiltInDataTypeInfo<YangInt64>, Serializable { |
29 | + | ||
30 | + private static final long serialVersionUID = 8006201665L; | ||
27 | 31 | ||
28 | /** | 32 | /** |
29 | * YANG's min keyword. | 33 | * YANG's min keyword. |
... | @@ -72,7 +76,6 @@ public class YangInt64 implements YangBuiltInDataTypeInfo<YangInt64> { | ... | @@ -72,7 +76,6 @@ public class YangInt64 implements YangBuiltInDataTypeInfo<YangInt64> { |
72 | } | 76 | } |
73 | } | 77 | } |
74 | 78 | ||
75 | - | ||
76 | /** | 79 | /** |
77 | * Returns YANG's int64 value. | 80 | * Returns YANG's int64 value. |
78 | * | 81 | * | ... | ... |
... | @@ -16,6 +16,8 @@ | ... | @@ -16,6 +16,8 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; | 17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
20 | + | ||
19 | import org.onosproject.yangutils.datamodel.YangDataTypes; | 21 | import org.onosproject.yangutils.datamodel.YangDataTypes; |
20 | 22 | ||
21 | /** | 23 | /** |
... | @@ -23,7 +25,9 @@ import org.onosproject.yangutils.datamodel.YangDataTypes; | ... | @@ -23,7 +25,9 @@ import org.onosproject.yangutils.datamodel.YangDataTypes; |
23 | * | 25 | * |
24 | * int8 represents integer values between -128 and 127, inclusively. | 26 | * int8 represents integer values between -128 and 127, inclusively. |
25 | */ | 27 | */ |
26 | -public class YangInt8 implements YangBuiltInDataTypeInfo<YangInt8> { | 28 | +public class YangInt8 implements YangBuiltInDataTypeInfo<YangInt8>, Serializable { |
29 | + | ||
30 | + private static final long serialVersionUID = 8006201664L; | ||
27 | 31 | ||
28 | /** | 32 | /** |
29 | * YANG's min keyword. | 33 | * YANG's min keyword. | ... | ... |
... | @@ -16,6 +16,8 @@ | ... | @@ -16,6 +16,8 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; | 17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
20 | + | ||
19 | import org.onosproject.yangutils.datamodel.YangDataTypes; | 21 | import org.onosproject.yangutils.datamodel.YangDataTypes; |
20 | 22 | ||
21 | /** | 23 | /** |
... | @@ -23,7 +25,9 @@ import org.onosproject.yangutils.datamodel.YangDataTypes; | ... | @@ -23,7 +25,9 @@ import org.onosproject.yangutils.datamodel.YangDataTypes; |
23 | * | 25 | * |
24 | * Uint16 represents integer values between 0 and 65535, inclusively. | 26 | * Uint16 represents integer values between 0 and 65535, inclusively. |
25 | */ | 27 | */ |
26 | -public class YangUint16 implements YangBuiltInDataTypeInfo<YangUint16> { | 28 | +public class YangUint16 implements YangBuiltInDataTypeInfo<YangUint16>, Serializable { |
29 | + | ||
30 | + private static final long serialVersionUID = 8006201663L; | ||
27 | 31 | ||
28 | /** | 32 | /** |
29 | * YANG's min keyword. | 33 | * YANG's min keyword. |
... | @@ -100,4 +104,3 @@ public class YangUint16 implements YangBuiltInDataTypeInfo<YangUint16> { | ... | @@ -100,4 +104,3 @@ public class YangUint16 implements YangBuiltInDataTypeInfo<YangUint16> { |
100 | } | 104 | } |
101 | 105 | ||
102 | } | 106 | } |
103 | - | ... | ... |
... | @@ -16,6 +16,8 @@ | ... | @@ -16,6 +16,8 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; | 17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
20 | + | ||
19 | import org.onosproject.yangutils.datamodel.YangDataTypes; | 21 | import org.onosproject.yangutils.datamodel.YangDataTypes; |
20 | 22 | ||
21 | /** | 23 | /** |
... | @@ -23,7 +25,9 @@ import org.onosproject.yangutils.datamodel.YangDataTypes; | ... | @@ -23,7 +25,9 @@ import org.onosproject.yangutils.datamodel.YangDataTypes; |
23 | * | 25 | * |
24 | * Uint32 represents integer values between 0 and 4294967295, inclusively. | 26 | * Uint32 represents integer values between 0 and 4294967295, inclusively. |
25 | */ | 27 | */ |
26 | -public class YangUint32 implements YangBuiltInDataTypeInfo<YangUint32> { | 28 | +public class YangUint32 implements YangBuiltInDataTypeInfo<YangUint32>, Serializable { |
29 | + | ||
30 | + private static final long serialVersionUID = 8006201662L; | ||
27 | 31 | ||
28 | private static final String MIN_KEYWORD = "min"; | 32 | private static final String MIN_KEYWORD = "min"; |
29 | private static final String MAX_KEYWORD = "max"; | 33 | private static final String MAX_KEYWORD = "max"; | ... | ... |
... | @@ -16,8 +16,10 @@ | ... | @@ -16,8 +16,10 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; | 17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
19 | import java.math.BigInteger; | 20 | import java.math.BigInteger; |
20 | import java.util.regex.Pattern; | 21 | import java.util.regex.Pattern; |
22 | + | ||
21 | import org.onosproject.yangutils.datamodel.YangDataTypes; | 23 | import org.onosproject.yangutils.datamodel.YangDataTypes; |
22 | 24 | ||
23 | /** | 25 | /** |
... | @@ -25,7 +27,9 @@ import org.onosproject.yangutils.datamodel.YangDataTypes; | ... | @@ -25,7 +27,9 @@ import org.onosproject.yangutils.datamodel.YangDataTypes; |
25 | * | 27 | * |
26 | * Uint64 represents integer values between 0 and 18446744073709551615, inclusively. | 28 | * Uint64 represents integer values between 0 and 18446744073709551615, inclusively. |
27 | */ | 29 | */ |
28 | -public class YangUint64 implements YangBuiltInDataTypeInfo<YangUint64> { | 30 | +public class YangUint64 implements YangBuiltInDataTypeInfo<YangUint64>, Serializable { |
31 | + | ||
32 | + private static final long serialVersionUID = 8006201661L; | ||
29 | 33 | ||
30 | /** | 34 | /** |
31 | * YANG's min keyword. | 35 | * YANG's min keyword. | ... | ... |
... | @@ -16,6 +16,8 @@ | ... | @@ -16,6 +16,8 @@ |
16 | 16 | ||
17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; | 17 | package org.onosproject.yangutils.datamodel.utils.builtindatatype; |
18 | 18 | ||
19 | +import java.io.Serializable; | ||
20 | + | ||
19 | import org.onosproject.yangutils.datamodel.YangDataTypes; | 21 | import org.onosproject.yangutils.datamodel.YangDataTypes; |
20 | 22 | ||
21 | /** | 23 | /** |
... | @@ -23,7 +25,9 @@ import org.onosproject.yangutils.datamodel.YangDataTypes; | ... | @@ -23,7 +25,9 @@ import org.onosproject.yangutils.datamodel.YangDataTypes; |
23 | * | 25 | * |
24 | * Uint8 represents integer values between 0 and 255, inclusively. | 26 | * Uint8 represents integer values between 0 and 255, inclusively. |
25 | */ | 27 | */ |
26 | -public class YangUint8 implements YangBuiltInDataTypeInfo<YangUint8> { | 28 | +public class YangUint8 implements YangBuiltInDataTypeInfo<YangUint8>, Serializable { |
29 | + | ||
30 | + private static final long serialVersionUID = 8006201660L; | ||
27 | 31 | ||
28 | /** | 32 | /** |
29 | * YANG's min keyword. | 33 | * YANG's min keyword. | ... | ... |
utils/yangutils/plugin/pom.xml
0 → 100644
1 | +<!-- | ||
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 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
17 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
18 | + <modelVersion>4.0.0</modelVersion> | ||
19 | + | ||
20 | + <parent> | ||
21 | + <groupId>org.onosproject</groupId> | ||
22 | + <artifactId>onos-yangutils</artifactId> | ||
23 | + <version>1.7.0-SNAPSHOT</version> | ||
24 | + <relativePath>../pom.xml</relativePath> | ||
25 | + </parent> | ||
26 | + | ||
27 | + <artifactId>yangutils-maven-plugin</artifactId> | ||
28 | + <version>1.0.0-SNAPSHOT</version> | ||
29 | + <name>onos-yang-utils-plugin</name> | ||
30 | + <packaging>maven-plugin</packaging> | ||
31 | + | ||
32 | + <properties> | ||
33 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
34 | + </properties> | ||
35 | + | ||
36 | + <dependencies> | ||
37 | + <dependency> | ||
38 | + <groupId>org.onosproject</groupId> | ||
39 | + <artifactId>yangutils-datamodel</artifactId> | ||
40 | + <version>1.7.0-SNAPSHOT</version> | ||
41 | + </dependency> | ||
42 | + <dependency> | ||
43 | + <groupId>org.apache.maven</groupId> | ||
44 | + <artifactId>maven-core</artifactId> | ||
45 | + <version>3.3.9</version> | ||
46 | + </dependency> | ||
47 | + <dependency> | ||
48 | + <groupId>org.apache.maven</groupId> | ||
49 | + <artifactId>maven-plugin-api</artifactId> | ||
50 | + <version>3.3.9</version> | ||
51 | + </dependency> | ||
52 | + <dependency> | ||
53 | + <groupId>org.apache.maven.plugin-tools</groupId> | ||
54 | + <artifactId>maven-plugin-annotations</artifactId> | ||
55 | + <version>3.4</version> | ||
56 | + <scope>provided</scope> | ||
57 | + </dependency> | ||
58 | + <dependency> | ||
59 | + <groupId>org.apache.felix</groupId> | ||
60 | + <artifactId>maven-scr-plugin</artifactId> | ||
61 | + <version>1.21.0</version> | ||
62 | + <scope>compile</scope> | ||
63 | + </dependency> | ||
64 | + <dependency> | ||
65 | + <groupId>org.apache.maven</groupId> | ||
66 | + <artifactId>maven-artifact</artifactId> | ||
67 | + <version>3.3.9</version> | ||
68 | + </dependency> | ||
69 | + <dependency> | ||
70 | + <groupId>org.apache.maven</groupId> | ||
71 | + <artifactId>maven-project</artifactId> | ||
72 | + <version>3.0-alpha-2</version> | ||
73 | + </dependency> | ||
74 | + <dependency> | ||
75 | + <groupId>org.apache.maven</groupId> | ||
76 | + <artifactId>maven-model</artifactId> | ||
77 | + <version>3.3.9</version> | ||
78 | + </dependency> | ||
79 | + <dependency> | ||
80 | + <groupId>junit</groupId> | ||
81 | + <artifactId>junit</artifactId> | ||
82 | + <version>4.12</version> | ||
83 | + <scope>test</scope> | ||
84 | + </dependency> | ||
85 | + <dependency> | ||
86 | + <groupId>org.sonatype.plexus</groupId> | ||
87 | + <artifactId>plexus-build-api</artifactId> | ||
88 | + <version>0.0.7</version> | ||
89 | + <scope>provided</scope> | ||
90 | + </dependency> | ||
91 | + <dependency> | ||
92 | + <groupId>commons-io</groupId> | ||
93 | + <artifactId>commons-io</artifactId> | ||
94 | + <version>2.4</version> | ||
95 | + </dependency> | ||
96 | + | ||
97 | + <dependency> | ||
98 | + <groupId>org.hamcrest</groupId> | ||
99 | + <artifactId>hamcrest-all</artifactId> | ||
100 | + <version>1.3</version> | ||
101 | + </dependency> | ||
102 | + | ||
103 | + <dependency> | ||
104 | + <groupId>org.onosproject</groupId> | ||
105 | + <artifactId>onlab-junit</artifactId> | ||
106 | + <version>1.7.0-SNAPSHOT</version> | ||
107 | + <scope>test</scope> | ||
108 | + </dependency> | ||
109 | + <dependency> | ||
110 | + <groupId>org.antlr</groupId> | ||
111 | + <artifactId>antlr4-runtime</artifactId> | ||
112 | + <version>4.5.3</version> | ||
113 | + </dependency> | ||
114 | + <dependency> | ||
115 | + <groupId>org.codehaus.mojo</groupId> | ||
116 | + <artifactId>build-helper-maven-plugin</artifactId> | ||
117 | + <version>1.10</version> | ||
118 | + </dependency> | ||
119 | + </dependencies> | ||
120 | + | ||
121 | + <build> | ||
122 | + <plugins> | ||
123 | + <plugin> | ||
124 | + <groupId>org.antlr</groupId> | ||
125 | + <artifactId>antlr4-maven-plugin</artifactId> | ||
126 | + <version>4.5</version> | ||
127 | + <executions> | ||
128 | + <execution> | ||
129 | + <phase>generate-sources</phase> | ||
130 | + <goals> | ||
131 | + <goal>antlr4</goal> | ||
132 | + </goals> | ||
133 | + </execution> | ||
134 | + </executions> | ||
135 | + <configuration> | ||
136 | + <sourceDirectory>src/main/resources</sourceDirectory> | ||
137 | + <outputDirectory>target/generated-sources/org/onosproject/yangutils/parser/antlrgencode</outputDirectory> | ||
138 | + <visitor>false</visitor> | ||
139 | + <listener>true</listener> | ||
140 | + </configuration> | ||
141 | + </plugin> | ||
142 | + <plugin> | ||
143 | + <artifactId>maven-clean-plugin</artifactId> | ||
144 | + <version>3.0.0</version> | ||
145 | + <executions> | ||
146 | + <execution> | ||
147 | + <id>Deleting auto-generated listener interfaces</id> | ||
148 | + <phase>generate-sources</phase> | ||
149 | + <goals> | ||
150 | + <goal>clean</goal> | ||
151 | + </goals> | ||
152 | + </execution> | ||
153 | + </executions> | ||
154 | + <configuration> | ||
155 | + <excludeDefaultDirectories>true</excludeDefaultDirectories> | ||
156 | + <filesets> | ||
157 | + <fileset> | ||
158 | + <directory>target</directory> | ||
159 | + <followSymlinks>false</followSymlinks> | ||
160 | + <useDefaultExcludes>true</useDefaultExcludes> | ||
161 | + <excludes> | ||
162 | + <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.java</exclude> | ||
163 | + <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYang.tokens</exclude> | ||
164 | + <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangParser.java</exclude> | ||
165 | + <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/GeneratedYangLexer.tokens</exclude> | ||
166 | + <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.java</exclude> | ||
167 | + <exclude>**/generated-sources/org/onosproject/yangutils/parser/antlrgencode/YangLexer.tokens</exclude> | ||
168 | + </excludes> | ||
169 | + </fileset> | ||
170 | + </filesets> | ||
171 | + <verbose>true</verbose> | ||
172 | + </configuration> | ||
173 | + </plugin> | ||
174 | + <plugin> | ||
175 | + <groupId>org.codehaus.mojo</groupId> | ||
176 | + <artifactId>build-helper-maven-plugin</artifactId> | ||
177 | + <version>1.10</version> | ||
178 | + <executions> | ||
179 | + <execution> | ||
180 | + <id>add-source</id> | ||
181 | + <phase>generate-sources</phase> | ||
182 | + <goals> | ||
183 | + <goal>add-source</goal> | ||
184 | + </goals> | ||
185 | + <configuration> | ||
186 | + <sources> | ||
187 | + <source>target/generated-sources/org/onosproject/yangutils/parser/antlrgencode</source> | ||
188 | + </sources> | ||
189 | + </configuration> | ||
190 | + </execution> | ||
191 | + </executions> | ||
192 | + </plugin> | ||
193 | + <plugin> | ||
194 | + <groupId>org.apache.felix</groupId> | ||
195 | + <artifactId>maven-bundle-plugin</artifactId> | ||
196 | + <extensions>true</extensions> | ||
197 | + <configuration> | ||
198 | + <instructions> | ||
199 | + <Export-Package> | ||
200 | + org.onosproject.yangutils.parser.* | ||
201 | + </Export-Package> | ||
202 | + </instructions> | ||
203 | + </configuration> | ||
204 | + </plugin> | ||
205 | + <plugin> | ||
206 | + <groupId>org.apache.maven.plugins</groupId> | ||
207 | + <artifactId>maven-plugin-plugin</artifactId> | ||
208 | + <version>3.4</version> | ||
209 | + <configuration> | ||
210 | + <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound> | ||
211 | + </configuration> | ||
212 | + <executions> | ||
213 | + <execution> | ||
214 | + <phase>generate-sources</phase> | ||
215 | + <goals> | ||
216 | + <goal>descriptor</goal> | ||
217 | + </goals> | ||
218 | + </execution> | ||
219 | + </executions> | ||
220 | + </plugin> | ||
221 | + </plugins> | ||
222 | + </build> | ||
223 | + | ||
224 | +</project> |
... | @@ -15,6 +15,8 @@ | ... | @@ -15,6 +15,8 @@ |
15 | */ | 15 | */ |
16 | package org.onosproject.yangutils.linker.impl; | 16 | package org.onosproject.yangutils.linker.impl; |
17 | 17 | ||
18 | +import java.io.Serializable; | ||
19 | + | ||
18 | import org.onosproject.yangutils.datamodel.YangEntityToResolveInfo; | 20 | import org.onosproject.yangutils.datamodel.YangEntityToResolveInfo; |
19 | import org.onosproject.yangutils.datamodel.YangNode; | 21 | import org.onosproject.yangutils.datamodel.YangNode; |
20 | import org.onosproject.yangutils.datamodel.YangType; | 22 | import org.onosproject.yangutils.datamodel.YangType; |
... | @@ -26,7 +28,9 @@ import org.onosproject.yangutils.linker.exceptions.LinkerException; | ... | @@ -26,7 +28,9 @@ import org.onosproject.yangutils.linker.exceptions.LinkerException; |
26 | * | 28 | * |
27 | * @param <T> type of entity being resolved, uses / grouping | 29 | * @param <T> type of entity being resolved, uses / grouping |
28 | */ | 30 | */ |
29 | -public class YangEntityToResolveInfoImpl<T> implements YangEntityToResolveInfo<T> { | 31 | +public class YangEntityToResolveInfoImpl<T> implements YangEntityToResolveInfo<T>, Serializable { |
32 | + | ||
33 | + private static final long serialVersionUID = 806201659L; | ||
30 | 34 | ||
31 | // Parsable node for which resolution is to be performed. | 35 | // Parsable node for which resolution is to be performed. |
32 | private T entityToResolve; | 36 | private T entityToResolve; | ... | ... |
This diff is collapsed. Click to expand it.
... | @@ -22,7 +22,8 @@ import org.antlr.v4.runtime.ParserRuleContext; | ... | @@ -22,7 +22,8 @@ import org.antlr.v4.runtime.ParserRuleContext; |
22 | import org.antlr.v4.runtime.tree.ErrorNode; | 22 | import org.antlr.v4.runtime.tree.ErrorNode; |
23 | import org.antlr.v4.runtime.tree.TerminalNode; | 23 | import org.antlr.v4.runtime.tree.TerminalNode; |
24 | import org.onosproject.yangutils.datamodel.YangNode; | 24 | import org.onosproject.yangutils.datamodel.YangNode; |
25 | -import org.onosproject.yangutils.parser.Parsable; | 25 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
26 | +import org.onosproject.yangutils.datamodel.utils.YangConstructType; | ||
26 | import org.onosproject.yangutils.parser.antlrgencode.GeneratedYangListener; | 27 | import org.onosproject.yangutils.parser.antlrgencode.GeneratedYangListener; |
27 | import org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser; | 28 | import org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser; |
28 | import org.onosproject.yangutils.parser.impl.listeners.AugmentListener; | 29 | import org.onosproject.yangutils.parser.impl.listeners.AugmentListener; |
... | @@ -75,7 +76,6 @@ import org.onosproject.yangutils.parser.impl.listeners.UnitsListener; | ... | @@ -75,7 +76,6 @@ import org.onosproject.yangutils.parser.impl.listeners.UnitsListener; |
75 | import org.onosproject.yangutils.parser.impl.listeners.UsesListener; | 76 | import org.onosproject.yangutils.parser.impl.listeners.UsesListener; |
76 | import org.onosproject.yangutils.parser.impl.listeners.ValueListener; | 77 | import org.onosproject.yangutils.parser.impl.listeners.ValueListener; |
77 | import org.onosproject.yangutils.parser.impl.listeners.VersionListener; | 78 | import org.onosproject.yangutils.parser.impl.listeners.VersionListener; |
78 | -import org.onosproject.yangutils.utils.YangConstructType; | ||
79 | 79 | ||
80 | import static org.onosproject.yangutils.utils.UtilConstants.UNSUPPORTED_YANG_CONSTRUCT; | 80 | import static org.onosproject.yangutils.utils.UtilConstants.UNSUPPORTED_YANG_CONSTRUCT; |
81 | import static org.onosproject.yangutils.utils.UtilConstants.CURRENTLY_UNSUPPORTED; | 81 | import static org.onosproject.yangutils.utils.UtilConstants.CURRENTLY_UNSUPPORTED; | ... | ... |
... | @@ -25,13 +25,19 @@ import org.onosproject.yangutils.datamodel.YangNodeIdentifier; | ... | @@ -25,13 +25,19 @@ import org.onosproject.yangutils.datamodel.YangNodeIdentifier; |
25 | import org.onosproject.yangutils.datamodel.YangSubModule; | 25 | import org.onosproject.yangutils.datamodel.YangSubModule; |
26 | import org.onosproject.yangutils.datamodel.YangUses; | 26 | import org.onosproject.yangutils.datamodel.YangUses; |
27 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; | 27 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
28 | -import org.onosproject.yangutils.parser.Parsable; | 28 | +import org.onosproject.yangutils.datamodel.utils.Parsable; |
29 | import org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser; | 29 | import org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser; |
30 | import org.onosproject.yangutils.parser.exceptions.ParserException; | 30 | import org.onosproject.yangutils.parser.exceptions.ParserException; |
31 | import org.onosproject.yangutils.parser.impl.TreeWalkListener; | 31 | import org.onosproject.yangutils.parser.impl.TreeWalkListener; |
32 | 32 | ||
33 | import static org.onosproject.yangutils.datamodel.utils.GeneratedLanguage.JAVA_GENERATION; | 33 | import static org.onosproject.yangutils.datamodel.utils.GeneratedLanguage.JAVA_GENERATION; |
34 | -import static org.onosproject.yangutils.datamodel.utils.YangDataModelFactory.getYangAugmentNode; | 34 | +import static org.onosproject.yangutils.datamodel.utils.YangConstructType.AUGMENT_DATA; |
35 | +import static org.onosproject.yangutils.datamodel.utils.YangConstructType.CASE_DATA; | ||
36 | +import static org.onosproject.yangutils.datamodel.utils.YangConstructType.DATA_DEF_DATA; | ||
37 | +import static org.onosproject.yangutils.datamodel.utils.YangConstructType.DESCRIPTION_DATA; | ||
38 | +import static org.onosproject.yangutils.datamodel.utils.YangConstructType.REFERENCE_DATA; | ||
39 | +import static org.onosproject.yangutils.datamodel.utils.YangConstructType.STATUS_DATA; | ||
40 | +import static org.onosproject.yangutils.datamodel.utils.YangConstructType.WHEN_DATA; | ||
35 | import static org.onosproject.yangutils.parser.impl.parserutils.AugmentListenerUtil.generateNameForAugmentNode; | 41 | import static org.onosproject.yangutils.parser.impl.parserutils.AugmentListenerUtil.generateNameForAugmentNode; |
36 | import static org.onosproject.yangutils.parser.impl.parserutils.AugmentListenerUtil.getParentsPrefix; | 42 | import static org.onosproject.yangutils.parser.impl.parserutils.AugmentListenerUtil.getParentsPrefix; |
37 | import static org.onosproject.yangutils.parser.impl.parserutils.AugmentListenerUtil.parserException; | 43 | import static org.onosproject.yangutils.parser.impl.parserutils.AugmentListenerUtil.parserException; |
... | @@ -51,13 +57,7 @@ import static org.onosproject.yangutils.parser.impl.parserutils.ListenerUtil.get | ... | @@ -51,13 +57,7 @@ import static org.onosproject.yangutils.parser.impl.parserutils.ListenerUtil.get |
51 | import static org.onosproject.yangutils.parser.impl.parserutils.ListenerValidation.checkStackIsNotEmpty; | 57 | import static org.onosproject.yangutils.parser.impl.parserutils.ListenerValidation.checkStackIsNotEmpty; |
52 | import static org.onosproject.yangutils.parser.impl.parserutils.ListenerValidation.validateCardinalityMaxOne; | 58 | import static org.onosproject.yangutils.parser.impl.parserutils.ListenerValidation.validateCardinalityMaxOne; |
53 | import static org.onosproject.yangutils.parser.impl.parserutils.ListenerValidation.validateMutuallyExclusiveChilds; | 59 | import static org.onosproject.yangutils.parser.impl.parserutils.ListenerValidation.validateMutuallyExclusiveChilds; |
54 | -import static org.onosproject.yangutils.utils.YangConstructType.AUGMENT_DATA; | 60 | +import static org.onosproject.yangutils.translator.tojava.YangDataModelFactory.getYangAugmentNode; |
55 | -import static org.onosproject.yangutils.utils.YangConstructType.CASE_DATA; | ||
56 | -import static org.onosproject.yangutils.utils.YangConstructType.DATA_DEF_DATA; | ||
57 | -import static org.onosproject.yangutils.utils.YangConstructType.DESCRIPTION_DATA; | ||
58 | -import static org.onosproject.yangutils.utils.YangConstructType.REFERENCE_DATA; | ||
59 | -import static org.onosproject.yangutils.utils.YangConstructType.STATUS_DATA; | ||
60 | -import static org.onosproject.yangutils.utils.YangConstructType.WHEN_DATA; | ||
61 | 61 | ||
62 | /* | 62 | /* |
63 | * Reference: RFC6020 and YANG ANTLR Grammar | 63 | * Reference: RFC6020 and YANG ANTLR Grammar | ... | ... |
... | @@ -23,6 +23,7 @@ import org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser; | ... | @@ -23,6 +23,7 @@ import org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser; |
23 | import org.onosproject.yangutils.parser.exceptions.ParserException; | 23 | import org.onosproject.yangutils.parser.exceptions.ParserException; |
24 | import org.onosproject.yangutils.parser.impl.TreeWalkListener; | 24 | import org.onosproject.yangutils.parser.impl.TreeWalkListener; |
25 | 25 | ||
26 | +import static org.onosproject.yangutils.datamodel.utils.YangConstructType.YANGBASE_DATA; | ||
26 | import static org.onosproject.yangutils.parser.impl.parserutils.ListenerErrorLocation.ENTRY; | 27 | import static org.onosproject.yangutils.parser.impl.parserutils.ListenerErrorLocation.ENTRY; |
27 | import static org.onosproject.yangutils.parser.impl.parserutils.ListenerErrorLocation.EXIT; | 28 | import static org.onosproject.yangutils.parser.impl.parserutils.ListenerErrorLocation.EXIT; |
28 | import static org.onosproject.yangutils.parser.impl.parserutils.ListenerErrorMessageConstruction.constructListenerErrorMessage; | 29 | import static org.onosproject.yangutils.parser.impl.parserutils.ListenerErrorMessageConstruction.constructListenerErrorMessage; |
... | @@ -31,7 +32,6 @@ import static org.onosproject.yangutils.parser.impl.parserutils.ListenerErrorTyp | ... | @@ -31,7 +32,6 @@ import static org.onosproject.yangutils.parser.impl.parserutils.ListenerErrorTyp |
31 | import static org.onosproject.yangutils.parser.impl.parserutils.ListenerErrorType.MISSING_HOLDER; | 32 | import static org.onosproject.yangutils.parser.impl.parserutils.ListenerErrorType.MISSING_HOLDER; |
32 | import static org.onosproject.yangutils.parser.impl.parserutils.ListenerValidation.checkStackIsEmpty; | 33 | import static org.onosproject.yangutils.parser.impl.parserutils.ListenerValidation.checkStackIsEmpty; |
33 | import static org.onosproject.yangutils.parser.impl.parserutils.ListenerValidation.checkStackIsNotEmpty; | 34 | import static org.onosproject.yangutils.parser.impl.parserutils.ListenerValidation.checkStackIsNotEmpty; |
34 | -import static org.onosproject.yangutils.utils.YangConstructType.YANGBASE_DATA; | ||
35 | 35 | ||
36 | /* | 36 | /* |
37 | * Reference: RFC6020 and YANG ANTLR Grammar | 37 | * Reference: RFC6020 and YANG ANTLR Grammar | ... | ... |
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/main/java/org/onosproject/yangutils/utils/io/impl/CopyrightHeader.java
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/main/java/org/onosproject/yangutils/utils/io/impl/YangFileScanner.java
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/java/org/onosproject/yangutils/ietfyang/IetfYangFileTest.java
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/java/org/onosproject/yangutils/linker/InterJarLinkingTest.java
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/java/org/onosproject/yangutils/parser/impl/TreeWalkListenerTest.java
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/java/org/onosproject/yangutils/utils/UtilConstantsTest.java
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/java/org/onosproject/yangutils/utils/io/impl/FileSystemUtilTest.java
0 → 100644
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/java/org/onosproject/yangutils/utils/io/impl/JavaDocGenTest.java
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/java/org/onosproject/yangutils/utils/io/impl/YangIoUtilsTest.java
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/MultiplePatternAndLengthRestrictionInValid.yang
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/MultiplePatternRestrictionInRefTypeAndTypedef.yang
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/RangeRestrictionInRefTypeAndTypedefInValid.yang
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/SelfFileLinkingTypedefAtMiddleLevelAfterParentHolder.yang
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/SelfFileLinkingTypedefAtRootTypeTwoLevelInHierarchy.yang
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/SelfFileLinkingWithGroupingHierarchicalRefUnresolved.yang
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/SelfFileLinkingWithGroupingWithSelfModulePrefix.yang
0 → 100644
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/SelfFileLinkingWithHierarchicalTypeFailureScenario.yang
0 → 100644
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/SelfFileLinkingWithTypdefHierarchicalRefUnresolved.yang
0 → 100644
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/SelfFileLinkingWithTypdefHierarchicalReference.yang
0 → 100644
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/SelfFileLinkingWithTypeWithSelfAndExternalPrefixMix.yang
0 → 100644
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/SelfFileLinkingWithTypeWithSelfModulePrefix.yang
0 → 100644
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/SelfResolutionGroupingHavingSameUsesManyTimes.yang
0 → 100644
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/SelfResolutionGroupingInRpcAndUsesInOutput.yang
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/SelfResolutionNestedGroupingWithUnresolvedUses.yang
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/SelfResolutionWhenTypeAndTypedefAtRootLevel.yang
0 → 100644
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/SelfResolutionWhenTypeAndTypedefAtRootLevelForBinary.yang
0 → 100644
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/SelfResolutionWhenTypeReferredTypedefNotDefined.yang
0 → 100644
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/SelfResolutionWhenUsesAndGroupingAtRootLevel.yang
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/file1UsesFile2TypeDefFile3Type/ietf-inet-types.yang
0 → 100644
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/file1UsesFile2TypeDefFile3Type/ietf-network-topology.yang
0 → 100644
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/file1UsesFile2TypeDefFile3Type/ietf-te-topology.yang
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/hierarchicalinterfiletype/ietf-network-topology.yang
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/hierarchicalintrawithinterfiletype/ietf-inet-types.yang
0 → 100644
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/hierarchicalintrawithinterfiletype/ietf-network.yang
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/ietfyang/l3vpnservice/ietf-sd-onos-common-types.yang
0 → 100644
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/ietfyang/l3vpnservice/ietf-sd-onos-service-l3vpn.yang
0 → 100644
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/ietfyang/l3vpnservice/ietf-sd-onos-service-types.yang
0 → 100644
This diff is collapsed. Click to expand it.
No preview for this file type
No preview for this file type
No preview for this file type
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/interfiletypewithrevisioninname/module2@2007-06-09.yang
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/interfilewithusesreferringtype/ietf-network.yang
0 → 100644
This diff is collapsed. Click to expand it.
utils/yangutils/plugin/src/test/resources/interfilewithusesreferringtype/ietf-te-topology.yang
0 → 100644
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/main/java/org/onosproject/yangutils/utils/io/impl/CopyrightHeader.java
deleted
100644 → 0
This diff is collapsed. Click to expand it.
utils/yangutils/src/main/java/org/onosproject/yangutils/utils/io/impl/YangFileScanner.java
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/java/org/onosproject/yangutils/ietfyang/IetfYangFileTest.java
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/java/org/onosproject/yangutils/utils/UtilConstantsTest.java
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/java/org/onosproject/yangutils/utils/io/impl/JavaDocGenTest.java
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/java/org/onosproject/yangutils/utils/io/impl/YangIoUtilsTest.java
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/MultiplePatternAndLengthRestrictionInValid.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/MultiplePatternRestrictionInRefTypeAndTypedef.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/RangeRestrictionInRefTypeAndTypedefInValid.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/SelfFileLinkingTypedefAtMiddleLevelAfterParentHolder.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/SelfFileLinkingTypedefAtRootTypeTwoLevelInHierarchy.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/SelfFileLinkingWithGroupingHierarchicalRefUnresolved.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/SelfFileLinkingWithGroupingWithSelfModulePrefix.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/SelfFileLinkingWithHierarchicalTypeFailureScenario.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/SelfFileLinkingWithTypdefHierarchicalRefUnresolved.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/SelfFileLinkingWithTypdefHierarchicalReference.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/SelfFileLinkingWithTypeWithSelfAndExternalPrefixMix.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/SelfFileLinkingWithTypeWithSelfModulePrefix.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/SelfResolutionGroupingHavingSameUsesManyTimes.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/SelfResolutionGroupingInRpcAndUsesInOutput.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/SelfResolutionNestedGroupingWithUnresolvedUses.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/SelfResolutionWhenTypeAndTypedefAtRootLevel.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/SelfResolutionWhenTypeAndTypedefAtRootLevelForBinary.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/SelfResolutionWhenTypeReferredTypedefNotDefined.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/SelfResolutionWhenUsesAndGroupingAtRootLevel.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/ValidSameGroupingEntryInModuleAndContainer.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/file1UsesFile2TypeDefFile3Type/ietf-inet-types.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/file1UsesFile2TypeDefFile3Type/ietf-network-topology.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/file1UsesFile2TypeDefFile3Type/ietf-te-topology.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/hierarchicalinterfiletype/ietf-inet-types.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/hierarchicalinterfiletype/ietf-network-topology.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/hierarchicalintrawithinterfiletype/ietf-inet-types.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/hierarchicalintrawithinterfiletype/ietf-network.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/ietfyang/l3vpnservice/ietf-sd-onos-common-types.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/ietfyang/l3vpnservice/ietf-sd-onos-service-l3vpn.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/ietfyang/l3vpnservice/ietf-sd-onos-service-types.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/interfiletypewithrevisioninname/module2@2007-06-09.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/interfilewithusesreferringtype/ietf-network.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
utils/yangutils/src/test/resources/interfilewithusesreferringtype/ietf-te-topology.yang
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment