yangtools.git
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 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>
10 years agoAdded possibility to augment rpc nodes. Updated test. 27/1827/2
Martin Vitez [Fri, 11 Oct 2013 10:54:11 +0000 (12:54 +0200)]
Added possibility to augment rpc nodes. Updated test.

Change-Id: Id60d7638b74c595a429e0c36900d40dd3015833d
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoTemporary disabled method getDerivedIdentities() from IdentitySchemaNode. 23/1823/1
Martin Vitez [Fri, 11 Oct 2013 09:34:32 +0000 (11:34 +0200)]
Temporary disabled method getDerivedIdentities() from IdentitySchemaNode.

Signed-off-by: Martin Vitez <mvitez@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. 96/1796/1
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. 78/1778/1
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 72/1772/1
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 agoFixed bug in resolving refine statement. (Bug 111) 70/1770/1
Martin Vitez [Wed, 9 Oct 2013 11:12:43 +0000 (13:12 +0200)]
Fixed bug in resolving refine statement. (Bug 111)

Signed-off-by: Martin Vitez <mvitez@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. 64/1764/3
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 agoMerge "Updated Registration concepts to use Autocloseable"
Tony Tkacik [Wed, 9 Oct 2013 10:02:21 +0000 (10:02 +0000)]
Merge "Updated Registration concepts to use Autocloseable"

10 years agoUpdated Registration concepts to use Autocloseable 66/1766/1
Tony Tkacik [Wed, 9 Oct 2013 09:31:08 +0000 (11:31 +0200)]
Updated Registration concepts to use Autocloseable

Change-Id: I079a3757b6367e44dad6dcff6dd6176181bd7483
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoFixed bug in generating code for augments defined in uses. 47/1747/1
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 39/1739/2
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) 29/1729/1
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. 08/1708/3
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. 65/1665/1
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. 46/1646/1
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. 15/1615/1
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. 04/1604/1
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 03/1603/1
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 99/1599/1
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 97/1597/1
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. 77/1577/1
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. 74/1574/1
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>
10 years agoImproved parse method to read only files which are required by imports. 69/1569/1
Martin Vitez [Tue, 1 Oct 2013 08:28:13 +0000 (10:28 +0200)]
Improved parse method to read only files which are required by imports.

Added tests.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoAdded validation of identity base statement. 07/1507/1
Martin Vitez [Mon, 30 Sep 2013 11:38:45 +0000 (13:38 +0200)]
Added validation of identity base statement.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoPromoted yang syntactic error handling. 06/1506/1
Martin Vitez [Mon, 30 Sep 2013 10:37:53 +0000 (12:37 +0200)]
Promoted yang syntactic error handling.

When antlr parser encounters syntactic error, it throws an exception instead of log.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFixed bug in schema path of nested nodes defined in augment under uses. 05/1505/1
Martin Vitez [Mon, 30 Sep 2013 09:59:28 +0000 (11:59 +0200)]
Fixed bug in schema path of nested nodes defined in augment under uses.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMoved TypeProviderImpl from binding-generator-impl to binding-type-provider. 34/1434/2
Martin Vitez [Thu, 26 Sep 2013 12:07:45 +0000 (14:07 +0200)]
Moved TypeProviderImpl from binding-generator-impl to binding-type-provider.

Change-Id: Iaee1162a6113dd95c6e3a854cda2e65ea4553186
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFixed toString bug. Fixed yang versions used in tests. 04/1504/1
Martin Vitez [Mon, 30 Sep 2013 09:41:07 +0000 (11:41 +0200)]
Fixed toString bug. Fixed yang versions used in tests.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "Bumped version of binding-generator to 0.6.0-SNAPSHOT."
Robert Varga [Sat, 28 Sep 2013 08:22:29 +0000 (08:22 +0000)]
Merge "Bumped version of binding-generator to 0.6.0-SNAPSHOT."

10 years ago[maven-release-plugin] prepare for next development iteration 65/1465/1
Tony Tkacik [Fri, 27 Sep 2013 14:16:11 +0000 (16:16 +0200)]
[maven-release-plugin] prepare for next development iteration

Change-Id: Id76c931a0206738de2edc68b5997f13e5cab42cd
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years ago[maven-release-plugin] Prepare release yangtools-0.1.0 61/1461/1 yangtools-0.1.0
Tony Tkacik [Fri, 27 Sep 2013 14:07:27 +0000 (16:07 +0200)]
[maven-release-plugin] Prepare release yangtools-0.1.0

Change-Id: Ie3fc3f25604b45518a8c21c4dc39dfac64d16d9e
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>