mdsal.git
6 years agoBug 8593 - Augmentation's Builder overrides a method from interface Augmentable. 12/58512/1
Jie Han [Mon, 5 Jun 2017 11:05:38 +0000 (19:05 +0800)]
Bug 8593 - Augmentation's Builder overrides a method from interface Augmentable.

Change-Id: I87b5b66679aa8825f4ce46e6c25a2d05eba680dd
Signed-off-by: Jie Han <han.jie@zte.com.cn>
(cherry picked from commit 29ca73cdfd6a1f4c690462630aa275d10dd3ec12)

6 years agoBug 8575 - IllegalArgumentException thrown when uses a grouping which name is not... 95/58495/1
Jie Han [Thu, 1 Jun 2017 02:43:29 +0000 (10:43 +0800)]
Bug 8575 - IllegalArgumentException thrown when uses a grouping which name is not unique

- find target uses grouping which name is not unique
- add JUnit Test and Yang file
Change-Id: Idc0d782a2443ed2cd3339f4f7ed4c712a04a60fe
Signed-off-by: Jie Han <han.jie@zte.com.cn>
(cherry picked from commit e28261b237a2bd06144dc30da814671698c8b48a)

6 years agoBug 706: - Missing support for anyxml statement in java generator and mapping service 68/58468/3
Martin Ciglan [Wed, 7 Jun 2017 13:36:40 +0000 (15:36 +0200)]
Bug 706: - Missing support for anyxml statement in java generator and mapping service

- basic logic to recognize anyxml node within root or data schema node
- generate type and Java code for it

Change-Id: I0a7dd00661b569dd76d95b6404e4590f6544e415
Signed-off-by: Martin Ciglan <martin.ciglan@pantheon.tech>
(cherry picked from commit 7eb194c73ef0681486b5adf4a318e8f4fde5fd62)

6 years agoBinding generator v2 - Unions compilability fix 45/58445/2
Martin Ciglan [Mon, 5 Jun 2017 07:19:13 +0000 (09:19 +0200)]
Binding generator v2 - Unions compilability fix

Change-Id: I8ae28571069c2d0f966d9953f43229bce941083f
Signed-off-by: Martin Ciglan <martin.ciglan@pantheon.tech>
(cherry picked from commit d0610f971b262931b7f58b8e628eb4564ded9bf5)

6 years agoBinding v2 DOM Codec - generator - base implementation 43/58443/2
Jakub Toth [Mon, 5 Jun 2017 14:00:09 +0000 (16:00 +0200)]
Binding v2 DOM Codec - generator - base implementation

 * prototype of implementation of tree node serializer
 * static property for Binding objects

Change-Id: I67ba59924044adf12bed0bd2293f91ddf3f02025
Signed-off-by: Jakub Toth <jakub.toth@pantheon.tech>
(cherry picked from commit 3cd9677453fa4346fdd6fd732bf9ce0e4b30ed2c)

6 years agoBinding v2 DOM Codec - generator - API 42/58442/2
Jakub Toth [Mon, 5 Jun 2017 13:32:39 +0000 (15:32 +0200)]
Binding v2 DOM Codec - generator - API

  * api for getting serializer fo specific type

Change-Id: I04288cf4d514193a1bae363781a29517cf5adb2f
Signed-off-by: Jakub Toth <jakub.toth@pantheon.tech>
(cherry picked from commit c9ab5d69eb5f533fb9e41270d046f903c0d38690)

6 years agoBinding v2 DOM Codec - Javassist part 41/58441/1
Jakub Toth [Tue, 6 Jun 2017 08:33:16 +0000 (10:33 +0200)]
Binding v2 DOM Codec - Javassist part

Change-Id: I9f07629ef79729650e44b1caba239a25a23db81e
Signed-off-by: Jakub Toth <jakub.toth@pantheon.tech>
(cherry picked from commit 23bb8e62b8ea9716e6e1b8404f02c49786490ba5)

6 years agoBinding2 runtime - Codecs impl #1 32/58332/2
Martin Ciglan [Mon, 5 Jun 2017 09:02:30 +0000 (11:02 +0200)]
Binding2 runtime - Codecs impl #1

- value based codecs & relatives

TODO: more Javadocs, test coverage

Change-Id: I1c780772ea93d613c4e220ded61c07d6582c8954
Signed-off-by: Martin Ciglan <martin.ciglan@pantheon.tech>
(cherry picked from commit 357db495133d3d275582e9ea4b5063c15e9a5f5a)

6 years agoBinding v2 DOM Codec - codecs API - Part 2 31/58331/3
Jakub Toth [Thu, 1 Jun 2017 09:53:59 +0000 (11:53 +0200)]
Binding v2 DOM Codec - codecs API - Part 2

  *factory
  *serializer

Change-Id: I63ef1b59b31514e8e6d583d3b9aaa17ad1224365
Signed-off-by: Jakub Toth <jakub.toth@pantheon.tech>
(cherry picked from commit 42db214f7dd3a1ff871b1f8197d120b1da9f90b3)

6 years agoBinding v2 runtime context 30/58330/3
Jakub Toth [Thu, 1 Jun 2017 06:10:08 +0000 (08:10 +0200)]
Binding v2 runtime context

  *preparing of binding runtime context via reflection
  *tests

Change-Id: I02a3e568942fe4f31621299c12bf978bcaa4940b
Signed-off-by: Jakub Toth <jakub.toth@pantheon.tech>
(cherry picked from commit 319b4d682c190284488cad35e6ff58746d5fde9a)

6 years agoBinding v2 DOM Codec - codecs API - Part 1 25/58325/3
Jakub Toth [Wed, 31 May 2017 09:12:10 +0000 (11:12 +0200)]
Binding v2 DOM Codec - codecs API - Part 1

  * normalized node codec
  * tree codec
  * tree node codec

Change-Id: Id58cf84d337ce310afb889c54f913fdbb59d79b0
Signed-off-by: Jakub Toth <jakub.toth@pantheon.tech>
(cherry picked from commit 85d32b48ba1bf1a37a340fce81708f9bfd9080e4)

6 years agoBinding spec runtime v2 - TreeNodeSerializer & relatives 24/58324/4
Martin Ciglan [Wed, 31 May 2017 07:54:10 +0000 (09:54 +0200)]
Binding spec runtime v2 - TreeNodeSerializer & relatives

