mdsal.git
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)
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 agoMerge "Fixed missing static constant QNAME in identity classes."
Martin Vitez [Mon, 9 Dec 2013 14:03:58 +0000 (14:03 +0000)]
Merge "Fixed missing static constant QNAME in identity classes."

10 years agoFixed missing static constant QNAME in identity classes.
Tony Tkacik [Mon, 9 Dec 2013 13:56:41 +0000 (14:56 +0100)]
Fixed missing static constant QNAME in identity classes.

Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFixed bug in BuilderTemplate.
Martin Vitez [Mon, 9 Dec 2013 12:59:16 +0000 (13:59 +0100)]
Fixed bug in BuilderTemplate.

If node uses grouping with no child nodes but one or more uses nodes, generated builder class did not contain constructors with arguments for these uses nodes.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFixed enum resolving in TypeProviderImpl.getTypeDefaultConstruction.
Martin Vitez [Wed, 4 Dec 2013 08:59:32 +0000 (09:59 +0100)]
Fixed enum resolving in TypeProviderImpl.getTypeDefaultConstruction.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoDocumentation generated to target/site/restconf.
Martin Vitez [Tue, 3 Dec 2013 14:58:21 +0000 (15:58 +0100)]
Documentation generated to target/site/restconf.

Removed unused plugin from ietf-topology pom.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFix bad message formatting
Robert Varga [Tue, 3 Dec 2013 15:33:54 +0000 (16:33 +0100)]
Fix bad message formatting

Change-Id: Id95d805362ba7971fc61b36cdcd008e12fe7ceac
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoUpdated exception message to provide better error description.
Martin Vitez [Mon, 2 Dec 2013 19:12:20 +0000 (20:12 +0100)]
Updated exception message to provide better error description.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdded documentation generator to build process of models.
Martin Vitez [Mon, 2 Dec 2013 16:53:47 +0000 (17:53 +0100)]
Added documentation generator to build process of models.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoImplemented range validation (Bug 178).
Martin Vitez [Mon, 2 Dec 2013 11:05:12 +0000 (12:05 +0100)]
Implemented range validation (Bug 178).

Fixed bug in generation of leaf-list return types.
Fixed bug in decimal64 range parsing.
Added tests.

Change-Id: If46dbccfb0517b9d92d6bb48f219355e796f834e
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFixed getTypeDefaultConstruction method in TypeProvider.
Martin Vitez [Fri, 29 Nov 2013 14:27:24 +0000 (15:27 +0100)]
Fixed getTypeDefaultConstruction method in TypeProvider.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Added wildcarded contains to InstanceIdentifier"
Robert Varga [Sun, 1 Dec 2013 12:34:08 +0000 (12:34 +0000)]
Merge "Added wildcarded contains to InstanceIdentifier"

10 years agoAdded wildcarded contains to InstanceIdentifier
Tony Tkacik [Sun, 1 Dec 2013 11:21:00 +0000 (12:21 +0100)]
Added wildcarded contains to InstanceIdentifier

Change-Id: I0947116ee0f7bf2b3cd04519c9d6512c716116c6
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Switch to using plexus-build-api for file output"
Tony Tkacik [Sun, 1 Dec 2013 11:52:59 +0000 (11:52 +0000)]
Merge "Switch to using plexus-build-api for file output"

10 years agoSwitch to using plexus-build-api for file output
Robert Varga [Thu, 28 Nov 2013 19:30:18 +0000 (20:30 +0100)]
Switch to using plexus-build-api for file output

This wraps data output through plexus-build-api, which will prevent
files being overwritten and recompiled when they do not change.

Change-Id: Ifffacbd9b1cf1665ea0b1a8103bcb65f6db7a319
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoAdded getDefaultInstance method to classes generated from typedef statement.
Martin Vitez [Fri, 29 Nov 2013 09:17:53 +0000 (10:17 +0100)]
Added getDefaultInstance method to classes generated from typedef statement.

Static method getDefaultInstance in typedef class expects one String parameter and will try to create and return an object of this type with given default value.
Method is not generated for enumeration and instance-identifier types.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Fixed bug in handling enumeration in BaseYangTypes."
Tony Tkacik [Thu, 28 Nov 2013 12:51:58 +0000 (12:51 +0000)]
Merge "Fixed bug in handling enumeration in BaseYangTypes."

