- public static TypeDefinition<IntegerTypeDefinition> javaTypeForBaseYangSignedIntegerType(\r
- String typeName, List<RangeConstraint> ranges) {\r
- if (typeName.equals("int8")) {\r
- return new Int8(ranges, null, null);\r
- } else if (typeName.equals("int16")) {\r
- return new Int16(ranges, null, null);\r
- } else if (typeName.equals("int32")) {\r
- return new Int32(ranges, null, null);\r
- } else if (typeName.equals("int64")) {\r
- return new Int64(ranges, null, null);\r
+ SchemaPath path = createSchemaPath(actualPath, namespace, revision);\r
+ if (typeName.startsWith("int")) {\r
+ if (typeName.equals("int8")) {\r
+ type = new Int8(path);\r
+ } else if (typeName.equals("int16")) {\r
+ type = new Int16(path);\r
+ } else if (typeName.equals("int32")) {\r
+ type = new Int32(path);\r
+ } else if (typeName.equals("int64")) {\r
+ type = new Int64(path);\r
+ }\r
+ } else if (typeName.startsWith("uint")) {\r
+ if (typeName.equals("uint8")) {\r
+ type = new Uint8(path);\r
+ } else if (typeName.equals("uint16")) {\r
+ type = new Uint16(path);\r
+ } else if (typeName.equals("uint32")) {\r
+ type = new Uint32(path);\r
+ } else if (typeName.equals("uint64")) {\r
+ type = new Uint64(path);\r
+ }\r
+ } else if ("string".equals(typeName)) {\r
+ type = new StringType(path);\r
+ } else if("binary".equals(typeName)) {\r
+ type = new BinaryType(path);\r
+ } else if("boolean".equals(typeName)) {\r
+ type = new BooleanType(path);\r
+ } else if("empty".equals(typeName)) {\r
+ type = new EmptyType(path);\r
+ } else if("instance-identifier".equals(typeName)) {\r
+ type = new InstanceIdentifier(path, null, true);\r