Change-Id: I6ad9cf2f0fc6fb9b55c7ba788fa6ece86ba7f8c0
Signed-off-by: Martin Ciglan <martin.ciglan@pantheon.tech>
(cherry picked from commit ebbf805a1d97ddb8988f5ad698b5c37245830194)

6 years agoBinding2 runtime - API #7 23/58323/4
Martin Ciglan [Wed, 24 May 2017 13:44:29 +0000 (15:44 +0200)]
Binding2 runtime - API #7

- NotificationPublishService & its relatives
- test coverage for classes
- Javadocs provided

Change-Id: I888f72924d8fe38e76f0990fec34b040824439c6
Signed-off-by: Martin Ciglan <martin.ciglan@pantheon.tech>
(cherry picked from commit 82540750ebcfb2887733e953cad0205e3fcd16ee)

6 years agoBinding2 runtime - API #6 22/58322/4
Martin Ciglan [Wed, 24 May 2017 13:09:53 +0000 (15:09 +0200)]
Binding2 runtime - API #6

- DataTreeCommitCohortRegistry & its relatives
- Javadocs provided

Change-Id: I86f5771140f7c151dfad78b0066cc8d0b8790625
Signed-off-by: Martin Ciglan <martin.ciglan@pantheon.tech>
(cherry picked from commit 99f29efb2f2f675ae6c6632cd35fcab1d0d14518)

6 years agoBinding2 runtime - API #5 21/58321/4
Martin Ciglan [Tue, 23 May 2017 09:15:50 +0000 (11:15 +0200)]
Binding2 runtime - API #5

- Rpc, Action, ListAction API support
- Javadocs provided

Change-Id: I8250bf00579c5743be50d3fcf8296fddb3be1d69
Signed-off-by: Martin Ciglan <martin.ciglan@pantheon.tech>
(cherry picked from commit b7a4eb412bac92b57eb4fe15d441976369330030)

6 years agoBinding2 runtime - API #4 20/58320/3
Martin Ciglan [Tue, 23 May 2017 08:11:25 +0000 (10:11 +0200)]
Binding2 runtime - API #4

- MountPointService & its relatives
- Javadocs provided

Change-Id: I15c55a34b0b4bb4df9aefd92749743c4a0cc2c3e
Signed-off-by: Martin Ciglan <martin.ciglan@pantheon.tech>
(cherry picked from commit 44c4876b84124f0104b539453d05ac6812f33db2)

6 years agoBinding2 runtime - API #3 38/58338/1
Martin Ciglan [Mon, 22 May 2017 14:33:18 +0000 (16:33 +0200)]
Binding2 runtime - API #3

- DataTreeProducer, DataTreeService & its relatives
- Javadocs provided
- test coverage for classes

Change-Id: I75e2b4666db95153d97a24be38a9e2e78c37237f
Signed-off-by: Martin Ciglan <martin.ciglan@pantheon.tech>
(cherry picked from commit 2cfeb45bca729abfa28658a4cf23a1713849741e)

6 years agoBinding2 runtime - API #2 19/58319/2
Martin Ciglan [Mon, 22 May 2017 13:31:46 +0000 (15:31 +0200)]
Binding2 runtime - API #2

- DataTreeWriteCursor & its relatives
- Javadocs provided

Change-Id: I1e6d6e6f609d048f78821875a0ef37f7aa6f47b1
Signed-off-by: Martin Ciglan <martin.ciglan@pantheon.tech>
(cherry picked from commit b60e6c66d294945f916f8a78b5d383c9c49659ff)

6 years agoBinding2 runtime - API #1 18/58318/1
Martin Ciglan [Mon, 22 May 2017 12:24:28 +0000 (14:24 +0200)]
Binding2 runtime - API #1

- BindingService, DataTreeModification, transactions basics & its relatives
- Javadocs provided
- test coverage for classes

Change-Id: I2d032ec3a0a565941266610194fb8d176c5392ff
Signed-off-by: Martin Ciglan <martin.ciglan@pantheon.tech>
(cherry picked from commit 827c2b1cea519c8a3a3e3789ecbf7ed6f84a0e07)

6 years agoBinding generator v2 - Identities support 22/58222/2
Martin Ciglan [Thu, 1 Jun 2017 12:20:10 +0000 (14:20 +0200)]
Binding generator v2 - Identities support

- naming conflict prevention added

Change-Id: Iac43a3ed45ed13b113fd48a2dce3829a9ce7c21a
Signed-off-by: Martin Ciglan <martin.ciglan@pantheon.tech>
(cherry picked from commit ccc1939cf81b78524c29bf649c8d4e04742fd849)

6 years agoBinding v2 runtime 05/58005/2
Martin Ciglan [Tue, 30 May 2017 07:38:55 +0000 (09:38 +0200)]
Binding v2 runtime

- main placeholders with pom.xml files

Change-Id: I84c04e5170a897b3414df3793b2a895eeea90de2
Signed-off-by: Martin Ciglan <martin.ciglan@pantheon.tech>
6 years agoBinding generator v2 - Unions fix 21/58221/2
Jakub Toth [Thu, 1 Jun 2017 14:51:48 +0000 (16:51 +0200)]
Binding generator v2 - Unions fix

- generate Java code fixes

TODO: template compilability issues

Change-Id: Icfa857df13617edec93b3a8de47bbba5d4a9b966
Signed-off-by: Martin Ciglan <martin.ciglan@pantheon.tech>
Signed-off-by: Jakub Toth <jakub.toth@pantheon.tech>
(cherry picked from commit 555a8d1dc3d75f642fff33acda73b9d31564dd2f)

6 years agoBinding generator v2 - Notifications 20/58220/1
Martin Ciglan [Tue, 30 May 2017 12:17:01 +0000 (14:17 +0200)]
Binding generator v2 - Notifications

- generated Java code compilability fixes

Change-Id: I82e1f59820820c1d6717fc4227031e7d33465cab
Signed-off-by: Martin Ciglan <martin.ciglan@pantheon.tech>
(cherry picked from commit 138cdec6a16b8663d0f9670c8aef7457925109c3)