10 years agoMerge "Added @ConstructorProperties annotation to constructors of classes generated...
Tony Tkacik [Thu, 28 Nov 2013 10:22:06 +0000 (10:22 +0000)]
Merge "Added @ConstructorProperties annotation to constructors of classes generated from typedef."

10 years agoFixed bug in handling enumeration in BaseYangTypes.
Martin Vitez [Thu, 28 Nov 2013 10:02:00 +0000 (11:02 +0100)]
Fixed bug in handling enumeration in BaseYangTypes.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdded XML examples generation.
Tony Tkacik [Wed, 27 Nov 2013 20:01:22 +0000 (21:01 +0100)]
Added XML examples generation.

Change-Id: I2953cd01501dd9e26dcb69d2de2a30ca493d145e
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoAdded @ConstructorProperties annotation to constructors of classes generated from...
Martin Vitez [Wed, 27 Nov 2013 14:21:48 +0000 (15:21 +0100)]
Added @ConstructorProperties annotation to constructors of classes generated from typedef.

Added getConstructorPropertyName method to TypeProvider to obtain name of constructor property.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoRefresh topology models and make them build
Robert Varga [Wed, 27 Nov 2013 10:18:35 +0000 (11:18 +0100)]
Refresh topology models and make them build

Change-Id: Id967846cc94e23b42b52df198fcb60a0704e27a7
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoFixed bug in generating code for augment.
Martin Vitez [Wed, 27 Nov 2013 12:00:36 +0000 (13:00 +0100)]
Fixed bug in generating code for augment.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFixed handling null parameter while printing tree in GeneratorImpl.xtend
Martin Vitez [Tue, 26 Nov 2013 12:19:30 +0000 (13:19 +0100)]
Fixed handling null parameter while printing tree in GeneratorImpl.xtend

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoBump topology model versions
Robert Varga [Mon, 25 Nov 2013 19:45:23 +0000 (20:45 +0100)]
Bump topology model versions

Change-Id: Ifbc2c52ceb85177558e64a0a8bc98800e7a5dd41
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoFixed bug in generated types storing in TypeProviderImpl.
Martin Vitez [Tue, 26 Nov 2013 10:21:48 +0000 (11:21 +0100)]
Fixed bug in generated types storing in TypeProviderImpl.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Added path to child nodes in documentation generator."
Tony Tkacik [Mon, 25 Nov 2013 18:32:17 +0000 (18:32 +0000)]
Merge "Added path to child nodes in documentation generator."

10 years agoAdded getTypeDefaultConstruction method to TypeProvider.
Martin Vitez [Mon, 25 Nov 2013 16:55:00 +0000 (17:55 +0100)]
Added getTypeDefaultConstruction method to TypeProvider.

Method can be used in code generation to create construction for new type with default value. Added tests.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdded path to child nodes in documentation generator.
Martin Vitez [Fri, 22 Nov 2013 08:53:07 +0000 (09:53 +0100)]
Added path to child nodes in documentation generator.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdd a few useful utilities to InstanceIdentifier
Robert Varga [Tue, 19 Nov 2013 16:37:41 +0000 (17:37 +0100)]
Add a few useful utilities to InstanceIdentifier

Change-Id: Ia31f2a41d346b52e0426d20f0c790e404e319e21
Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoAdded toString method to generated inner implementation in builder classes.
Martin Vitez [Tue, 19 Nov 2013 15:45:32 +0000 (16:45 +0100)]
Added toString method to generated inner implementation in builder classes.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Added export of augmentation schemas to Binding Context"
Tony Tkacik [Tue, 19 Nov 2013 13:56:40 +0000 (13:56 +0000)]
Merge "Added export of augmentation schemas to Binding Context"

10 years agoAdded export of augmentation schemas to Binding Context
Tony Tkacik [Tue, 19 Nov 2013 13:47:05 +0000 (14:47 +0100)]
Added export of augmentation schemas to Binding Context

Change-Id: I881fcf83ec76639fa0c37c272e84a9866fe03ce9
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Fix for Bug 134: added restriction check to classes wrapping int and uint...
Tony Tkacik [Tue, 19 Nov 2013 13:43:53 +0000 (13:43 +0000)]
Merge "Fix for Bug 134: added restriction check to classes wrapping int and uint values."

