yangtools.git
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 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>
10 years agoImplementation for Binary codec 32/3632/2
Jozef Gloncak [Wed, 11 Dec 2013 08:35:17 +0000 (09:35 +0100)]
Implementation for Binary codec

Change-Id: I1d442b9d20be2100aeab9554640a90fb15a1a9d6
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
10 years agoRefactored uses statement handling in parser. 99/3499/4
Martin Vitez [Thu, 5 Dec 2013 11:47:33 +0000 (12:47 +0100)]
Refactored uses statement handling in parser.

Change-Id: I653c77a496fb6a2a5ac922d6684316f4bb60f5d3
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMake CompositeNodeTO and SimpleNodeTO serializable 91/3591/2
Moiz Raja [Mon, 9 Dec 2013 17:45:08 +0000 (09:45 -0800)]
Make CompositeNodeTO and SimpleNodeTO serializable

These classes need to be serializable so that when instances are added in an infinispan
they can be properly marshalled across a cluster

Change-Id: Ib4d04e90bc89e8d198b25bca169827348b17eae1
Signed-off-by: Moiz Raja <moraja@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. 76/3576/1
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. 74/3574/1
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 Bug 214 66/3566/1
msunal [Mon, 9 Dec 2013 11:37:13 +0000 (12:37 +0100)]
Fixed Bug 214

- bug 214 was reported as restconf bug but it was bug of yangtools

Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years agoAdded general codec pattern to the concepts. Updated yang-data codec definitions. 94/3494/1
Tony Tkacik [Thu, 5 Dec 2013 09:53:07 +0000 (10:53 +0100)]
Added general codec pattern to the concepts. Updated yang-data codec definitions.

Change-Id: Ife6007fa22851c2af186f49ab32a2e65a90ed3be
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Added API with codecs for yang build-in types"
Tony Tkacik [Thu, 5 Dec 2013 07:01:38 +0000 (07:01 +0000)]
Merge "Added API with codecs for yang build-in types"

10 years agoAdded API with codecs for yang build-in types 53/3453/1
msunal [Wed, 4 Dec 2013 14:58:02 +0000 (15:58 +0100)]
Added API with codecs for yang build-in types

- this API should be implemented by consumer/provider who wants to make conversion from own type to build-in yang type and vice versa
- TypeDefinitionAwareCodec contains conversion between build-in types (except leafref, identityref, instance-identifier) and String

Signed-off-by: Martin Sunal <msunal@cisco.com>
10 years agoFixed enum resolving in TypeProviderImpl.getTypeDefaultConstruction. 27/3427/1
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. 09/3409/1
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 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>