6 years agoBUG-8226: do not import nested classes 47/57947/1
Robert Varga [Thu, 11 May 2017 09:28:38 +0000 (11:28 +0200)]
BUG-8226: do not import nested classes

Importing a nested classes leads to a unused import warning, so compare
the declared package name with the class being generated and do not emit
an import declaration if the package name matches FQDN.

Change-Id: I4240cac663476c1405962631a9d173f5ed434ee9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit a6fdc323e0b9b76d99c0d976e7a5912a6fc42ef8)

6 years agoBug 8307: Add the option for activating deviation statements 18/57418/2
Martin Ciglan [Fri, 19 May 2017 10:14:56 +0000 (12:14 +0200)]
Bug 8307: Add the option for activating deviation statements

- follow-up patch for Yangtools changes:
https://git.opendaylight.org/gerrit/#/c/56452/

Change-Id: Ia78b119fee3bdf12be90dbb95d8d811576df57ed
Signed-off-by: Martin Ciglan <martin.ciglan@pantheon.tech>
6 years agoBindingDOMRpcProviderServiceAdapter should implement its interface 52/56952/2
Martin Ciglan [Fri, 12 May 2017 11:09:06 +0000 (13:09 +0200)]
BindingDOMRpcProviderServiceAdapter should implement its interface

Change-Id: I773f244bff3c08eb7982187089f6f0e8f0eefb65
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
(cherry picked from commit 1d3c94194fdcae0d88c36abdadc7e094bf568585)

6 years agoBump versions by x.y.(z+1) 53/57853/1
jenkins-releng [Thu, 25 May 2017 18:18:07 +0000 (18:18 +0000)]
Bump versions by x.y.(z+1)

Change-Id: I273b8cbdf90ec814a6ca1018069df5b6f0bb55c1
Signed-off-by: jenkins-releng <jenkins-releng@opendaylight.org>
7 years agoDisable maven site build 57/56857/2
Robert Varga [Thu, 11 May 2017 13:30:02 +0000 (15:30 +0200)]
Disable maven site build

Change-Id: I9f4ac30cffcd58d2873aeae955a6626082f3479d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
7 years agoFix generating of description for operations 54/56854/2
Jakub Toth [Thu, 11 May 2017 12:50:01 +0000 (14:50 +0200)]
Fix generating of description for operations

Change-Id: I8cc45bd00910377429c95fd3ab818c7d93299275
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agomdsal-binding2 features 91/56791/3
Jakub Toth [Wed, 10 May 2017 13:53:56 +0000 (15:53 +0200)]
mdsal-binding2 features

Change-Id: I5776ee2300d993b9e8a690499c1e85972cbd3d9d
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBinding generator implementation & decomposition 02/56802/1
Martin Ciglan [Wed, 10 May 2017 10:59:37 +0000 (12:59 +0200)]
Binding generator implementation & decomposition

- various fixes to make sure binding & code generator
generates compilable Java code for RPCs

Change-Id: I87def49a28ffa5f978e64a3d8c3de1b0adc2049c
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoFix of generating inner class with same name like parent 72/56772/2
Jakub Toth [Wed, 3 May 2017 20:40:28 +0000 (22:40 +0200)]
Fix of generating inner class with same name like parent

Change-Id: I9ad44f50e48f71145012fd32b1f5d9e7c322afb3
Signed-off-by: Jakub Toth <jatoth@cisco.com>
(cherry picked from commit 2a4e4ff779c1fcba0703e3df41c791fee8c10409)

7 years agoRepeated instantiation of typeProvider 71/56771/1
Jie Han [Wed, 10 May 2017 01:52:06 +0000 (09:52 +0800)]
Repeated instantiation of typeProvider
Another instantiation is at line 253 of the same file in function:
public List<Type> generateTypes(final SchemaContext context, final Set<Module> modules)

Change-Id: Ic6dab97de47f54db193f5da7952e97bade656fd9
Signed-off-by: Jie Han <han.jie@zte.com.cn>
(cherry picked from commit 619878e56edb6f4c835b739cef5c2d6d01154eb4)

7 years agoFix merging lines in JavaCodePrettyPrint 20/56620/1
Jakub Toth [Fri, 5 May 2017 20:15:34 +0000 (22:15 +0200)]
Fix merging lines in JavaCodePrettyPrint

Change-Id: Ice139808fdad35ee329ee87c10c05edef7984195
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoUtil class for cleaning of generated Java files 19/56519/3
Jakub Toth [Thu, 27 Apr 2017 13:12:04 +0000 (15:12 +0200)]
Util class for cleaning of generated Java files

  *comment generateImplementedMethods in builderTemplate, was
   breaking buil + tests

Change-Id: I5880adec4b9629d8a6761b5e75161e89235a9fe5
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoCleanup ModuleInfoBackedContext 10/56510/2
Robert Varga [Wed, 3 May 2017 15:43:04 +0000 (17:43 +0200)]
Cleanup ModuleInfoBackedContext

Remove classLoader assignment in conditional.

Change-Id: I59e8da66d5cd405bd37783088083d69e52d8933c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit c782494da0ba9e3b32f052c19c3012c03253a45c)

7 years agoBinding Generator implementation & decomposition 17/56517/2
Martin Ciglan [Wed, 3 May 2017 07:43:39 +0000 (09:43 +0200)]
Binding Generator implementation & decomposition

- fixes possible NPE using Java 1.8 Optional

Change-Id: Ib8f91d85668baf738ba4d9e5c2c613d3c19aaa2c
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
(cherry picked from commit 0a64a9c19ee3b7755164f4bd73ee855203345524)

7 years agoCode generator prototype - Binding specification v2 18/56518/1
Martin Ciglan [Tue, 2 May 2017 11:55:36 +0000 (13:55 +0200)]
Code generator prototype - Binding specification v2

- fixes NPE & compilability issue for data schema node
builders when node is a child of root

Change-Id: Iaec542989cbeb9583f814986371b22cbb70f7858
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
(cherry picked from commit 141e3def6accb5c75feed87d98cfa29acfcd8d61)

7 years agoBUG-8327: Introduce DOMYangTextSourceProvider and implement it 97/56297/1
Robert Varga [Fri, 28 Apr 2017 12:05:21 +0000 (14:05 +0200)]
BUG-8327: Introduce DOMYangTextSourceProvider and implement it