10 years agoMerge "Implemented typedef units statement in generated code."
Tony Tkacik [Tue, 19 Nov 2013 13:43:19 +0000 (13:43 +0000)]
Merge "Implemented typedef units statement in generated code."

10 years agoMerge "Make builder typesafe by default and deprecate type-unsafe interfaces"
Tony Tkacik [Tue, 19 Nov 2013 13:42:51 +0000 (13:42 +0000)]
Merge "Make builder typesafe by default and deprecate type-unsafe interfaces"

10 years agoFix for Bug 134: added restriction check to classes wrapping int and uint values.
Martin Vitez [Tue, 19 Nov 2013 09:27:36 +0000 (10:27 +0100)]
Fix for Bug 134: added restriction check to classes wrapping int and uint values.

Fixed min and max value for Int64 class.
Implemented error log in parser if string token has missing starting quotation.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoImplemented typedef units statement in generated code.
Martin Vitez [Mon, 18 Nov 2013 10:54:39 +0000 (11:54 +0100)]
Implemented typedef units statement in generated code.

Added _UNITS constant to classes generated from typedefs with units statement (except typedef with enumeration as base type).
Updated tests.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoEnhancement of documentation generator.
Martin Vitez [Fri, 15 Nov 2013 11:56:45 +0000 (12:56 +0100)]
Enhancement of documentation generator.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdded initial version of documentation generator.
Martin Vitez [Thu, 14 Nov 2013 16:40:15 +0000 (17:40 +0100)]
Added initial version of documentation generator.

Fixed bug in code generator imports.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMake builder typesafe by default and deprecate type-unsafe interfaces
Robert Varga [Thu, 14 Nov 2013 10:21:32 +0000 (11:21 +0100)]
Make builder typesafe by default and deprecate type-unsafe interfaces

This concludes the conversion to typesafe builders, by introducing two
new factory methods which can be used with top-level containers,
resulting in a type-initialized container, on which child() and
augmentation() methods work as expected.

Since using this instantiation guides the developer and provides useful
compile-time feedback on what constitutes a valid InstanceIdentifier,
deprecate the old, unsafe interface.

Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoAdd augmentation() method
Robert Varga [Wed, 13 Nov 2013 20:52:08 +0000 (21:52 +0100)]
Add augmentation() method

This is a safer alternative to node(). With this, we are almost able to
deprecate node() from the public API, providing type-safe alternatives
to all operations.

Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoRemove unnecessary warning suppression
Robert Varga [Wed, 13 Nov 2013 20:39:09 +0000 (21:39 +0100)]
Remove unnecessary warning suppression

Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoMerge "Bugfix in CompositeNode implementation, InstanceIdentifier builder."
Robert Varga [Wed, 13 Nov 2013 16:49:08 +0000 (16:49 +0000)]
Merge "Bugfix in CompositeNode implementation, InstanceIdentifier builder."

10 years agoAdded Codec concepts to the binding,
Tony Tkacik [Wed, 13 Nov 2013 14:17:38 +0000 (15:17 +0100)]
Added Codec concepts to the binding,
QNAME helper, data-dom also accessible as Map<QName,Object>

Change-Id: I37ceef6e6c7a29293e1c4c557c52df852c65b90f
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFixed bug in constructor of list implementation.
Martin Vitez [Wed, 13 Nov 2013 11:03:49 +0000 (12:03 +0100)]
Fixed bug in constructor of list implementation.

Properties of list implementation are filled from properties of list key, if available.
Changed name of list key properties: name start with lower case instead of upper case.
Updated tests.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoBugfix in CompositeNode implementation, InstanceIdentifier builder.
Tony Tkacik [Tue, 12 Nov 2013 18:52:40 +0000 (19:52 +0100)]
Bugfix in CompositeNode implementation, InstanceIdentifier builder.

Change-Id: I546219be7348da37bb4a35d4cda208942b155b18
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoAdded serialVersionUID field to classes generated from list key.
Martin Vitez [Tue, 12 Nov 2013 13:00:20 +0000 (14:00 +0100)]
Added serialVersionUID field to classes generated from list key.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdded check for valid length to typedef constructors.
Martin Vitez [Tue, 12 Nov 2013 08:56:25 +0000 (09:56 +0100)]
Added check for valid length to typedef constructors.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdded getLength method to classes generated from typedef statement.
Martin Vitez [Mon, 11 Nov 2013 15:39:17 +0000 (16:39 +0100)]
Added getLength method to classes generated from typedef statement.

