Fixed bug in resolving of conditional Revision Aware XPath. 03/703/1
authorlsedlak <lsedlak@cisco.com>
Thu, 25 Jul 2013 14:13:09 +0000 (16:13 +0200)
committerlsedlak <lsedlak@cisco.com>
Thu, 25 Jul 2013 14:13:09 +0000 (16:13 +0200)
commit6939c625f6a616a0109a014e00392c649f264b69
tree880e9893787e50bb270828c0d2e7b7560dd68754
parent4731ee462f09ad75d31a175b0dd5abfa11eb2b6a
Fixed bug in resolving of conditional Revision Aware XPath.

Fixed implementation in TypeProviderImpl - if leafref references the leaf through the conditional XPath the method will no more returns null but wrapped Type as java.lang.Object.
Added test into GeneratedTypesTest for conditional XPath.
Fixed controller-network-ne.yang - changed name of flow-tables to flow-tables2 - the build should no more fail.
Fixed wrong transformation of yang namespace to java package in case that yang namespace contains numbers right after the "."
Added check into BindingGeneratorUtil - validateJavaPackage.
Refactored and commented SchemaContextUtil.java

Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
14 files changed:
opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/main/java/org/opendaylight/controller/sal/binding/yang/types/TypeProviderImpl.java
opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/java/org/opendaylight/controller/sal/binding/generator/impl/GeneratedTypesTest.java
opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/resources/demo-topology.yang
opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/resources/leafref-test-models/abstract-topology@2013-02-08.yang
opendaylight/sal/yang-prototype/code-generator/binding-generator-util/src/main/java/org/opendaylight/controller/binding/generator/util/BindingGeneratorUtil.java
opendaylight/sal/yang-prototype/code-generator/code-generator-demo/pom.xml [deleted file]
opendaylight/sal/yang-prototype/code-generator/code-generator-demo/src/main/java/org/opendaylight/controller/yang/Demo.java [deleted file]
opendaylight/sal/yang-prototype/code-generator/code-generator-demo/src/main/resources/demo-topology.yang [deleted file]
opendaylight/sal/yang-prototype/code-generator/code-generator-demo/src/main/resources/demo/types1.yang [deleted file]
opendaylight/sal/yang-prototype/code-generator/code-generator-demo/src/main/resources/demo/types2.yang [deleted file]
opendaylight/sal/yang-prototype/code-generator/code-generator-demo/src/main/resources/demo/types3.yang [deleted file]
opendaylight/sal/yang-prototype/code-generator/samples/maven-code-gen-sample/src/main/yang/controller-network-ne.yang
opendaylight/sal/yang-prototype/code-generator/samples/maven-code-gen-sample/src/main/yang/demo-topology.yang [moved from opendaylight/sal/yang-prototype/code-generator/code-generator-demo/src/main/resources/test-topology.yang with 66% similarity]
opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/SchemaContextUtil.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.