Migration requires that DOMSchemaService provides the capability to
access underlying sources in YANG text. Rather than modifying the
base DOMSchemaService, make it an DOMExtensibleService and define
the appropriate extension, DOMYangTextSourceProvider.

Update OsgiBundleScanningSchemaService to implement the new
extension.

Change-Id: I4c75d8abdf850c42fe69a08201f976271a2cbc8f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 985c0859e1ad4a1c2dd734e75a4249ddd6b1e2a8)

7 years agoBUG-7927: stop scanning bundles on framework stop 41/56241/1
Robert Varga [Thu, 27 Apr 2017 17:33:36 +0000 (19:33 +0200)]
BUG-7927: stop scanning bundles on framework stop

Monitor framework bundle for STOPPING event and when it triggers
flag us as stopping: all bundles are about to shut down, so there
is no point in trying to update the schema context anymore.

Change-Id: I1a55169fce1705c19a139063cf632674fc256701
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 2d05325b648b880088cea24ee1afd9edfc5a8979)

7 years agoBinding Generator Implementation & decomposition 26/56226/1
Martin Ciglan [Thu, 27 Apr 2017 08:34:22 +0000 (10:34 +0200)]
Binding Generator Implementation & decomposition

- support YANG groupings

Change-Id: If8b62b09fc61db523050ff94f53d2b7f03c422ad
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
(cherry picked from commit 950d1931ec8830300bf5904dc0af082d9e9dc59e)

7 years agoLazily create schema context in GlobalBundleScanning* 00/56200/2
Robert Varga [Thu, 27 Apr 2017 16:38:37 +0000 (18:38 +0200)]
Lazily create schema context in GlobalBundleScanning*

On OsgiBundleScanningSchemaService startup, it calls
tryToUpdateSchemaContext when bundleTracker.open() completes.
This parses and creates a schema context and notifies listeners
of the updated schema context. However we don't have to call
tryToUpdateSchemaContext in start() unless there actually are
listeners registered as the purpose of tryToUpdateSchemaContext
is to update listeners. So made this change. It's not likely there
would be any listeners at that point anway.

I also changed the synchronization so as not to synchronize on 'this'
or the class instance as both are unsafe (users could sync on the
instance causing unwanted contention, either innocently or maliciously).

Change-Id: I435358b0851671b7fbfdc9784577c91ff20556df
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 62ca5284757904ee8a2ac0f79f07b0f4c41dc830)

7 years agoTurn off visibility of OsgiBundleScanningSchemaService#start() 11/56211/2
Robert Varga [Thu, 27 Apr 2017 16:41:10 +0000 (18:41 +0200)]
Turn off visibility of OsgiBundleScanningSchemaService#start()

Since the start() method is only used in the createInstance(), it
should be private and not exposed.

Change-Id: I0264d0a66bbfb2536bc4d6c57f27f15584ddfabb
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
7 years agoCode generator prototype - Binding specification v2 44/56144/3
Martin Ciglan [Wed, 26 Apr 2017 15:40:01 +0000 (17:40 +0200)]
Code generator prototype - Binding specification v2

- fixes compilability issues in builder template
including prerequisities

Change-Id: I1653caf42139256b54a38b754f0121e749a4e61a
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
(cherry picked from commit 676a097cc462ac0b22b2c05a2598e5445d13dab1)

7 years agoCode generator prototype - Binding specification v2 13/56213/1
Martin Ciglan [Thu, 27 Apr 2017 14:28:26 +0000 (16:28 +0200)]
Code generator prototype - Binding specification v2

- fixes compilability issue with setter return type for nested element
e.g. String for leaf or inner container, etc...

Change-Id: I372f1492624bc9f566eaddf7ddd02e3534580f9d
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
(cherry picked from commit db0918a2876719b116b508ea67a8a60c0f1697ed)

7 years agoSpeed up OsgiBundleScanningSchemaService close 94/56194/1
Robert Varga [Thu, 27 Apr 2017 16:20:53 +0000 (18:20 +0200)]
Speed up OsgiBundleScanningSchemaService close

On close, the OsgiBundleScanningSchemaService closes the
BundleTracker which untracks all the bundles and notifies the listener
of removed bundles. This results in a call to tryToUpdateSchemaContext
which causes the remaining yang files to be re-parsed to build a new
SchemaContext. To prevent this extra processing on shutdown, I added
a "stopping" flag to elide tryToUpdateSchemaContext the same we do
with the "starting" flag.

Change-Id: I9f7c05277df9bf1ffaec1c699453020312aab203
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit b0a11d8bb72e2b74f64ca1dbd6d981cf3a70c8ea)

7 years agoCode generator prototype - Binding specification v2 49/56049/1
Martin Ciglan [Tue, 25 Apr 2017 12:43:00 +0000 (14:43 +0200)]
Code generator prototype - Binding specification v2

- this adds proper @Override tags to methods specified by superclasses.

Change-Id: Ib938ce31b71ca8fdf1aa35038b39b61f5abd1821
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
(cherry picked from commit a07a48345ec5e1f40a53bbbe93a76ea8424e7ea6)

7 years agoCode generator prototype - Binding specification v2 35/56035/1
Martin Ciglan [Tue, 25 Apr 2017 11:04:09 +0000 (13:04 +0200)]
Code generator prototype - Binding specification v2

- fixes compilability issues in class template
for constructors

Change-Id: Ib55533f6dc8948b2ca23c395e19b5a6ed30d4b76
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
(cherry picked from commit 063ba2e5851072e07f7aca80c69b25ebc6a0ed54)

7 years agoCode generator prototype - Binding specification v2 12/55912/2
Martin Ciglan [Mon, 24 Apr 2017 11:35:26 +0000 (13:35 +0200)]
Code generator prototype - Binding specification v2

- fixes compilability in case of generated Java interfaces
- bit of a code clean-up

Change-Id: Ic8986733dea8fca60024c0a3639d2fd651ab16a0
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
(cherry picked from commit 295af9be6152125183a1dc2ab73c99acafe879d4)

7 years agoBug 3147 - Improve generating of toString() method in builderTemplate 04/55904/2
Jakub Toth [Fri, 21 Apr 2017 20:45:47 +0000 (22:45 +0200)]
Bug 3147 - Improve generating of toString() method in builderTemplate