Fixed generated classes from typedef with union base type.
Added more tests.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdded QName.create(), fixed Path generic in YANG binding.
Tony Tkacik [Sun, 10 Nov 2013 19:11:13 +0000 (20:11 +0100)]
Added QName.create(), fixed Path generic in YANG binding.

Change-Id: I3f67cd3fae95efb9725d0b16a252446049d13159
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFix for Bug 140.
Martin Vitez [Fri, 8 Nov 2013 08:27:29 +0000 (09:27 +0100)]
Fix for Bug 140.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoOptimized method "fieldsFrom" in builder classes.
Martin Vitez [Thu, 7 Nov 2013 14:11:48 +0000 (15:11 +0100)]
Optimized method "fieldsFrom" in builder classes.

Added javadoc to method. Added throw clause if given argument is none of valid types.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoImplemented length statement. Added new method to Builder classes.
Martin Vitez [Wed, 6 Nov 2013 14:26:02 +0000 (15:26 +0100)]
Implemented length statement. Added new method to Builder classes.

 - Implemented type length restriction in generated code (Bug 93).
 - Setters for binary and string fields contains check for valid length.

 - Added new "fieldsFrom(DataObject arg)" method to Builder classes.
 - Method accepts class generated from grouping and serves as setter of properties based on grouping type.

Change-Id: I402ef1d76a68cdde3f4a8a8c74d2100ac38a6487
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoImplemented use of ChildOf interface in generated classes.
Martin Vitez [Thu, 31 Oct 2013 11:43:00 +0000 (12:43 +0100)]
Implemented use of ChildOf interface in generated classes.

Change-Id: I4795dde99f562258e7bc9670fe418c432aeccc5c
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Extended builders constructors."
Tony Tkacik [Tue, 29 Oct 2013 07:02:01 +0000 (07:02 +0000)]
Merge "Extended builders constructors."

10 years agoMerge "Fixed dependent artifacts version in poms."
Tony Tkacik [Mon, 28 Oct 2013 18:51:21 +0000 (18:51 +0000)]
Merge "Fixed dependent artifacts version in poms."

10 years agoExtended builders constructors.
Martin Vitez [Mon, 28 Oct 2013 14:13:48 +0000 (15:13 +0100)]
Extended builders constructors.

Constructors are generated also for implemented types from uses of nested nodes.

Change-Id: I7591c6124706b7104bcafec6d70cce16309bede4
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFixed dependent artifacts version in poms.
Martin Vitez [Mon, 28 Oct 2013 12:53:20 +0000 (13:53 +0100)]
Fixed dependent artifacts version in poms.

Unified versions with controller project. Removed unused declarations.
Removed unused imports.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFix for Bug 125.
Martin Vitez [Mon, 28 Oct 2013 09:55:43 +0000 (10:55 +0100)]
Fix for Bug 125.

Fixed bug in grouping definitions sort.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFix for Bug 123.
Martin Vitez [Fri, 25 Oct 2013 13:28:54 +0000 (15:28 +0200)]
Fix for Bug 123.

Added more tests.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdded constructors to builder classes based on implemented interfaces from uses nodes.
Martin Vitez [Thu, 24 Oct 2013 16:22:19 +0000 (18:22 +0200)]
Added constructors to builder classes based on implemented interfaces from uses nodes.

Added more tests.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Added more Rpc markers to yang-binding."
Tony Tkacik [Wed, 23 Oct 2013 16:04:10 +0000 (16:04 +0000)]
Merge "Added more Rpc markers to  yang-binding."

10 years agoAdded more Rpc markers to yang-binding.
Tony Tkacik [Wed, 23 Oct 2013 15:46:59 +0000 (17:46 +0200)]
Added more Rpc markers to  yang-binding.

Change-Id: I7a0344382b7308cc5884e32682499527808773c5
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoAdded getParent() method to DataSchemaNode and DataNodeContainer. Fixed Bugs.
Martin Vitez [Tue, 22 Oct 2013 20:54:19 +0000 (22:54 +0200)]
Added getParent() method to DataSchemaNode and DataNodeContainer. Fixed Bugs.

Fix for Bug 119.
Fix for Bug 120.
Fix for Bug 121.

Added more tests.

