yangtools.git
10 years agoMerge "Added reusable string codecs to yang-data-impl"
Martin Vitez [Tue, 3 Dec 2013 16:26:34 +0000 (16:26 +0000)]
Merge "Added reusable string codecs to yang-data-impl"

10 years agoAdded reusable string codecs to yang-data-impl 02/3402/1
Tony Tkacik [Tue, 3 Dec 2013 15:38:36 +0000 (16:38 +0100)]
Added reusable string codecs to yang-data-impl

Change-Id: Icc4e990a0e740220f180c139cd4fc9388e449ba6
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFix bad message formatting 01/3401/1
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. 67/3367/1
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. 66/3366/1
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 agoAdded warning log when more modules with same namespace are loaded. 39/3339/2
Martin Vitez [Mon, 2 Dec 2013 12:30:17 +0000 (13:30 +0100)]
Added warning log when more modules with same namespace are loaded.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoImplemented range validation (Bug 178). 26/3326/2
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. 25/3325/1
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 86/3286/2
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 18/3218/5
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. 53/3253/1
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 agoFixed thread-safety for creating QName revision from string. 34/3234/1
Tony Tkacik [Fri, 29 Nov 2013 09:08:02 +0000 (10:08 +0100)]
Fixed thread-safety for creating QName revision from string.

Change-Id: I83eb8ad1cf296c27987a389472eec7139212dae6
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFixed bug in QName of augmented nodes added by uses statement. 01/3201/2
Martin Vitez [Thu, 28 Nov 2013 12:54:26 +0000 (13:54 +0100)]
Fixed bug in QName of augmented nodes added by uses statement.

Change-Id: Idb332f2829be3846579438593990117aa97415c8
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. 83/3183/1
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. 50/3150/1
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 agoMerge "MutableCopomositeNodeTOImpl as mutable implementation of CompositeNode"
Tony Tkacik [Wed, 27 Nov 2013 16:57:15 +0000 (16:57 +0000)]
Merge "MutableCopomositeNodeTOImpl as mutable implementation of CompositeNode"

10 years agoMutableCopomositeNodeTOImpl as mutable implementation of CompositeNode 35/3135/1
msunal [Wed, 27 Nov 2013 15:47:43 +0000 (16:47 +0100)]
MutableCopomositeNodeTOImpl as mutable implementation of CompositeNode

- MutableCopomositeNodeTOImpl extends AbstractNodeTO instead of CompositeNodeTOImpl

Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years agoAdded @ConstructorProperties annotation to constructors of classes generated from... 32/3132/1
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 19/3119/4
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 module dependency sort to allow parsing modules with same name and different... 27/3127/1
Martin Vitez [Wed, 27 Nov 2013 13:46:38 +0000 (14:46 +0100)]
Fixed module dependency sort to allow parsing modules with same name and different revisions.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFixed bug in generating code for augment. 21/3121/1
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 96/3096/1
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 78/3078/2
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. 92/3092/1
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. 68/3068/1
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 agoMade SimpleDateFormat as instance variable instead of static. 52/3052/1
Martin Vitez [Mon, 25 Nov 2013 09:06:58 +0000 (10:06 +0100)]
Made SimpleDateFormat as instance variable instead of static.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoUpdated logging in ModuleDependencySort. 51/3051/1
Martin Vitez [Fri, 22 Nov 2013 17:14:00 +0000 (18:14 +0100)]
Updated logging in ModuleDependencySort.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdded path to child nodes in documentation generator. 88/2988/1
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 79/2979/2
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 module name to error log from parser. 92/2892/2
Martin Vitez [Wed, 20 Nov 2013 09:19:45 +0000 (10:19 +0100)]
Added module name to error log from parser.

Change-Id: I18f7ad0e1af447e2786e623e40bd23701bea77f1
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdded toString method to generated inner implementation in builder classes. 76/2876/1
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 65/2865/1
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 "Fix for Bug 95: Produce JAR files with better stylesheet."
Tony Tkacik [Tue, 19 Nov 2013 13:43:37 +0000 (13:43 +0000)]
Merge "Fix for Bug 95: Produce JAR files with better stylesheet."

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. 59/2859/1
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 agoFix for Bug 95: Produce JAR files with better stylesheet. 22/2822/1
Martin Vitez [Mon, 18 Nov 2013 13:05:05 +0000 (14:05 +0100)]
Fix for Bug 95: Produce JAR files with better stylesheet.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoImplemented typedef units statement in generated code. 21/2821/1
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. 70/2770/1
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. 48/2748/1
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 32/2732/1
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 20/2720/1
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 19/2719/1
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, 08/2708/2
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. 95/2695/1
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. 77/2677/1
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. 63/2663/1
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. 46/2646/1
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. 16/2616/1
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. 89/2589/1
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 agoMerge "Updated toString for BI InstanceIdentifier"
Martin Vitez [Fri, 8 Nov 2013 12:28:05 +0000 (12:28 +0000)]
Merge "Updated toString for BI InstanceIdentifier"

10 years agoMerge "CompositeNode and its mutable/immutable objects"
Martin Vitez [Fri, 8 Nov 2013 12:24:57 +0000 (12:24 +0000)]
Merge "CompositeNode and its mutable/immutable objects"

10 years agoUpdated toString for BI InstanceIdentifier 48/2548/1
Tony Tkacik [Fri, 8 Nov 2013 12:12:21 +0000 (13:12 +0100)]
Updated toString for BI InstanceIdentifier