Change-Id: I0904401c9046831cdc6b4a103fc07a179b954cfb
Signed-off-by: Jakub Toth <jatoth@cisco.com>
(cherry picked from commit e7b881490bcc02ae58da4be5b4b357f474b9d68c)

7 years agoUse YangSnippetCleaner in implemetation + test with yangs 05/55905/1
Jakub Toth [Mon, 24 Apr 2017 10:58:08 +0000 (12:58 +0200)]
Use YangSnippetCleaner in implemetation + test with yangs

  *fix revision part of module in yangTemplateForModule template

Change-Id: Ic5719982c25c0c4223eeb66da8de2afe27d4d8ec
Signed-off-by: Jakub Toth <jatoth@cisco.com>
(cherry picked from commit 0a90e0b8385289e0d3c77d25ab56a17a28ca5960)

7 years agoCode generator prototype - Binding specification v2 15/55815/1
Martin Ciglan [Fri, 21 Apr 2017 09:32:43 +0000 (11:32 +0200)]
Code generator prototype - Binding specification v2

- fixes all YangModuleInfo related stuff to make
generated code compilable

Change-Id: If33eb32af3540ade129d75cdca41b6a8eb62b97f
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
(cherry picked from commit 4060292325da1f053490b7bf0003427c58ee0b80)

7 years agoFix Checkstyle problems (red in Eclipse, missed in build) 40/55240/4
Michael Vorburger [Wed, 19 Apr 2017 15:24:01 +0000 (17:24 +0200)]
Fix Checkstyle problems (red in Eclipse, missed in build)

required for overall move to new Checkstyle version, see
https://git.opendaylight.org/gerrit/#/q/topic:bumpCheckstyle-carbon

Change-Id: Ia461c83ca6e185e045811e2513eb59b115626520
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoIgnore normalizing of identifiers with reserved paths. 21/55721/2
Jakub Toth [Tue, 18 Apr 2017 09:41:12 +0000 (11:41 +0200)]
Ignore normalizing of identifiers with reserved paths.

Change-Id: Ie0a48b8cc7f68e88afa1e4a4837ed7eaa37f637f
Signed-off-by: Jakub Toth <jatoth@cisco.com>
(cherry picked from commit 54d0f5a691e075b4817c432bba9a750bd45e5292)

7 years agoCode generator prototype - Binding Specification v2 22/55722/1
Martin Ciglan [Thu, 20 Apr 2017 07:12:17 +0000 (09:12 +0200)]
Code generator prototype - Binding Specification v2

- benefits from https://git.opendaylight.org/gerrit/#/c/55146/
- bugfix for typedefs
- some code clean-up

Change-Id: I1f52f70bc320792ba22fa751c5d6257c3d7fbc05
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
(cherry picked from commit 38c2d30fd7464da00542c8b166325740a0005bb2)

7 years agoBUG-8226: Add @Override to public methods 82/54982/6
Robert Varga [Thu, 13 Apr 2017 13:53:43 +0000 (15:53 +0200)]
BUG-8226: Add @Override to public methods

This adds proper @Override tags to methods specified by superclasses.

Change-Id: I82b387156dce366d480414b1ed0b889ca9858c24
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
7 years agoBug 8151 - AuxiliaryGenUtils - Increase test coverage 38/54938/4
Jakub Toth [Thu, 6 Apr 2017 20:05:30 +0000 (22:05 +0200)]
Bug 8151 - AuxiliaryGenUtils - Increase test coverage

Change-Id: Id57b3f58a8771b23b35927d8ed308412781aee85
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoFix missing sorting of augmentations in AssertDataObjects 42/55142/1
Michael Vorburger [Tue, 11 Apr 2017 19:38:50 +0000 (21:38 +0200)]
Fix missing sorting of augmentations in AssertDataObjects

Change-Id: I7cbe3fef3f4d25c1a9c625fd8796b8b91e820f98
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoCode Generator Prototype - Binding Specification v2 56/55056/2
Martin Ciglan [Fri, 7 Apr 2017 10:53:10 +0000 (12:53 +0200)]
Code Generator Prototype - Binding Specification v2

- provide means for processing generated types
to actual compilable Java files
- generators & renderers adjustments (enum, interface, class, builder)
- code clean up
- bugfix revealed while testing

Change-Id: I1c94e6b53b62cc4b77c36c87b909877c8a072d56
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
(cherry picked from commit 4207ff2998d5b9ddd1483e52e20e29084b444605)

7 years agoRemove implementations of definitions from template 37/54937/2
Jakub Toth [Wed, 12 Apr 2017 09:33:01 +0000 (11:33 +0200)]
Remove implementations of definitions from template

Change-Id: I5c1fc43c0de58700ef73a080c3b8028cf5ccc91a
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoImprove NonJavaCharsConverter 39/54939/1
Jakub Toth [Mon, 10 Apr 2017 09:17:19 +0000 (11:17 +0200)]
Improve NonJavaCharsConverter

  * rename NonJavaCharsConverter to JavaIdentifierNormalizer
  * rename public methods of JavaIdentifierNormalizer from 'convert*'
    to 'normalizeIdentifier'
  * add new checking of identifiers by set of SPECIAL_RESERVED_WORDS

Change-Id: Ia603a4876065fe9f7420cafe5128c3ce89e47555
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoFix unstable test YangTemplateTest in binding2. 52/54752/2
Jakub Toth [Tue, 11 Apr 2017 08:05:18 +0000 (10:05 +0200)]
Fix unstable test YangTemplateTest in binding2.

Change-Id: I035f9f6e7cb7be8ad4aa63609e9f5e28370908db
Signed-off-by: Jakub Toth <jatoth@cisco.com>
(cherry picked from commit 5b564dca1b289ba749e5806d4be202a5e87f6f48)

7 years agoUpdate .gitreview to stable/carbon 55/54655/1
Anil Belur [Tue, 11 Apr 2017 01:26:30 +0000 (11:26 +1000)]
Update .gitreview to stable/carbon