Change-Id: I7a88a1dc4b0ff8c277afab0560c89e91c8ff1a21
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFixed utility method to validate java package name.
Martin Vitez [Fri, 18 Oct 2013 11:08:52 +0000 (13:08 +0200)]
Fixed utility method to validate java package name.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMinor code refactoring.
Martin Vitez [Mon, 14 Oct 2013 16:03:00 +0000 (18:03 +0200)]
Minor code refactoring.

 - fixed code formatting
 - removed redundant code
 - replaced explicitly defined generic type parameters with Java 7 diamond type '<>'
 - replaced too complex if/else statements with switch where possible
 - updated javadocs

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Extended compilation test."
Tony Tkacik [Mon, 14 Oct 2013 13:36:20 +0000 (13:36 +0000)]
Merge "Extended compilation test."

10 years agoExtended compilation test.
Martin Vitez [Mon, 14 Oct 2013 12:28:23 +0000 (14:28 +0200)]
Extended compilation test.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdded support for yang-ext:context-reference extension.
Martin Vitez [Fri, 11 Oct 2013 17:02:52 +0000 (19:02 +0200)]
Added support for yang-ext:context-reference extension.

Change-Id: I32edf7c80016cd46af07b65f6c4577aa6188a0f7
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoUpdated signature of getImplementedInterface
Tony Tkacik [Fri, 11 Oct 2013 14:58:52 +0000 (16:58 +0200)]
Updated signature of getImplementedInterface

Change-Id: If8f26aacfc10abfa31c6c5daccb1188dd21e7647
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFixed incorect placement of getImplementedInterfaces()
Tony Tkacik [Fri, 11 Oct 2013 14:18:09 +0000 (16:18 +0200)]
Fixed incorect placement of getImplementedInterfaces()

Change-Id: Ia9ce65f066d2e7503f10316818448b9ece5814cc
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoAdded supported for returning class object of implemented contract
Tony Tkacik [Fri, 11 Oct 2013 12:43:51 +0000 (14:43 +0200)]
Added supported for returning class object of implemented contract

Change-Id: I4203c50cb5f58f86a3e789d1ed653cce4d7314ee
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Improved generation of hashCode and equals."
Tony Tkacik [Thu, 10 Oct 2013 11:50:44 +0000 (11:50 +0000)]
Merge "Improved generation of hashCode and equals."

10 years agoImproved generation of hashCode and equals.
Martin Vitez [Thu, 10 Oct 2013 10:59:17 +0000 (12:59 +0200)]
Improved generation of hashCode and equals.

Fix for Bug 103.
Fixed generation of hashCode and equals for array variables using Arrays.hashCode and Arrays.equals.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge changes I14f284cc,I65bfdb56
Tony Tkacik [Thu, 10 Oct 2013 10:21:54 +0000 (10:21 +0000)]
Merge changes I14f284cc,I65bfdb56

* changes:
  Added support for identity statement.
  Fixed bug in resolving refine statement. (Bug 111)

10 years agoMerge "public modifier added"
Tony Tkacik [Wed, 9 Oct 2013 16:21:24 +0000 (16:21 +0000)]
Merge "public modifier added"

10 years agoAdded support for identity statement.
Martin Vitez [Wed, 9 Oct 2013 16:06:49 +0000 (18:06 +0200)]
Added support for identity statement.

Implemented enhancement Bug 102.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agopublic modifier added
Jozef Gloncak [Wed, 9 Oct 2013 14:22:56 +0000 (16:22 +0200)]
public modifier added

Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
10 years agoMerge "Added generated code compilation test."
Tony Tkacik [Wed, 9 Oct 2013 11:13:47 +0000 (11:13 +0000)]
Merge "Added generated code compilation test."

10 years agoAdded generated code compilation test.
Martin Vitez [Wed, 9 Oct 2013 09:11:50 +0000 (11:11 +0200)]
Added generated code compilation test.

Added allGroupings method to DataNodeIterator. Updated grouping handling in BindingGeneratorImpl.xtend.

Change-Id: Ia2e720d2741169e59bce7a4079cfd6813a76409a
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFixed bug in generating code for augments defined in uses.
Martin Vitez [Tue, 8 Oct 2013 13:47:51 +0000 (15:47 +0200)]
Fixed bug in generating code for augments defined in uses.

