yangtools.git
10 years agoMerge "Changed generation of POST operation block"
Tony Tkacik [Mon, 20 Jan 2014 08:46:57 +0000 (08:46 +0000)]
Merge "Changed generation of POST operation block"

10 years agoMerge "BUG-326: quickfix: Log offending type and fallback to strings"
Tony Tkacik [Sun, 19 Jan 2014 20:35:16 +0000 (20:35 +0000)]
Merge "BUG-326: quickfix: Log offending type and fallback to strings"

10 years agoRevert "Revert "Bump all artifacts to 0.6.0-SNAPSHOT"" 09/4409/2
Robert Varga [Sun, 19 Jan 2014 20:22:23 +0000 (21:22 +0100)]
Revert "Revert "Bump all artifacts to 0.6.0-SNAPSHOT""

This reverts commit e83067e904d17644813311d6b184aaa9acfa93f8.

The controller is now ready to receive the revved-up version, except it
fails on a fix which is already present in the repository. Re-bump the
revision such that the controller-side patch
(https://git.opendaylight.org/gerrit/#/c/4298/) can succeed.

Change-Id: Ieca16ad1393d534791643942aeee593e15188802
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoBUG-326: quickfix: Log offending type and fallback to strings 03/4403/1
Robert Varga [Sun, 19 Jan 2014 14:43:41 +0000 (15:43 +0100)]
BUG-326: quickfix: Log offending type and fallback to strings

This expands the NPE site to log the base type for which we failed to
find the codec and fallback to string.

Change-Id: I9d22fb1cc8402a3cc41c2907660b9343ad4feff2
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoUpdate failsafe plugin to 2.15 to match controller 97/4397/1
Robert Varga [Sun, 19 Jan 2014 12:23:52 +0000 (13:23 +0100)]
Update failsafe plugin to 2.15 to match controller

Change-Id: I8208eb390b2b20d6f8b96e9cfa6e6f1428c734fb
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoUse java versions inherited from parent POM 96/4396/1
Robert Varga [Sun, 19 Jan 2014 12:16:34 +0000 (13:16 +0100)]
Use java versions inherited from parent POM

Change-Id: I2816ab11068248b8368bb435a113ed1008370919
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoBump findbugs-maven-plugin to 2.5.3 95/4395/1
Robert Varga [Sun, 19 Jan 2014 12:15:13 +0000 (13:15 +0100)]
Bump findbugs-maven-plugin to 2.5.3

Change-Id: I1eabecac9502d960af1077b5806c581e8ef2540e
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoBump maven-clean-plugin version to 2.5 94/4394/1
Robert Varga [Sun, 19 Jan 2014 12:13:29 +0000 (13:13 +0100)]
Bump maven-clean-plugin version to 2.5

Change-Id: Ic3287796ce08a55f132f873b3a3183e94a2a7b32
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoSpecify minimum maven version to 3.0.4 93/4393/1
Robert Varga [Sun, 19 Jan 2014 12:11:12 +0000 (13:11 +0100)]
Specify minimum maven version to 3.0.4

Change-Id: I4c72bd39553d89d6739236397d9b883658651d45
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoBump build helper plugin version to 1.8 92/4392/1
Robert Varga [Sun, 19 Jan 2014 11:59:57 +0000 (12:59 +0100)]
Bump build helper plugin version to 1.8

Change-Id: Ibc436b49809b171602f1a593c2d293254defe928
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoEnsure all pom.xml files have UNIX encoding 89/4389/1
Robert Varga [Sun, 19 Jan 2014 11:14:39 +0000 (12:14 +0100)]
Ensure all pom.xml files have UNIX encoding

Change-Id: I799a155c6e4a33bbb0acc5164c9e94dc143a1671
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoFix maven release plugin version 88/4388/1
Robert Varga [Sun, 19 Jan 2014 10:50:24 +0000 (11:50 +0100)]
Fix maven release plugin version

Change-Id: Id89f947206b008350e4b06f0e2d0cff69ba07da0
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoUse opendaylight nexus for any dependencies 87/4387/1
Robert Varga [Sun, 19 Jan 2014 10:15:00 +0000 (11:15 +0100)]
Use opendaylight nexus for any dependencies

Change-Id: Ifadbfc8c7ad3f6f9b9dd85e4cc8441b810171f2c
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoAdd missing copyright headers 86/4386/1
Robert Varga [Sun, 19 Jan 2014 10:07:47 +0000 (11:07 +0100)]
Add missing copyright headers

Change-Id: I5562ff8eb78c200652a96fd506c8c96d50ec4d5d
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoAdd project-wide license file 85/4385/1
Robert Varga [Sun, 19 Jan 2014 10:01:41 +0000 (11:01 +0100)]
Add project-wide license file

Change-Id: I8689bf401c16b4b06b02ce08c27953f9befeadde
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoRemove unused imports 82/4382/1
Robert Varga [Sun, 19 Jan 2014 09:48:11 +0000 (10:48 +0100)]
Remove unused imports

Change-Id: I14939b41b5f902df838665897a8d077b31428e63
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoBUG-305: remove the use of System.out 81/4381/1
Robert Varga [Sun, 19 Jan 2014 09:54:34 +0000 (10:54 +0100)]
BUG-305: remove the use of System.out

Change-Id: Id1975d58a432223666ac57b15bd1753cdba27996
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoMerge "SchemaContext extends ContainerSchemaNode"
Tony Tkacik [Fri, 17 Jan 2014 13:19:10 +0000 (13:19 +0000)]
Merge "SchemaContext extends ContainerSchemaNode"

10 years agoSchemaContext extends ContainerSchemaNode 54/4354/1
Martin Sunal [Fri, 17 Jan 2014 11:31:56 +0000 (12:31 +0100)]
SchemaContext extends ContainerSchemaNode

Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years agoIntroduce mockito-configuration from bgpcep 16/4316/3
Robert Varga [Thu, 16 Jan 2014 15:33:58 +0000 (16:33 +0100)]
Introduce mockito-configuration from bgpcep

Change-Id: Id454e3ae9d121f2f75f7c9036c0042280ab6c6c9
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoAdding support for the git-review command line tool 75/3975/2
Colin McNamara [Mon, 30 Dec 2013 03:29:47 +0000 (19:29 -0800)]
Adding support for the git-review command line tool

The OpenStack doc workflow (and entire gerrit workflow) has the
option of using a tool called git-review that automates ChangeID:
creation and management,automates rebasing of local commits
as well as simplifies submiting to gerrit and pulling and
pushing reviews.

Usage of the tool is entirely optional, however it does require
a pointer file named .gitreview in the root of the repository
that is referenced.

I am totally new to this project, if you guys don't want to merge
this then no big deal. However I think this will help with dev's
coming over from OpenStack as it will provide a optional workflow
that is closer to the OpenStack workflow.

It is necessary to run git review -s to append the change-id into
git-hooks the first time you use the tool

Change-Id: I37499ba4e316b93dceba2c112f62263a36e8ccf4
Signed-off-by: Colin McNamara <colin@2cups.com>
10 years agoChanged generation of POST operation block 76/4176/2
Martin Sunal [Mon, 13 Jan 2014 11:34:22 +0000 (12:34 +0100)]
Changed generation of POST operation block

- POST block was changed according to changes in RESTCONF https://git.opendaylight.org/gerrit/#/c/4081/
- added block for DELETE operation
- refactoring

Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years agoMerge "Fixed schema resolution strategy"
Tony Tkacik [Thu, 16 Jan 2014 17:47:26 +0000 (17:47 +0000)]
Merge "Fixed schema resolution strategy"

10 years agoFixed schema resolution strategy 27/4327/1
Tony Tkacik [Thu, 16 Jan 2014 17:05:11 +0000 (18:05 +0100)]
Fixed schema resolution strategy

Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoAdded augment sorting before resolving process. 00/4200/2
Martin Vitez [Tue, 14 Jan 2014 09:29:14 +0000 (10:29 +0100)]
Added augment sorting before resolving process.

Change-Id: I51ca3a9618c71b37f776e886c41e70ba4cb10f84
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoMerge "Fixed potential NPEs in yang-data-impl."
Tony Tkacik [Thu, 16 Jan 2014 15:03:37 +0000 (15:03 +0000)]
Merge "Fixed potential NPEs in yang-data-impl."

10 years agoFixed potential NPEs in yang-data-impl. 07/4307/1
Tony Tkacik [Thu, 16 Jan 2014 13:04:10 +0000 (14:04 +0100)]
Fixed potential NPEs in yang-data-impl.

Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoRevert "Bump all artifacts to 0.6.0-SNAPSHOT" 94/4294/1
Tony Tkacik [Thu, 16 Jan 2014 09:43:09 +0000 (09:43 +0000)]
Revert "Bump all artifacts to 0.6.0-SNAPSHOT"

This reverts commit f5e9689b95d945c22c7a38870681cab899326de9.

Change-Id: I5ca4ae9c8a46b5af8244780cb04ec568b30335d3
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoBump all artifacts to 0.6.0-SNAPSHOT 81/4281/1
Robert Varga [Wed, 15 Jan 2014 21:44:31 +0000 (22:44 +0100)]
Bump all artifacts to 0.6.0-SNAPSHOT

Change-Id: Ie5a279943f7db817af7c94b017103bd7e6fd1d84
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoMerge "Added codec for w3c.Document to yang-data-api with schema support"
Tony Tkacik [Wed, 15 Jan 2014 13:06:11 +0000 (13:06 +0000)]
Merge "Added codec for w3c.Document to yang-data-api with schema support"

10 years agoMerge "Fixed bug when getter for YANG leaf named class colided with getClass()"
Tony Tkacik [Wed, 15 Jan 2014 13:05:59 +0000 (13:05 +0000)]
Merge "Fixed bug when getter for YANG leaf named class colided with getClass()"

10 years agoMerge "Added support for parsing submodules & added dependency utility parser"
Tony Tkacik [Wed, 15 Jan 2014 12:40:29 +0000 (12:40 +0000)]
Merge "Added support for parsing submodules & added dependency utility parser"

10 years agoAdded codec for w3c.Document to yang-data-api with schema support 57/4257/2
Tony Tkacik [Wed, 15 Jan 2014 10:58:15 +0000 (11:58 +0100)]
Added codec for w3c.Document to yang-data-api with schema support

   - Added headers

Change-Id: I6b16652a0c9510463488eefe7786866391bde16e
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFixed bug when getter for YANG leaf named class colided with getClass() 55/4255/2
Tony Tkacik [Wed, 15 Jan 2014 10:55:29 +0000 (11:55 +0100)]
Fixed bug when getter for YANG leaf named class colided with getClass()

  - Updated imports generation to explicitly import also files from same
    package.

Change-Id: Iadbdb2322b50e1b25c9be632960f6298bb654192
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoAdded support for parsing submodules & added dependency utility parser 53/4253/1
Martin Vitez [Mon, 13 Jan 2014 10:06:22 +0000 (11:06 +0100)]
Added support for parsing submodules & added dependency utility parser

All nodes defined in submodule are added to module to which submodule belongs.

Dependency utility parser is small YANG parser which extracts module identifier
(module name,revision) and all imports / includes, so it is easier for
implementations using YANG parser to check if all dependencies are available.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoRevert "Added w3c Document to yang-data-api codec with schema support" 30/4230/2
Tony Tkacik [Tue, 14 Jan 2014 16:00:17 +0000 (16:00 +0000)]
Revert "Added w3c Document to yang-data-api codec with schema support"

This reverts commit 5a53f88da0e878808be2698827842038aefbaa71.

Change-Id: Ic14f16f81b69294d49c0b34d96a98618f5906558
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Revert "Added support for parsing submodules & added dependency utility parser""
Tony Tkacik [Tue, 14 Jan 2014 15:38:46 +0000 (15:38 +0000)]
Merge "Revert "Added support for parsing submodules & added dependency utility parser""

10 years agoRevert "Added support for parsing submodules & added dependency utility parser" 29/4229/1
Tony Tkacik [Tue, 14 Jan 2014 15:31:21 +0000 (15:31 +0000)]
Revert "Added support for parsing submodules & added dependency utility parser"

This change breaked transient dependencies in other projects.

Change-Id: I61ffac622ba14fa113389164f5f2cd350f41818e
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoAdded YangModuleInfo interface. 08/4208/1
Tony Tkacik [Tue, 14 Jan 2014 11:43:45 +0000 (12:43 +0100)]
Added YangModuleInfo interface.

Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoAdded w3c Document to yang-data-api codec with schema support 07/4207/1
Tony Tkacik [Tue, 14 Jan 2014 11:26:21 +0000 (12:26 +0100)]
Added w3c Document to yang-data-api codec with schema support

Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoAdded support for parsing submodules & added dependency utility parser 70/4170/2
Martin Vitez [Mon, 13 Jan 2014 10:06:22 +0000 (11:06 +0100)]
Added support for parsing submodules & added dependency utility parser

All nodes defined in submodule are added to module to which submodule belongs.

Dependency utility parser is small YANG parser which extracts module identifier
(module name,revision) and all imports / includes, so it is easier for
implementations using YANG parser to check if all dependencies are available.

Change-Id: If1c4c5544aaf54e9ba7d8000a6f31cce83a7f9f1
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Signed-off-by: Tony Tkaciik <ttkacik@cisco.com>
10 years agoMerge "Added module sorting to SchemaContext."
Tony Tkacik [Tue, 14 Jan 2014 09:36:33 +0000 (09:36 +0000)]
Merge "Added module sorting to SchemaContext."

10 years agoMerge "Fix for Bug 280."
Tony Tkacik [Tue, 14 Jan 2014 09:36:11 +0000 (09:36 +0000)]
Merge "Fix for Bug 280."

10 years agoAdded module sorting to SchemaContext. 87/4187/1
Martin Vitez [Mon, 13 Jan 2014 16:03:39 +0000 (17:03 +0100)]
Added module sorting to SchemaContext.

Added test.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Introduce RESTCONF Client API"
Robert Varga [Mon, 13 Jan 2014 14:50:10 +0000 (14:50 +0000)]
Merge "Introduce RESTCONF Client API"

10 years agoFix for Bug 280. 73/4173/2
Martin Vitez [Mon, 13 Jan 2014 10:15:41 +0000 (11:15 +0100)]
Fix for Bug 280.

Allowed to augment node with same name as existing node but with different namespace.

Change-Id: I5430eb85a42d30f0b3a4185c4a6b9c958e3b9cdd
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Add copyright header"
Robert Varga [Mon, 13 Jan 2014 12:01:59 +0000 (12:01 +0000)]
Merge "Add copyright header"

10 years agoMerge "Modified parser to return modules sorted by dependencies."
Tony Tkacik [Mon, 13 Jan 2014 09:52:46 +0000 (09:52 +0000)]
Merge "Modified parser to return modules sorted by dependencies."

10 years agoMerge "Yang parser refactoring."
Tony Tkacik [Mon, 13 Jan 2014 09:52:30 +0000 (09:52 +0000)]
Merge "Yang parser refactoring."

10 years agoIntroduce RESTCONF Client API 62/4062/5
Tony Tkacik [Wed, 8 Jan 2014 10:07:34 +0000 (11:07 +0100)]
Introduce RESTCONF Client API

Change-Id: Ibc90532eea3f200acf726a7f8eabae4ac6877aa5
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoAdd copyright header 37/4137/1
Robert Varga [Fri, 10 Jan 2014 15:24:23 +0000 (16:24 +0100)]
Add copyright header

Change-Id: Id788d4b19228b30b19793cd75b444d7d588b021c
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoModified parser to return modules sorted by dependencies. 33/4133/2
Martin Vitez [Fri, 10 Jan 2014 08:19:50 +0000 (09:19 +0100)]
Modified parser to return modules sorted by dependencies.

Change-Id: Iabc57dd6082c62b1731c2312dace382ebc67e39b
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Bug 258 fix"
Tony Tkacik [Thu, 9 Jan 2014 17:09:00 +0000 (17:09 +0000)]
Merge "Bug 258 fix"

10 years agoGenerate WADL for RPCs 21/4121/1
Martin Sunal [Thu, 9 Jan 2014 16:52:52 +0000 (17:52 +0100)]
Generate WADL for RPCs

Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years agoYang parser refactoring. 13/4113/3
Martin Vitez [Wed, 8 Jan 2014 14:52:40 +0000 (15:52 +0100)]
Yang parser refactoring.

Removed getParent() method from DataSchemaNode and DataNodeContainer.
Removed rebuild() method from AugmentationTarget.
Added check of augment target path to parser.
Removed redundant code. Updated tests.

Change-Id: Ie7b5f63e8b655aea91d5137007e85b35f1de6cca
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoBug 258 fix 65/4065/1
Jozef Gloncak [Wed, 8 Jan 2014 11:57:49 +0000 (12:57 +0100)]
Bug 258 fix

If input parameter of serialize method of BitsCodecStringImpl class is
null then empty string is returned.

Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
10 years agoIdentityref XML output 50/4050/3
Jozef Gloncak [Tue, 7 Jan 2014 13:43:24 +0000 (14:43 +0100)]
Identityref XML output

Handle case when type is identityref but value isn't of type QName

Change-Id: I360a429cd0ec7b8bc952d97683fa004c087ff35c
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
10 years agoMerge "Added codec utilities for w3c.Document format."
Tony Tkacik [Mon, 6 Jan 2014 19:51:21 +0000 (19:51 +0000)]
Merge "Added codec utilities for w3c.Document format."

10 years agoAdded codec utilities for w3c.Document format. 35/4035/1
Tony Tkacik [Mon, 6 Jan 2014 19:42:25 +0000 (20:42 +0100)]
Added codec utilities for w3c.Document format.

Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Fixed bug in antlr grammar to enable empty rpc input or output."
Tony Tkacik [Mon, 6 Jan 2014 19:33:19 +0000 (19:33 +0000)]
Merge "Fixed bug in antlr grammar to enable empty rpc input or output."

10 years agoMerge "Documentation generator improvements."
Tony Tkacik [Mon, 6 Jan 2014 19:32:55 +0000 (19:32 +0000)]
Merge "Documentation generator improvements."

10 years agoMake sure we import strictly versioned ietf-inet-types 78/3878/2
Robert Varga [Fri, 20 Dec 2013 18:04:25 +0000 (19:04 +0100)]
Make sure we import strictly versioned ietf-inet-types

In preparation for bumping the revisions, be sure to fix the types
such that they remain compatible with current codebase. Next revision of
the topology models should be bound to the RFC6991 revision of the models.

Change-Id: I2f45bfc4961aa046db7e4f8bd457148819a48eaf
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoOptimize HostBuilder by precompiling matcher pattern 76/3876/3
Robert Varga [Thu, 19 Dec 2013 16:55:01 +0000 (17:55 +0100)]
Optimize HostBuilder by precompiling matcher pattern

Change-Id: I07885e96e17c7f47f51fb6882799f85210c27f15
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoFix javadoc's mention of methodName instead of localName 75/3875/3
Robert Varga [Fri, 20 Dec 2013 15:42:57 +0000 (16:42 +0100)]
Fix javadoc's mention of methodName instead of localName

Change-Id: I036adf000ac37948f4c8c31beea87e824d78bc3c
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoGenerate WADL files for RESTCONF 25/4025/2
Robert Varga [Mon, 6 Jan 2014 08:31:14 +0000 (09:31 +0100)]
Generate WADL files for RESTCONF

Change-Id: I7174f5901183b6e5745d07407f53a6743aa7c246
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoString's length is bound by Integer.MAX_VALUE 74/3874/2
Robert Varga [Fri, 20 Dec 2013 15:40:59 +0000 (16:40 +0100)]
String's length is bound by Integer.MAX_VALUE

This fixes a compilation problem with RFC6991 yang-identifier, which has
unbounded length.

Change-Id: I4a4c142d3a18bae5eb85cca38c3d634777264c48
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoFixed immutable implementation of CompositeNode 70/3870/1
Tony Tkacik [Wed, 18 Dec 2013 16:16:46 +0000 (17:16 +0100)]
Fixed immutable implementation of CompositeNode

Made utility SchemaSourceProvider contract more reusable and explicit

Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFixed parser issue with splitted strings. 69/3869/1
Tony Tkacik [Wed, 18 Dec 2013 16:12:41 +0000 (17:12 +0100)]
Fixed parser issue with splitted strings.

Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoDocumentation generator improvements. 14/3814/2
Martin Vitez [Wed, 18 Dec 2013 11:42:49 +0000 (12:42 +0100)]
Documentation generator improvements.

Updated generation of augment target path.
Updated generation of notificiations.

Change-Id: I477cb9a1baa654792bea7ad21a0edc653538e862
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFixed bug in antlr grammar to enable empty rpc input or output. 18/3818/1
Martin Vitez [Wed, 18 Dec 2013 13:36:19 +0000 (14:36 +0100)]
Fixed bug in antlr grammar to enable empty rpc input or output.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFixed generation of javadocs. 88/3788/1
Martin Vitez [Tue, 17 Dec 2013 12:25:41 +0000 (13:25 +0100)]
Fixed generation of javadocs.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Fixed bug in antlr grammar."
Tony Tkacik [Tue, 17 Dec 2013 09:34:52 +0000 (09:34 +0000)]
Merge "Fixed bug in antlr grammar."

10 years agoMerge "Updated union builder template to throw an exception in getDefaultInstance...
Tony Tkacik [Tue, 17 Dec 2013 09:33:37 +0000 (09:33 +0000)]
Merge "Updated union builder template to throw an exception in getDefaultInstance instead of returning null."

10 years agoFixed bug in antlr grammar. 84/3784/1
Martin Vitez [Tue, 17 Dec 2013 09:10:00 +0000 (10:10 +0100)]
Fixed bug in antlr grammar.

Fixed incorrect string parsing when string is concatenating with + sign.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Added generation of case's child nodes description to documentation generator."
Tony Tkacik [Mon, 16 Dec 2013 17:29:48 +0000 (17:29 +0000)]
Merge "Added generation of case's child nodes description to documentation generator."

10 years agoMerge "Clean up yang parser."
Tony Tkacik [Mon, 16 Dec 2013 17:29:14 +0000 (17:29 +0000)]
Merge "Clean up yang parser."

10 years agoMerge "Created generator for WADL"
Tony Tkacik [Mon, 16 Dec 2013 17:26:57 +0000 (17:26 +0000)]
Merge "Created generator for WADL"

10 years agoMerge "Clean up yang-ext pom file."
Tony Tkacik [Mon, 16 Dec 2013 17:26:33 +0000 (17:26 +0000)]
Merge "Clean up yang-ext pom file."

10 years agoUpdated union builder template to throw an exception in getDefaultInstance instead... 57/3757/1
Martin Vitez [Mon, 16 Dec 2013 14:57:44 +0000 (15:57 +0100)]
Updated union builder template to throw an exception in getDefaultInstance instead of returning null.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoUnion codec in fromType method 47/3747/1
Jozef Gloncak [Mon, 16 Dec 2013 10:57:32 +0000 (11:57 +0100)]
Union codec in fromType method

UNION_DEFAULT_CODEC was added to fromType method of
TypeDefinitionAwareCodec class

Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
10 years agoClean up yang-ext pom file. 44/3744/1
Martin Vitez [Mon, 16 Dec 2013 10:32:39 +0000 (11:32 +0100)]
Clean up yang-ext pom file.

Removed redundant configuration, which is inherited already from parent project.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoUnion codec 99/3699/3
Jozef Gloncak [Fri, 13 Dec 2013 13:39:30 +0000 (14:39 +0100)]
Union codec

Change-Id: Ibbd36ee247b92af53f7e9e9cec1c413daf3364b2
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
10 years agoAdded generation of case's child nodes description to documentation generator. 18/3718/1
Martin Vitez [Fri, 13 Dec 2013 18:28:22 +0000 (19:28 +0100)]
Added generation of case's child nodes description to documentation generator.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoCreated generator for WADL 09/3709/1
msunal [Fri, 13 Dec 2013 15:37:16 +0000 (16:37 +0100)]
Created generator for WADL

- this generator creates WADL file which describe RESTCONFIG web services based on yang module

Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years agoMerge "Added constructor in QName to create instance from String."
Tony Tkacik [Fri, 13 Dec 2013 12:07:14 +0000 (12:07 +0000)]
Merge "Added constructor in QName to create instance from String."

10 years agoMerge "Fix for Bug 241."
Tony Tkacik [Fri, 13 Dec 2013 12:06:43 +0000 (12:06 +0000)]
Merge "Fix for Bug 241."

10 years agoClean up yang parser. 51/3651/3
Martin Vitez [Wed, 11 Dec 2013 17:18:12 +0000 (18:18 +0100)]
Clean up yang parser.

Removed redundant code, refactored some methods.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoImplemented build of default instance for union types. 31/3531/9
Martin Vitez [Fri, 6 Dec 2013 13:13:58 +0000 (14:13 +0100)]
Implemented build of default instance for union types.

For each union type class <union-name>Builder will be generated to folder specified in persistentSourcesDir parameter in build configuration of yang-maven-plugin.
If parameter is not specified, this builder will be generated to src/main/java by default. Each such builder will contain getDefaultInstance method, which accepts String parameter.
This method will be called from union class constuctor with char[] argument and creates default instance for given union type.

Implemented method getParamNameFromType to create param name from given TypeDefinition.
Updated tests.

Change-Id: I78ebe37acd732fd70c6fe152c18c6c91224cb5e4
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFix for Bug 241. 91/3691/1
Martin Vitez [Fri, 13 Dec 2013 08:15:36 +0000 (09:15 +0100)]
Fix for Bug 241.

Removed redundant variable from getLength method.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Added headers to the concepts bundles"
Robert Varga [Fri, 13 Dec 2013 06:33:13 +0000 (06:33 +0000)]
Merge "Added headers to the concepts bundles"

10 years agoAdded headers to the concepts bundles 85/3685/1
Tony Tkacik [Thu, 12 Dec 2013 00:37:36 +0000 (01:37 +0100)]
Added headers to the concepts bundles

  Extracted some of utility code and constants to the concepts and
  yang-binding where it respectivelly belong.

Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoAdded constructor in QName to create instance from String. 76/3676/2
Martin Vitez [Thu, 12 Dec 2013 13:48:36 +0000 (14:48 +0100)]
Added constructor in QName to create instance from String.

Change-Id: I53140102f734c8b29fd5fb60d9f1022acee15b82
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdd ModuleQName annotation. 72/3672/1
Tomas Olvecky [Thu, 12 Dec 2013 10:45:56 +0000 (11:45 +0100)]
Add ModuleQName annotation.

Add ModuleQName annotation so that generated code can maintain description of yang file from which it was derived.

Change-Id: I6d4469acae62fcb4e9b80a814244f1a60e2ad983
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
10 years agoRevert "Added headers to the concepts bundles" 65/3665/1
Tony Tkacik [Thu, 12 Dec 2013 08:27:16 +0000 (08:27 +0000)]
Revert "Added headers to the concepts bundles"

This reverts commit 3b9adead1c6c5ab9f442e16d64614bc7a4941db1.

Change-Id: I9c0bf6b3579cad6c84b4af7fb4889739bf115851
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoAdded headers to the concepts bundles 56/3656/1
Tony Tkacik [Thu, 12 Dec 2013 00:37:36 +0000 (01:37 +0100)]
Added headers to the concepts bundles

  Extracted some of utility code and constants to the concepts and
  yang-binding where it respectivelly belong.

Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Refactored uses statement handling in parser."
Tony Tkacik [Wed, 11 Dec 2013 22:05:29 +0000 (22:05 +0000)]
Merge "Refactored uses statement handling in parser."

10 years agoMerge "Augmentation property included in toString method in generated Builder classes."
Tony Tkacik [Wed, 11 Dec 2013 22:04:24 +0000 (22:04 +0000)]
Merge "Augmentation property included in toString method in generated Builder classes."

10 years agoMerge "Fixed wrong generic definition in builder(Class<Identifiable>,Identifier)"
Robert Varga [Wed, 11 Dec 2013 14:54:54 +0000 (14:54 +0000)]
Merge "Fixed wrong generic definition in builder(Class<Identifiable>,Identifier)"

10 years agoFixed wrong generic definition in builder(Class<Identifiable>,Identifier) 43/3643/1
Tony Tkacik [Wed, 11 Dec 2013 14:47:31 +0000 (15:47 +0100)]
Fixed wrong generic definition in builder(Class<Identifiable>,Identifier)

Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoAugmentation property included in toString method in generated Builder classes. 36/3636/1
Martin Vitez [Wed, 11 Dec 2013 12:25:27 +0000 (13:25 +0100)]
Augmentation property included in toString method in generated Builder classes.

Signed-off-by: Martin Vitez <mvitez@cisco.com>