Change-Id: If465afb25ea0ba4f1fb9fb20efb6c60b5eef056b
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoFix wrong call to delete instead of write. 15/54615/1
Andrej Záň [Mon, 10 Apr 2017 17:10:43 +0000 (19:10 +0200)]
Fix wrong call to delete instead of write.

Change-Id: Ib7ed39e082fb83d3c78e752129a1cc573a43fcdd
Signed-off-by: Andrej Záň <andrej.zan@pantheon.tech>
7 years agoBug 8002 - Fixing and cleanup of templates for binding2 05/54005/21
Jakub Toth [Thu, 16 Mar 2017 08:00:01 +0000 (09:00 +0100)]
Bug 8002 - Fixing and cleanup of templates for binding2

  *created cleaner of generated yangs via templates
  *fixed and completed templates
  *added tests

Change-Id: I4f769d59d72769a53afc3edf1392f3914f0d42e1
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 8151 - AugmentToGenType - Increase test coverage 09/54309/5
Jakub Toth [Mon, 3 Apr 2017 06:09:14 +0000 (08:09 +0200)]
Bug 8151 - AugmentToGenType - Increase test coverage

Change-Id: I9ca589aa6ad631c3a09f198bd2a9ca85cfed9aee
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 8151 - RpcActionGenHelper - Increase test coverage 17/54417/3
Jakub Toth [Wed, 5 Apr 2017 13:36:11 +0000 (15:36 +0200)]
Bug 8151 - RpcActionGenHelper - Increase test coverage

Change-Id: I7e8bd583ad97a562d647a697733fde42fe30a77b
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 8151 - GeneratedClassLoadingStrategy - Increase test coverage 56/54356/1
Jakub Toth [Wed, 5 Apr 2017 12:30:51 +0000 (14:30 +0200)]
Bug 8151 - GeneratedClassLoadingStrategy - Increase test coverage

Change-Id: Idcc539b81a42e587f7b400c1a6e51ad90aacc336
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBump vorburger.xtendbeans from 1.2.2 to 1.2.3 for bug fixes 54/54054/2
Michael Vorburger [Wed, 29 Mar 2017 17:15:54 +0000 (19:15 +0200)]
Bump vorburger.xtendbeans from 1.2.2 to 1.2.3 for bug fixes

see https://github.com/vorburger/xtendbeans/blob/master/CHANGES.md

related to https://git.opendaylight.org/gerrit/#/c/53844/ and
https://git.opendaylight.org/gerrit/#/c/54053/

Change-Id: I7b392b7c1a54d60b8f746dc6c722dd0917f13ae5
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoBug 7603 Actions & RPCs 83/53783/15
Martin Ciglan [Fri, 24 Mar 2017 10:29:41 +0000 (11:29 +0100)]
Bug 7603 Actions & RPCs

- provide means for dealing with Actions, RPCs & routed RPCs
from binding generator v2 point of view
- examples given
- review comments fixed

TODO: JUnit tests

Change-Id: Ie88f728a9854e247d99c2f4a154af9ac4ab70d86
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBUG-8004: handle implicit RPC input 11/53911/8
Robert Varga [Mon, 27 Mar 2017 17:42:17 +0000 (19:42 +0200)]
BUG-8004: handle implicit RPC input

RPC input is always defined implicitly, which is something we cannot
deal with in Binding Specification compatibly, as original generators
did not emit classes for such methods and implicitly map them to Void.

In order to deal with these, we need to recognize when an RPC input
is not declared and re-wire it to a null codec. This loses information,
but it is the best we can do (simply because there is no binding
representation).

Change-Id: I4edbcd0cc886396bdba79f4c0ccfd91ba3d6b2c7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
7 years agoBindingDOMRpcImplementationAdapter code clean-up 73/53973/3
Martin Ciglan [Tue, 28 Mar 2017 11:12:08 +0000 (13:12 +0200)]
BindingDOMRpcImplementationAdapter code clean-up

- warnings
- package-private access
- typo
- white-spaces

Change-Id: I78f73f503d1f5570b9776f19ce5e0ef88750afad
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoRevert "Add blueprint wiring for ShardedDOMDataTree" 02/53902/2
Tomas Cere [Mon, 27 Mar 2017 14:50:34 +0000 (16:50 +0200)]
Revert "Add blueprint wiring for ShardedDOMDataTree"

We want users to go through the controller implementation
that wraps this one, so this one is no longer needed.
Remove this blueprint to prevent confusion and accidental wiring.

This reverts commit 6bff7756003eaf2c26a91627a424adffba38bc37.

Change-Id: I821b2689abfb2a6ef14c9102111f975d5daf2936
Signed-off-by: Tomas Cere <tcere@cisco.com>
7 years agoBug 1411 #5 BindingGeneratorImpl decomposition - Notifications 23/53723/12
Martin Ciglan [Thu, 23 Mar 2017 10:47:47 +0000 (11:47 +0100)]
Bug 1411 #5 BindingGeneratorImpl decomposition - Notifications

- resolve YANG notifications & notification tied to
data schema nodes from schema context
- further util methods added
- further decomposition in order to
decrease initial BindingGeneratorImpl complexity

TODO: JUnit tests, models

Change-Id: Ie9e16d0ee23a7e1c1f2aab7871967261a013bb6f
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 1411 #4 BindingGeneratorImpl decomposition - Lists 79/53279/16
Martin Ciglan [Tue, 14 Mar 2017 10:29:50 +0000 (11:29 +0100)]
Bug 1411 #4 BindingGeneratorImpl decomposition - Lists

- resolve Lists from schema context
- further util methods added
- further decomposition in order to
decrease initial BindingGeneratorImpl complexity
- fixes Bug 157 too

Change-Id: Ie9b492c96276819b6e814bff5deff91e7afc1e54
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 1411 #3 BindingGeneratorImpl decomposition - Leafs 68/53268/4
Martin Ciglan [Tue, 14 Mar 2017 10:29:50 +0000 (11:29 +0100)]
Bug 1411 #3 BindingGeneratorImpl decomposition - Leafs

- resolve Leafs from schema context
- preprare getters
- further util methods added
- further decomposition in order to
decrease initial BindingGeneratorImpl complexity

Change-Id: If352546fb4f0fb375705959a54242e657c285e75
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoFix ForeignShardModificationContext's submit method 61/53261/9
Jakub Morvay [Tue, 14 Mar 2017 09:50:11 +0000 (10:50 +0100)]
Fix ForeignShardModificationContext's submit method