Fix for Bug 106.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoUpdated Concepts & YANG Binding
Tony Tkacik [Tue, 8 Oct 2013 06:53:57 +0000 (08:53 +0200)]
Updated Concepts & YANG Binding

  - Added Path concept
  - Updated InstanceIdentifier
     - implements Path
     - Generic parameter T which represents Target Type
  - Added ChildOf Marker interface
  - Added DataContainer marker interface

Change-Id: I3875de61add780803b7cf89d4c6789bb345bd409
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFixed bug in generating code for rpc statement. (Bug 107)
Martin Vitez [Mon, 7 Oct 2013 15:56:11 +0000 (17:56 +0200)]
Fixed bug in generating code for rpc statement. (Bug 107)

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFixed bug in augment parsing.
Martin Vitez [Mon, 7 Oct 2013 07:22:09 +0000 (09:22 +0200)]
Fixed bug in augment parsing.

Bug appears when two augments point to same target node which was added by uses statement.

Change-Id: I92a9d0586c9c94cd92a929a492272cdbd54be492
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFixed bug in augmentation of choice nodes.
Martin Vitez [Fri, 4 Oct 2013 07:13:29 +0000 (09:13 +0200)]
Fixed bug in augmentation of choice nodes.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdded sorting of constructor arguments.
Martin Vitez [Thu, 3 Oct 2013 13:36:46 +0000 (15:36 +0200)]
Added sorting of constructor arguments.

Fix for Bug 101.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Added documentation to yang-binding, updated dependencies."
Robert Varga [Wed, 2 Oct 2013 19:23:27 +0000 (19:23 +0000)]
Merge "Added documentation to yang-binding, updated dependencies."

10 years agoAdded documentation to yang-binding, updated dependencies.
Tony Tkacik [Wed, 2 Oct 2013 17:52:57 +0000 (19:52 +0200)]
Added documentation to yang-binding, updated dependencies.

Change-Id: I1ed36c8539b496a44595f8895737accc7c77d8b8
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFixed generated code for augmented nodes.
Martin Vitez [Wed, 2 Oct 2013 14:16:11 +0000 (16:16 +0200)]
Fixed generated code for augmented nodes.

Fix for Bug 92.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Fix for bug Bug 100 and Bug 87"
Martin Vitez [Wed, 2 Oct 2013 14:07:50 +0000 (14:07 +0000)]
Merge "Fix for bug Bug 100 and Bug 87"

10 years agoFix for bug Bug 100 and Bug 87
Tony Tkacik [Wed, 2 Oct 2013 13:59:40 +0000 (15:59 +0200)]
Fix for bug Bug 100 and Bug 87

Bug 87 Reworked imports such offending import statements are not present anymore.
Bug 100 Added missing call for Choice nodes.

Change-Id: Iea57338bfc19b1071a3cf6525616422e68c75e52
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Fixed bug with Key generation with fields added from grouping"
Tony Tkacik [Wed, 2 Oct 2013 12:42:10 +0000 (12:42 +0000)]
Merge "Fixed bug with Key generation with fields added from grouping"

10 years agoFixed bug with Key generation with fields added from grouping
Tony Tkacik [Wed, 2 Oct 2013 12:25:09 +0000 (14:25 +0200)]
Fixed bug with Key generation with fields added from grouping

Change-Id: Id631663eb02d9816c92829e6f3fe0f0e10a0d358
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Bumped code generator version for model project."
Tony Tkacik [Wed, 2 Oct 2013 11:42:05 +0000 (11:42 +0000)]
Merge "Bumped code generator version for model project."

10 years agoMerge "Updated Concepts descriptions"
Tony Tkacik [Wed, 2 Oct 2013 10:54:55 +0000 (10:54 +0000)]
Merge "Updated Concepts descriptions"

10 years agoUpdated Concepts descriptions
Tony Tkacik [Wed, 2 Oct 2013 10:06:57 +0000 (12:06 +0200)]
Updated Concepts descriptions

Added fluent builder to the instance identifier.

Change-Id: Icd28833f53a8365ec1d6e00b075db003dd421098
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoBumped code generator version for model project.
Martin Vitez [Tue, 1 Oct 2013 14:50:16 +0000 (16:50 +0200)]
Bumped code generator version for model project.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdded equals and hashcode to builder implementations.
Martin Vitez [Tue, 1 Oct 2013 12:07:36 +0000 (14:07 +0200)]
Added equals and hashcode to builder implementations.

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