Expanded UnknownSchemaNode implementation, refactored java source code generation.
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Fixed SchemaPath resolution for base YANG types.
Refactored refine statement parsing.
Change-Id: Ic00b86c611f1f56b69d9e09bf197d9ddb79da145
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Fixed bugs in parsing enumeration, augment, identity.
Refactored SchemaPath construction for int, uint, decimal64, string and union types.
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Implemented YANG identityref type parsing.
Refactored augmentation parsing. Added tests.
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Implemented refine statement parsing.
Implemented choice statement parsing.
Implemented anyxml statement parsing.
Added EmptyType. Added more tests. Fixed bugs.
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Fixed implementation of TypeProviderImpl for Leafref resolving.
Since the modification of resolving of inner type definitions as
ExtendedTypes there had to be done minor modifications in
javaTypeForSchemaDefinitionType and baseTypeForExtendedType methods.
Also the SchemaPath no longer contains the module name as first element
so the module name is now retrieved directly from SchemaContext
via findModuleByNamespace method;
Added findModuleByName and findModuleByNamespace into SchemaContext in
yang-model-api;
Added implementation of findModuleByName and findModuleByNamespace for
private implementation of SchemaContextImpl in YangModelParserImpl;
Fixed possible resource leak in resolveModuleBuildersFromStreams in
YangModelBuilderImpl - implemented loadStreams and closeStreams methods;
Added implementation of test case for resolving of leafrefs and leafref
types from multiple modules;
Fixed wrong constructor call of Leafref Type Definition in parseTypeBody
method in YangModelBuilderUtil;
Fixed resolving of SchemaPath for Type statement in
YangModelParserListenerImpl;
Change-Id: I6a037a746562d856d12ea71d3fb095e902e1c204
Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
Refactored YANG types resolving.
Fixed YANG union type parsing. Refactored code after PMD check.
Fixed organization statement in test files.
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Fixed bug in naming conventions.
In yang-data-util changed package name from
org.opendaylight.controller.data.util to
org.opendaylight.controller.yang.data.util;
In yang-model-api changed package name from
org.opendaylight.controller.model.api.type to
org.opendaylight.controller.yang.model.api.type;
In yang-model-util changed package name from
org.opendaylight.controller.model.util to
org.opendaylight.controller.yang.model.util;
Refactored and updated all imports dependant on projects
yang-model-util, yang-model-api and yang-model-util
Signed-off-by: lsedlak <lsedlak@cisco.com>
Fixed bugs in naming conventions of packages.
In yang-data-util changed package name from
org.opendaylight.controller.data.util to
org.opendaylight.controller.yang.data.util;
In yang-model-api changed package name from
org.opendaylight.controller.model.api.type to
org.opendaylight.controller.yang.model.api.type;
In yang-model-util changed package name from
org.opendaylight.controller.model.util to
org.opendaylight.controller.yang.model.util;
Added junit test for resolving Yang types from multiple Yang modules;
Fixed typo in QName of Uint64.java to uint64 QName;
Refactored and updated all imports dependant on projects
yang-model-util, yang-model-api and yang-model-util
Change-Id: I13779030a9823a821fc06d5b9a90e195da3e0a1a
Signed-off-by: lsedlak <lsedlak@cisco.com>
Fixed YANG union type resolving in yang model parser.
Signed-off-by: mvitez <mvitez@cisco.com>
Updated YANG Type definitions and documentation in YANG Model Utils.
Splitted Integer Type into Unsigned and Signed Integer Type.
Updated documentation.
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Added javadoc and RFC references to Java YANG model.
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Merge from development repository.
See commit log bellow for more details.
commit
d3f7ff74377f55c106ca28a43c936ef4d3bcb5e2
Author: mvitez <mvitez@cisco.com>
Date: Mon Mar 25 10:15:36 2013 +0100
improve some code
commit
a0bec74e277e7afcc0f6867ba2d7527d4e25db60
Author: mvitez <mvitez@cisco.com>
Date: Mon Mar 25 09:26:59 2013 +0100
added typedef and augment resolving, added tests
commit
32fff33187321463bb27b5c11b63a71d8dbc104e
Merge:
562dbeb e6b3057
Author: lsedlak <lsedlak@cisco.com>
Date: Fri Mar 22 15:27:59 2013 +0100
Merge branch 'binding-api'
commit
e6b30574b2598c289ea90be6588151dc7cb7b0fa
Author: lsedlak <lsedlak@cisco.com>
Date: Fri Mar 22 15:16:12 2013 +0100
Added Implementation of getPathStatement into Identityref.java;
commit
ef70678b2127fd56d062d99a20a02de401262b29
Author: lsedlak <lsedlak@cisco.com>
Date: Fri Mar 22 15:14:28 2013 +0100
Added RevisionAwareXPath into interface definition;
commit
78cb3c64716f7cf2788dfaf61906a07481bcd9df
Author: mvitez <mvitez@cisco.com>
Date: Fri Mar 22 13:40:05 2013 +0100
added implementation of SchemaContext
commit
45769c7721eb9832cd43c04a020f1ca7f52172ef
Author: lsedlak <lsedlak@cisco.com>
Date: Fri Mar 22 13:55:26 2013 +0100
Changed parameter in generateTypes from Module to SchemaContext;
Implemented changes in generatedTypes in BindingGeneratorImpl.java;
Implemented changes in GeneratedTypesTest.java;
commit
562dbebbbbfec341c98885ad80b87f3d8d05c3f7
Author: mvitez <mvitez@cisco.com>
Date: Fri Mar 22 13:40:05 2013 +0100
added implementation of SchemaContext
commit
c4ea91257946fa1f3cd44a148af7a44e254b661f
Author: lsedlak <lsedlak@cisco.com>
Date: Fri Mar 22 11:09:50 2013 +0100
Added definition: getExtensions into SchemaContext.java;
commit
8b239e3fb4a322baa36867d4ce41f2c142a8ef76
Author: mvitez <mvitez@cisco.com>
Date: Fri Mar 22 10:46:27 2013 +0100
fix Demo, GeneratedTypesTest
commit
6564270ea304905ccb91718066c7aa65b5430ecb
Author: mvitez <mvitez@cisco.com>
Date: Fri Mar 22 10:33:26 2013 +0100
rename packages
commit
f3326c65f7de3ce77137b0c972aff32aa5d6f6c6
Author: mvitez <mvitez@cisco.com>
Date: Thu Mar 21 17:45:24 2013 +0100
renamed YangModelParserImpl-> YangModelParserListenerImpl
commit
26fa647a676f9c466a010536e9d972486adbb904
Author: Anton Tkacik <ttkacik@cisco.com>
Date: Thu Mar 21 15:49:55 2013 +0100
Added SAL Binding SPI
commit
e60fb750ef193d8456cb1196b4d13f12f44ad276
Author: lsedlak <lsedlak@cisco.com>
Date: Thu Mar 21 17:27:05 2013 +0100
Added yang-model-parser-api module into pom definition;
commit
c7023e3f2ae7defeadba319c40011ed4f90bfb4f
Author: Anton Tkacik <ttkacik@cisco.com>
Date: Thu Mar 21 11:22:50 2013 +0100
Renamed Controller architecture to OpenDayLightController SAL
commit
985d3e66977876be83db6cba92753ef3ade3edf2
Merge:
9c9c027 39c8c01
Author: mvitez <mvitez@cisco.com>
Date: Thu Mar 21 15:31:53 2013 +0100
more progress on yang java model
commit
9c9c0271a4b7b35177164e94e1677dabecd88ca8
Author: mvitez <mvitez@cisco.com>
Date: Thu Mar 21 13:58:59 2013 +0100
more progress on yang java model
commit
5609186d6b22a89f8d0568962bb8d0657818cee4
Merge:
c26cf1d 5adfb70
Author: mvitez <mvitez@cisco.com>
Date: Wed Mar 20 18:14:34 2013 +0100
getExtensionSchemaNodes changed to getUnknownSchemaNodes;
Whole package org.opendaylight.controller.model.parser.builder
refactored accordingly;
commit
820716ed377f4a7878a1f6373095053eb4ababd0
Author: mvitez <mvitez@cisco.com>
Date: Thu Mar 21 10:04:44 2013 +0100
added equals, hashCode
commit
c26cf1d917811ab0d5473342d253314f62d6e0a1
Author: mvitez <mvitez@cisco.com>
Date: Wed Mar 20 18:13:56 2013 +0100
more progress on yang java model
commit
32e3b9dbef20ab6d8e40d9eded3c452a7f23fdc2
Author: mvitez <mvitez@cisco.com>
Date: Wed Mar 20 15:44:10 2013 +0100
Changed getLengthConstraint to getLengthConstraints and
changed return value from LengthConstraint to Set of LengthConstraints;
Updated BinaryType implementation accordingly;
commit
e8419305c2b7b3197734c8d89d77be25f2d78440
Author: mvitez <mvitez@cisco.com>
Date: Wed Mar 20 15:44:10 2013 +0100
more progress on yang java model
commit
6b0283f178366831306456d59431b5747f6c038b
Author: mvitez <mvitez@cisco.com>
Date: Wed Mar 20 12:08:31 2013 +0100
Added method definitions for RevisionAwareXPath interface;
commit
463884e9e9e21ff03a3b89b590d0b08d9dd2d9b7
Author: mvitez <mvitez@cisco.com>
Date: Wed Mar 20 12:08:31 2013 +0100
rework augment parsing
commit
b2fe0c91d7cf184252e2516ad15cdd50e01130a7
Author: mvitez <mvitez@cisco.com>
Date: Tue Mar 19 18:18:28 2013 +0100
fix test
commit
cd388c2f7fd0460ca068270035ab0acdaa9e5e79
Author: mvitez <mvitez@cisco.com>
Date: Tue Mar 19 18:16:33 2013 +0100
more progress on yang java model
commit
638c43548ca83c739131118a404c7b1d454055db
Merge:
2b0fb2c 36f2f95
Author: mvitez <mvitez@cisco.com>
Date: Tue Mar 19 15:21:27 2013 +0100
GeneratedType changed to Type in return value of
generateTypes method;
Implemented composite key resolving through GeneratedTOBuilder;
Added test cases for composite key generation;
Added list-composite-key.yang file for testing purposes;
Change-Id: I9145a87945cc4638ff454f268eb37dd1bf8b3142
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>