ForeingShardModificationContext can be reused by several transactions.
Unready it in its submit method.

Change-Id: I84a3e74176335e87c940109d6a43c9e5131a9f0c
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
7 years agoBug 7759 - TEST - Getter of BA object fails to construct class instance 90/53390/2
Jakub Toth [Tue, 14 Mar 2017 10:10:29 +0000 (11:10 +0100)]
Bug 7759 - TEST - Getter of BA object fails to construct class instance

 * negative test - if value of data is other like type of data define by yang

Change-Id: Ia6a9abd43e78384f84c867cf6a755cd07d6503c6
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 1411 #2 BindingGeneratorImpl decomposition - Types 34/51634/18
Martin Ciglan [Thu, 9 Feb 2017 15:31:18 +0000 (16:31 +0100)]
Bug 1411 #2 BindingGeneratorImpl decomposition - Types

- resolve Types
from schema context to in-memory generated types
- further util methods added
- further decomposition in order to
decrease TypeProviderImpl Sonar complexity

TODO: jtoth - JUnit tests

Change-Id: I929a1efc66feb7dcf112eb81de542f2187d16f71
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBindingGenerator v1 "copy-paste" bug in RPCs 10/53210/2
Martin Ciglan [Mon, 13 Mar 2017 12:17:22 +0000 (13:17 +0100)]
BindingGenerator v1 "copy-paste" bug in RPCs

This patch fixes kind of "copy-paste" bug revealed during
dealing with Actions in Binding Spec v2. This needs
to be cherry-picked to Boron too.

Change-Id: I22d56fd7ca899e4634ad0c2aaaec63d5b7c11403
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 6859: Binding generator v1 refactoring 40/53140/1
Martin Ciglan [Fri, 10 Mar 2017 13:17:43 +0000 (14:17 +0100)]
Bug 6859: Binding generator v1 refactoring

- make sure package names differ between MDSAL Binding v1 submodules
after refactoring

Change-Id: I6f1def44682f28a00a79ac3c787eeaca5b6755d6
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 7759 - TEST - Getter of BA object fails to construct class instance 75/53075/3
Jakub Toth [Thu, 9 Mar 2017 10:31:08 +0000 (11:31 +0100)]
Bug 7759 - TEST - Getter of BA object fails to construct class instance

Change-Id: Idfb3ceabe6808bcd9c421d189566f680f8f0077f
Signed-off-by: Jakub Toth <jatoth@cisco.com>
(cherry picked from commit db2d6f91b55a28d5da6e6b362295b1d412d8d363)

7 years agoAdd new DOMDataTreeCommitCohort#canCoomit method 60/52960/3
Tom Pantelis [Tue, 7 Mar 2017 14:57:54 +0000 (09:57 -0500)]
Add new DOMDataTreeCommitCohort#canCoomit method

If a cohort registers for yang list entries, there may be multiple
list entry modifications in a transaction thus the canCommit method
needs to take a Collection of DOMDataTreeCandidates for consistency.

For avoid breaking current implementations, I added the new method
with a default implementation that invokes the single DOMDataTreeCandidate
canCommit method with a warning that the new canCommit method should
be implemented. The single canCommit method is now deprecated with a
default implementation that logs an error and returns success.

Change-Id: If83d380a0ca8ba55be9e99b3d1da4d309e9a6487
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
7 years agoForeignShardModificationContext: typo 65/52265/5
Isaku Yamahata [Fri, 24 Feb 2017 21:55:03 +0000 (16:55 -0500)]
ForeignShardModificationContext: typo

typo in ForeignShardModificationContext.
notReady should be false when readying it.

Change-Id: I6ecd3283f1917f9725579496142f3572549d9874
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
7 years agoBug 1411 Binding Generator - BaseYangTypes 10/53010/1
Martin Ciglan [Wed, 8 Mar 2017 14:47:48 +0000 (15:47 +0100)]
Bug 1411 Binding Generator - BaseYangTypes

- provides mapping for YANG built-in types
- prevents Bug 2323 happening

Change-Id: Ic65a4f30d6219f51c8d13eb26c3ff4b14255302e
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBug 6856: Rpc definition should implicitly define input/output 63/52863/4
Martin Ciglan [Mon, 6 Mar 2017 08:59:21 +0000 (09:59 +0100)]
Bug 6856: Rpc definition should implicitly define input/output

- corresponding patch for MDSAL
- code clean-up in affected class

Change-Id: I715585331496d181031f5a82ce801a1b7271c56d
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBUG-6859 - Binding generator v1 refactoring 45/52945/2
Michael Vorburger [Tue, 7 Mar 2017 14:24:15 +0000 (15:24 +0100)]
BUG-6859 - Binding generator v1 refactoring

Change-Id: I03caf0ec587ea9f6db0bdd87ccebc5df9a28edc6
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoBug 6859 #5 Binding generator v1 refactoring 58/52158/14
Jakub Toth [Wed, 22 Feb 2017 09:57:28 +0000 (10:57 +0100)]
Bug 6859 #5 Binding generator v1 refactoring

Based on transfer of Binding generator v1 from
Yangtools project to MDSAL in past, we need to finalize
this process by refactoring package naming:

org.opendaylight.yangtools       -> org.mdsal.binding
org.opendaylight.yangtools.sal -> org.mdsal.binding

This refactoring is done in subsequent steps,
covering all necessary modules. Based on experience,
this should also help users to address possible Binding generator v1
issues in MDSAL project, not in Yangtools.

- maven-sal-api-gen-plugin module refactoring

Change-Id: I17bd25507894b8b5a42579ee317f5d5fd81f3f20
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 6859 #4 Binding generator v1 refactoring 10/52110/15
Jakub Toth [Tue, 21 Feb 2017 12:09:44 +0000 (13:09 +0100)]
Bug 6859 #4 Binding generator v1 refactoring

Based on transfer of Binding generator v1 from
Yangtools project to MDSAL in past, we need to finalize
this process by refactoring package naming:

org.opendaylight.yangtools       -> org.mdsal.binding
org.opendaylight.yangtools.sal -> org.mdsal.binding