Change-Id: I3b12713c2144d7bb49bd86620edba4b238b7c895
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoCompositeNode and its mutable/immutable objects 47/2547/1
msunal [Fri, 8 Nov 2013 12:07:40 +0000 (13:07 +0100)]
CompositeNode and its mutable/immutable objects

- getChildren() method in CompositeNodeTOImpl returns immutable List
- getChildren() method in MutableCompositeNodeTOImpl returns mutable List
- XmlTreeBuilder calls init() on MutableCompositeNode after children are added

Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years agoFix for Bug 140. 39/2539/1
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. 07/2507/1
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. 44/2444/3
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 agoExposed exceptions in XmlTreeBuilder 85/2385/1
msunal [Tue, 5 Nov 2013 12:42:42 +0000 (13:42 +0100)]
Exposed exceptions in XmlTreeBuilder

- solved bad handling of exceptions in private methods
- formatting

Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years agoUpdated error handling. 94/2294/1
Martin Vitez [Thu, 31 Oct 2013 14:50:45 +0000 (15:50 +0100)]
Updated error handling.

Exceptions raised during base parsing phase (in YangParserListenerImpl) are collected and thrown as one exception.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoImplemented use of ChildOf interface in generated classes. 82/2282/2
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 agoMerge "Added serializable marker to the immutable objects"
Tony Tkacik [Mon, 28 Oct 2013 18:49:02 +0000 (18:49 +0000)]
Merge "Added serializable marker to the immutable objects"

10 years agoAdded serializable marker to the immutable objects 28/2228/1
Tony Tkacik [Mon, 28 Oct 2013 18:33:35 +0000 (19:33 +0100)]
Added serializable marker to the immutable objects

Change-Id: I565efcc8cfcf58c36219bf17b76c9ca2c33f7e7b
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoExtended builders constructors. 19/2219/2
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. 17/2217/1
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. 10/2210/1
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 agoAdded ListenerRegistry to concepts. 92/2192/1
Tony Tkacik [Sun, 27 Oct 2013 15:54:36 +0000 (16:54 +0100)]
Added ListenerRegistry to concepts.

Change-Id: I7530da42d1447a1db04c3998cc62d7a3241eea22
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFix for Bug 123. 64/2164/1
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. 47/2147/1
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 agoSolved NPE in InstanceIdentifier builder 42/2142/1
msunal [Thu, 24 Oct 2013 13:53:02 +0000 (15:53 +0200)]
Solved NPE in InstanceIdentifier builder

- List was not initialized

Signed-off-by: Martin Sunal <msunal@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. 11/2111/1
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. 87/2087/2
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. 08/2008/1
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 agoMore code refactoring. 28/1928/1
Martin Vitez [Wed, 16 Oct 2013 12:26:41 +0000 (14:26 +0200)]
More code refactoring.

 - fixed code formatting
 - removed redundant code
 - added more tests

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFixed bug in resolving groupings. 08/1908/2
Martin Vitez [Tue, 15 Oct 2013 14:55:21 +0000 (16:55 +0200)]
Fixed bug in resolving groupings.

Fixed bug which cause that nodes added by uses were generated duplicated.
Updated tests, minor code refactoring.

Change-Id: I695fef3ec65baae40c2b57bc68054f930f1fdd84
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Removed third-party after third-party release"
Tony Tkacik [Tue, 15 Oct 2013 10:37:37 +0000 (10:37 +0000)]
Merge "Removed third-party after third-party release"

10 years agoRemoved third-party after third-party release 00/1900/1
Tony Tkacik [Tue, 15 Oct 2013 10:25:52 +0000 (12:25 +0200)]
Removed third-party after third-party release

Change-Id: I1849b1457cff01c0ea8c15b75f7c3619147e0d0c
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Release of OSGIfied YANG Tools dependencies"
Tony Tkacik [Tue, 15 Oct 2013 09:26:11 +0000 (09:26 +0000)]
Merge "Release of OSGIfied YANG Tools dependencies"

10 years agoRelease of OSGIfied YANG Tools dependencies 99/1899/3 third-party-0.1.2
Tony Tkacik [Tue, 15 Oct 2013 09:11:07 +0000 (11:11 +0200)]
Release of OSGIfied YANG Tools dependencies

Change-Id: I2d4ae6ed3920d70d982f0b30a10eda80d4d62ec5
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMinor code refactoring. 80/1880/1
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 agoMerge "Updated concepts, mapped InstanceIdentifier to Concepts"
Tony Tkacik [Mon, 14 Oct 2013 12:38:17 +0000 (12:38 +0000)]
Merge "Updated concepts, mapped InstanceIdentifier to Concepts"

10 years agoExtended compilation test. 73/1873/1
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 agoUpdated concepts, mapped InstanceIdentifier to Concepts 72/1872/1
Tony Tkacik [Mon, 14 Oct 2013 11:57:04 +0000 (13:57 +0200)]
Updated concepts, mapped InstanceIdentifier to Concepts

Change-Id: Id02325b55fbcc912344f8ef2afa7a36be24ea4c2
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoAdded getDerivedIdentities() method to IdentitySchemaNode. Updated test. 65/1865/1
Martin Vitez [Mon, 14 Oct 2013 07:10:01 +0000 (09:10 +0200)]
Added getDerivedIdentities() method to IdentitySchemaNode. Updated test.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFix yang-binding version mismatch 44/1844/1
Robert Varga [Fri, 11 Oct 2013 22:17:40 +0000 (00:17 +0200)]
Fix yang-binding version mismatch

Signed-off-by: Robert Varga <rovarga@cisco.com>
10 years agoAdded support for yang-ext:context-reference extension. 41/1841/2
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 37/1837/1
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() 32/1832/1
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 31/1831/1
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>