This refactoring is done in subsequent steps,
covering all necessary modules. Based on experience,
this should also help users to address possible Binding generator v1
issues in MDSAL project, not in Yangtools.

- mdsal-binding-java-api-generator module refactoring

Change-Id: Ie898adf78ac9db7f094a26f8f41145c8c960fa62
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 6859 #3 Binding generator v1 refactoring 09/52109/15
Jakub Toth [Tue, 21 Feb 2017 11:43:02 +0000 (12:43 +0100)]
Bug 6859 #3 Binding generator v1 refactoring

Based on transfer of Binding generator v1 from
Yangtools project to MDSAL in past, we need to finalize
this process by refactoring package naming:

org.opendaylight.yangtools       -> org.mdsal.binding
org.opendaylight.yangtools.sal -> org.mdsal.binding

This refactoring is done in subsequent steps,
covering all necessary modules. Based on experience,
this should also help users to address possible Binding generator v1
issues in MDSAL project, not in Yangtools.

- mdsal-binding-generator-impl module refactoring

Change-Id: If3a7615d3c2870d02eae8767ca44bcb0981aaa99
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 6859 #2 Binding generator v1 refactoring 08/52108/12
Jakub Toth [Tue, 21 Feb 2017 11:28:10 +0000 (12:28 +0100)]
Bug 6859 #2 Binding generator v1 refactoring

Based on transfer of Binding generator v1 from
Yangtools project to MDSAL in past, we need to finalize
this process by refactoring package naming:

org.opendaylight.yangtools       -> org.mdsal.binding
org.opendaylight.yangtools.sal -> org.mdsal.binding

This refactoring is done in subsequent steps,
covering all necessary modules. Based on experience,
this should also help users to address possible Binding generator v1
issues in MDSAL project, not in Yangtools.

- mdsal-binding-generator-util module refactoring

Change-Id: I978e49a68458d08a9d397a1a2d4bcc455eea1a37
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 6859 #1 Binding generator v1 refactoring 07/52107/12
Jakub Toth [Tue, 21 Feb 2017 11:02:34 +0000 (12:02 +0100)]
Bug 6859 #1 Binding generator v1 refactoring

Based on transfer of Binding generator v1 from
Yangtools project to MDSAL in past, we need to finalize
this process by refactoring package naming:

org.opendaylight.yangtools       -> org.mdsal.binding
org.opendaylight.yangtools.sal -> org.mdsal.binding

This refactoring is done in subsequent steps,
covering all necessary modules. Based on experience,
this should also help users to address possible Binding generator v1
issues in MDSAL project, not in Yangtools.

- mdsal-binding-generator-api module refactoring

Change-Id: I11537d580c8df500b80104d158de6eef515afb1e
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBindingGeneratorImpl Javadoc & code clean-up 92/52492/3
Martin Ciglan [Wed, 1 Mar 2017 11:13:37 +0000 (12:13 +0100)]
BindingGeneratorImpl Javadoc & code clean-up

- redundancies in Java code fixed
- Javadoc wrong references & missing values fixed
- less imports

Change-Id: If6ec121e74f3d936cd55d4e2cc82a33f745da8f6
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoNormalizing package names according to 07/52007/27
Jakub Toth [Fri, 17 Feb 2017 15:21:34 +0000 (16:21 +0100)]
Normalizing package names according to
https://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html

Added parsing of special case with dash in identifier with tests
and documetationf for.

Added parsing of reserved keywords for identifiers with tests and
documentation for.

Change-Id: I7d499b3e96270a8e06e720ef7b63e08fd0362094
Signed-off-by: Jakub Toth <jatoth@cisco.com>
7 years agoBug 7182 related: Remove M2E lifecycle mapping 28/52428/2
Michael Vorburger [Tue, 28 Feb 2017 22:48:43 +0000 (23:48 +0100)]
Bug 7182 related: Remove M2E lifecycle mapping

These should never be in individual projects anymore now,
we handle this centrally, either in odlparent,
or https://github.com/vorburger/opendaylight-eclipse-setup,
or by appropriate lifecycle-mapping-metadata.xml in a Maven plugin
(that's what Bug 7182 does for the yang-maven-plugin).

Change-Id: I3649f9a10066dfacd4762b3270bbb2e112e5858f
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoDo not pull in yang-parser-impl 62/52362/3
Robert Varga [Tue, 28 Feb 2017 12:43:23 +0000 (13:43 +0100)]
Do not pull in yang-parser-impl

Parser is used only in tests and only via test-utils,
hence this project should not be pulling it in.

Change-Id: I336eda6effff373deea0f82f81643ac73e655e83
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBug 6856: Rpc definition should implicitly define input/ouput 48/52348/6
Martin Ciglan [Tue, 28 Feb 2017 09:51:32 +0000 (10:51 +0100)]
Bug 6856: Rpc definition should implicitly define input/ouput

- corresponding fix for MD-SAL
- rely on yang model API only

Change-Id: I7380b7d8366c4c18925da09a95a14f5309a8e9ef
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBump Twirl-maven-plugin version & clean-up 18/52318/2
Martin Ciglan [Mon, 27 Feb 2017 15:11:17 +0000 (16:11 +0100)]
Bump Twirl-maven-plugin version & clean-up

Change-Id: I342a36f07b39520ad99d5e9391f498e00693085c
Signed-off-by: Martin Ciglan <mciglan@cisco.com>
7 years agoBUG-6315: use plugin-provided path resolution 21/52221/5
Robert Varga [Thu, 23 Feb 2017 16:38:51 +0000 (17:38 +0100)]
BUG-6315: use plugin-provided path resolution

Rather than relying on SourceStreamAware, make sure we use
the resolver provided by the plugin.

Change-Id: Ia5ec8a739e10bb262f68b2838958d5111e538263
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoBug 1411: BindingGeneratorImpl decomposition - getter name 56/52256/1
Martin Ciglan [Fri, 24 Feb 2017 14:19:11 +0000 (15:19 +0100)]
Bug 1411: BindingGeneratorImpl decomposition - getter name

- make sure generated getter for data schema nodes
will be compilable Java code

Change-Id: Ie09b90b452d1af3a91bf120df4cff2798ba0b76b
Signed-off-by: Martin Ciglan <mciglan@cisco.com>