Robert Varga [Sun, 24 Aug 2014 17:55:35 +0000 (19:55 +0200)]
BUG-997: Fix URLSchemaContextResolver
The new URLSchemaContextResolver contained a few bugs which prevented it
from working correctly. Fix patches fixes it up.
Change-Id: Ica34f4b8f9e2bb50fe5107f35f987d2bf0891a14
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Sun, 24 Aug 2014 17:54:34 +0000 (19:54 +0200)]
BUG-997: fix InMemorySchemaSourceCache interface
It turns out it was impossible to instantiate this class reasonably. Add
a static factory method to alleviate.
Change-Id: Id7ed4976db6ca6303752392c9aded444491edd08
Signed-off-by: Robert Varga <rovarga@cisco.com>
Tony Tkacik [Fri, 22 Aug 2014 08:33:16 +0000 (10:33 +0200)]
Use xml.bind Base64 decoder instead of Guava
As it turned out Guava Base64 decoder is not
compatible with XML encoding, since it is much
stricter and throws error on new lines which
are pretty common in XMLs with Base64 encoded
data.
javax.xml.bind package provides same static
method for parsing string into bytes,
but with XSD semantics for Base64 encoding
which are compatible with XML way
of encoding data.
Change-Id: I5ef4c0b2ba521472b8caacdff1f44ff17d660eb3
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Tony Tkacik [Thu, 21 Aug 2014 13:45:11 +0000 (13:45 +0000)]
Merge "Fix ordering fields in generated type builder"
Tony Tkacik [Thu, 21 Aug 2014 13:41:54 +0000 (13:41 +0000)]
Merge "BUG-1425: fix LazyDataObject.toString()"
Martin Vitez [Thu, 21 Aug 2014 13:11:17 +0000 (13:11 +0000)]
Merge "Bug 1586: Fixed missing processing of single qouted strings."
Tony Tkacik [Thu, 21 Aug 2014 12:05:18 +0000 (14:05 +0200)]
Bug 1586: Fixed missing processing of single qouted strings.
Change-Id: I72a4c8608b8f1f64287a7199430f4f31af6f67c9
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Tony Tkacik [Thu, 21 Aug 2014 11:45:04 +0000 (11:45 +0000)]
Merge "Update feature to carry binding-data-codec"
Robert Varga [Thu, 21 Aug 2014 11:09:54 +0000 (13:09 +0200)]
Update feature to carry binding-data-codec
Change-Id: I4a1835574c1cfdfbba3dba4a6779ee85157b894e
Signed-off-by: Robert Varga <rovarga@cisco.com>
Lukas Sedlak [Thu, 21 Aug 2014 09:40:51 +0000 (09:40 +0000)]
Merge "add new tests BindingTypesTest, BaseYangTypesTest"
Robert Varga [Thu, 21 Aug 2014 09:24:23 +0000 (09:24 +0000)]
Merge "BUG-1382: eliminate QName.getPrefix() from GeneratorImpl.xtend"
Tony Tkacik [Thu, 21 Aug 2014 07:22:50 +0000 (07:22 +0000)]
Merge "Bug 1391 - New DataBroker unexpected behaviour"
Robert Varga [Tue, 12 Aug 2014 05:32:07 +0000 (07:32 +0200)]
BUG-1425: fix LazyDataObject.toString()
A major usability improvement is skipping of null fields, as dumping
them adds quite a bit of verbosity to logs.
Change-Id: I94c030f11505718ee48b0e3f4556587a85f8f4e4
Signed-off-by: Robert Varga <rovarga@cisco.com>
Tony Tkacik [Wed, 20 Aug 2014 08:55:10 +0000 (10:55 +0200)]
Bug 1443: Fixed incorrect throw of IllegalArgumentException in getAugmentation
Change-Id: If58292afba9c634fb4368f70d541d4a7cdf02cf6
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Martin Vitez [Wed, 20 Aug 2014 09:58:55 +0000 (11:58 +0200)]
BUG-1382: eliminate QName.getPrefix() from GeneratorImpl.xtend
Change-Id: Ie5fdaf7fc7389c13af8aa591bf9531ed26cb11a9
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Peter Bandzi [Tue, 19 Aug 2014 08:37:53 +0000 (10:37 +0200)]
add new tests BindingTypesTest, BaseYangTypesTest
Signed-off-by: Peter Bandzi <pbandzi@cisco.com>
Change-Id: I289a15eb735c12d4664ff68e73c6e2fc830c6f20
Robert Varga [Wed, 20 Aug 2014 08:50:13 +0000 (08:50 +0000)]
Merge "Add scope compile to features pom for xtend-lib"
Martin Vitez [Wed, 20 Aug 2014 07:48:26 +0000 (09:48 +0200)]
BUG-1578: fixed NPE caused by invalid import statement.
If parser can't found imported module it throws YangParseException with error info about root cause.
Change-Id: I3ca81fc46ca57d36b770b3846c10d422d415ac37
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Ed Warnicke [Tue, 19 Aug 2014 23:00:05 +0000 (18:00 -0500)]
Add scope compile to features pom for xtend-lib
Else, tests downstream can and will fail if its
not already in their local .m2
Change-Id: I2be472c66e4828f19169118d84ae03f714c9ec68
Signed-off-by: Ed Warnicke <eaw@cisco.com>
Robert Varga [Tue, 19 Aug 2014 11:14:19 +0000 (11:14 +0000)]
Merge "Bug 1531: Fixed incorrect use of leaf types in BindingGeneratorImpl"
Tony Tkacik [Tue, 19 Aug 2014 09:39:45 +0000 (11:39 +0200)]
Bug 1531: Fixed incorrect use of leaf types in BindingGeneratorImpl
Change-Id: Id420d1e2b8aadcf0061fcf87910b749e9be89c04
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Martin Vitez [Tue, 19 Aug 2014 09:11:41 +0000 (11:11 +0200)]
BUG-1382: eliminate QName.getPrefix() from binding-generator-impl.
Change-Id: Idce1e0efe18c6034ec036794007ea2716799d889
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Tony Tkacik [Tue, 19 Aug 2014 07:14:04 +0000 (07:14 +0000)]
Merge "BUG-1555: skip choices which are not valid in a particular context"
Robert Varga [Mon, 18 Aug 2014 15:15:06 +0000 (15:15 +0000)]
Merge "Enabled feature-test for features-yangtools."
Robert Varga [Mon, 18 Aug 2014 15:14:54 +0000 (15:14 +0000)]
Merge "features-test to test that features load correctly."
Ed Warnicke [Sun, 17 Aug 2014 22:51:41 +0000 (17:51 -0500)]
Enabled feature-test for features-yangtools.
Note: We were randomly getting surefire version
2.12.4 because no surefire version was specified.
${maven.surefire.version} is set in odlparent
but we need to apply it in the yang parent pom
because 'dependenciesToScan' is only available
starting in 2.15.
Change-Id: I3d72c845d7f75afc518956267802ea69afadd0c6
Signed-off-by: Ed Warnicke <eaw@cisco.com>
Ed Warnicke [Sun, 17 Aug 2014 21:24:17 +0000 (16:24 -0500)]
features-test to test that features load correctly.
Change-Id: Ieacf7182fa7fe5d47c4696e164680716836f8293
Signed-off-by: Ed Warnicke <eaw@cisco.com>
Lukas Sedlak [Mon, 18 Aug 2014 11:45:01 +0000 (13:45 +0200)]
Bug 1559: Fixed resolving of used extensions.
This is hotfix in Yang Parser Grammar. As it turnded out Yang parser didn't count with
use of extensions outside of body statements. Now yang parser is capable to parse yang files with used
extensions outside of body statements. The recommendation for future is to completely rewrite yang parser
grammar in general.
Change-Id: I65e61ef712fb499fe543753404a805a4dd14cf85
Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
Robert Varga [Mon, 18 Aug 2014 11:44:43 +0000 (13:44 +0200)]
BUG-1555: skip choices which are not valid in a particular context
We are enumerating the use of a case in all the possible contexts, which
may partially fail. Instead of failing completely, just skip the
offending case.
Change-Id: Icbf137266784e0f469a258b2bb312db4e01bd8f6
Signed-off-by: Robert Varga <rovarga@cisco.com>
Martin Vitez [Mon, 18 Aug 2014 09:19:36 +0000 (09:19 +0000)]
Merge "Fix MapAdaptor logging"
Robert Varga [Thu, 14 Aug 2014 21:03:29 +0000 (23:03 +0200)]
Improve error message
This fixes the errors reported by default in the log by formatting the
message.
Change-Id: I5c971844ceb9f140ea62fda4472899971689c98f
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Thu, 14 Aug 2014 19:47:59 +0000 (21:47 +0200)]
Fix Precondition formatting
Preconditions need to be formatted just like String.format().
Change-Id: I4011a6cc6a5f5cb7b0460885d956f775ff45d97c
Signed-off-by: Robert Varga <rovarga@cisco.com>
Lukas Sedlak [Thu, 14 Aug 2014 12:50:00 +0000 (14:50 +0200)]
Bug 1515: Properly resolving prefix for submodule
Every Yang submodule contains belongs-to statement. Belongs-to statement contains
mandatory prefix statement. Now submodule prefix is resolved properly and set
as module prefix for parsed submodule.
Test models foo and subfoo were modified to cover bug scenario. In model foo there is typedef defined and called
in submodule subfoo.
Ordering test had to be modified accordingly.
Change-Id: I364337c724407ff9ad2c489968e17f1ed060f347
Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
Ladislav Borak [Fri, 8 Aug 2014 13:38:38 +0000 (15:38 +0200)]
Fix ordering fields in generated type builder
Methods is sorted alphabetically to make the order of evaluation
predictable.
Change-Id: Ie1171a78a17e6eab71b629411f0b0a1bb1807d7d
Signed-off-by: Ladislav Borak <lborak@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Wed, 13 Aug 2014 12:49:59 +0000 (14:49 +0200)]
Fix conflict on Object definition
The use of Object (in the java.lang sense) is not working with models
which contain a 'container object' or similar. The fix is to not use a
temporary variable.
Change-Id: I98b3bde9a04d5f33a51a0add107829ad92d35907
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Wed, 13 Aug 2014 10:00:47 +0000 (10:00 +0000)]
Merge "Check for null pointer when parsing identities."
Maros Marsalek [Wed, 13 Aug 2014 09:21:41 +0000 (11:21 +0200)]
Check for null pointer when parsing identities.
Change-Id: I5dba7506b83f145472f7327f92e47ffc17b74062
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Robert Varga [Wed, 13 Aug 2014 09:10:14 +0000 (09:10 +0000)]
Merge "Make buildModules() in YangParser behave same as other methods"
Lukas Sedlak [Fri, 8 Aug 2014 12:33:38 +0000 (14:33 +0200)]
Bugfix: Resolving of extension arguments.
Fixed methods parseQName and handleUnknownNode in YangParserListenerImpl class. Now if extension contains ":"
as argument value and string before ":" doesn't represent prefix for import the argument will be parsed as ordinary
string and will not throw exception.
Log level in parseQName has been changed from warn to debug.
Tests in yang-parser-impl has been modified since they're lacked of import definitions of extensions in yang modules.
Change-Id: I84debed2bef1a0694a7019c296433b8b089e6d80
Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
Maros Marsalek [Wed, 13 Aug 2014 07:05:20 +0000 (09:05 +0200)]
Make buildModules() in YangParser behave same as other methods
Submodules were not resolved
Change-Id: Ifaac3b7f95883f190874cf91f8837c697c6c33e7
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Robert Varga [Mon, 11 Aug 2014 21:39:36 +0000 (23:39 +0200)]
BUG-1425: fix builder's implementation of equals()
With the advent of LazyDataObject, we have two implementation which need
to compare as equal. LazyObject.equals(builderObject) already works, but
we need the revers to be true, too. This patch sets out to do exactly
that.
Change-Id: I931f66a9088451524a842f6a67e8492ac922fd3d
Signed-off-by: Robert Varga <rovarga@cisco.com>
Lukas Sedlak [Mon, 11 Aug 2014 14:23:29 +0000 (14:23 +0000)]
Merge "BUG-1425: fix toString() invocation on LazyObject"
Robert Varga [Mon, 11 Aug 2014 14:02:28 +0000 (16:02 +0200)]
BUG-1425: fix toString() invocation on LazyObject
When we are coming in from toString(), the proxy invocation does not
work. Extract getAugmentations() into a private method and use that
instead.
Change-Id: Ia851560b7703817f6d75887fa7e80037292e3fd1
Signed-off-by: Robert Varga <rovarga@cisco.com>
Milos Fabian [Mon, 11 Aug 2014 10:57:24 +0000 (12:57 +0200)]
Fixed missing "/" at begining of list.
Change-Id: I95cd9f2fc28bcf8ff46fba72a3c13339a5868078
Signed-off-by: Milos Fabian <milfabia@cisco.com>
Robert Varga [Sun, 10 Aug 2014 14:45:04 +0000 (16:45 +0200)]
Fix MapAdaptor logging
A typo prevented objects from being logged.
Change-Id: I93514dbb4dbf99fa0e3458a4643c24f41992242d
Signed-off-by: Robert Varga <rovarga@cisco.com>
Jan Hajnar [Tue, 29 Jul 2014 09:53:02 +0000 (11:53 +0200)]
Bug 1391 - New DataBroker unexpected behaviour
* deleted empty override for checkWriteApplicable() in
NormalizedNodeContainerModificationStrategy and added check for node
being created by another transaction in checkWriteApplicable()
in SchemaAwareApplyOperation.
* updated concurrency tests.
Change-Id: I0fd5fb230014f794897a30d1a45a86b61a3a8378
Signed-off-by: Jan Hajnar <jhajnar@cisco.com>
Ed Warnicke [Sun, 10 Aug 2014 19:49:06 +0000 (14:49 -0500)]
Fixes to yangtools feature.xml file
Change-Id: I54852269f3e42aeae7a9ef54e593ef29e48bfcbb
Signed-off-by: Ed Warnicke <eaw@cisco.com>
Tony Tkacik [Thu, 7 Aug 2014 17:06:17 +0000 (19:06 +0200)]
Bug 1443: Implemented Lazy deserialization using dynamic proxies
Result objects from translation from NormalizedNode to Binding Data
are lazily deserialized and initial cost of deserialization
is only one allocation.
Nested data are lazily deserialized once they are accessed.
This decreases time spent on eager deserialization of data
which never was accessed.
Implementation is mostly carried out in
LazyDataObject - InvocationHandler which maps proxy, data and codec
DataContainerPrototype - Prototype of DataContainerContext,
which holds only neccessary information to instantiate real context
DataObjectCodecContext - Context which holds various mapping
required for serialization / deserialization of data.
Also renames AugmentationNode to AugmentationNodeContext to keep naming
consistent and hides it from outside world, as it is
implementation-specific detail.
Change-Id: I94d994277bd0319e9aabcf842e0a741871713a30
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Sun, 10 Aug 2014 05:48:56 +0000 (05:48 +0000)]
Merge "BUG-997 Add SourceIdentifier to MissingSchemaSourceException"
Robert Varga [Sun, 10 Aug 2014 05:48:40 +0000 (05:48 +0000)]
Merge "BUG-997 Fix unused argument in SchemaResolutionException"
Robert Varga [Sun, 10 Aug 2014 05:48:34 +0000 (05:48 +0000)]
Merge "BUG-997 Implement Filesystem source cache for schema repository"
Robert Varga [Sun, 10 Aug 2014 05:48:13 +0000 (05:48 +0000)]
Merge "BUG-997 Add tests for shared schema context and fix dependency resolution bug"
Tony Tkacik [Fri, 8 Aug 2014 22:49:00 +0000 (22:49 +0000)]
Merge "Fix DCL in YangInstanceIdentifier"
Robert Varga [Fri, 8 Aug 2014 12:41:09 +0000 (14:41 +0200)]
Fix DCL in YangInstanceIdentifier
We were DCL on non-volatile variables. Fixed both instances.
Change-Id: Iedfc9a03ba1fea1c049f44f2b68c2d873564c4ca
Signed-off-by: Robert Varga <rovarga@cisco.com>
Maros Marsalek [Fri, 8 Aug 2014 08:52:17 +0000 (10:52 +0200)]
BUG-997 Add SourceIdentifier to MissingSchemaSourceException
Change-Id: Ia4a595492935a66371faa844c5286a312a7897e2
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Maros Marsalek [Fri, 8 Aug 2014 07:44:53 +0000 (09:44 +0200)]
BUG-997 Fix unused argument in SchemaResolutionException
Change-Id: Id40a5318d824e71405a220c18dffa34ade745c08
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Maros Marsalek [Wed, 6 Aug 2014 08:42:22 +0000 (10:42 +0200)]
BUG-997 Implement Filesystem source cache for schema repository
Use utility methods for storing files from legacy Filesystem cache
+ Add sorting by Cost to schema repository for multiple providers of the same source
Change-Id: I9a30240042e34fe7898966467b503eee85166887
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Maros Marsalek [Mon, 4 Aug 2014 11:16:48 +0000 (13:16 +0200)]
BUG-997 Add tests for shared schema context and fix dependency resolution bug
Change-Id: I51d1110629b915e6893a08fa827ccf2ba46ed181
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Tony Tkacik [Wed, 6 Aug 2014 13:02:05 +0000 (15:02 +0200)]
Bug 1443: Added support for Union type & OSGI Runtime
Introduced new marker interface SchemaUnawareCodec
which marks codecs for simple value types,
which are unaffected by introduction of new modules
(practically everything except union, instance identifier
and identity codecs). Reworked caching to cache only these
codecs.
Added integration with OSGI, which ensures proper class loading
and updates Javassist classpool if necessary.
Updated ModuleContext to not populate type to schema fields
with empty augmentations, which are undetectable in
data tree.
Change-Id: I2a2c8477e9fdc2ef53bd9f81956023c0760d620e
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Tony Tkacik [Fri, 8 Aug 2014 07:20:19 +0000 (07:20 +0000)]
Merge "Bug 1372 - toString methods in generated classes"
Tony Tkacik [Thu, 7 Aug 2014 20:16:41 +0000 (20:16 +0000)]
Merge "BUG-1436: deprecate IntermediateMapping"
Tony Tkacik [Thu, 7 Aug 2014 20:16:10 +0000 (20:16 +0000)]
Merge "Fixed incorrect test location."
Tony Tkacik [Thu, 7 Aug 2014 20:03:11 +0000 (20:03 +0000)]
Merge "Fix AugmentationSchemaProxy.getDataChildByName()"
Robert Varga [Sun, 3 Aug 2014 12:51:21 +0000 (14:51 +0200)]
Migrate test asserts
With update to JUnit 4.11 we need to migrate tests to use
proper non-deprecated methods/classes. Also removes wildcard imports.
Change-Id: I969f482a2dd85242fd32c22e7c5807d643e3e554
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Tue, 29 Jul 2014 13:41:16 +0000 (15:41 +0200)]
Do not override versions provided through odlparent
Cuts down declarations which are duplicates and/or result in downgrades.
Change-Id: I7110996ddedff456881a768cd49841191e219345
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Thu, 7 Aug 2014 14:54:15 +0000 (16:54 +0200)]
Fix AugmentationSchemaProxy.getDataChildByName()
This implementation breaks the API contract specified by
AugmentationDefinition by throwing IllegalArgumentException where it
should just return null.
Drive-by: fix a typo in AugmentationSchema
Change-Id: I762ce3c02ba776d8a025ccd5bcdba82a6c1579ad
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Thu, 7 Aug 2014 13:53:59 +0000 (15:53 +0200)]
BUG-1436: deprecate IntermediateMapping
IntermediateMapping is only used in CompositeNode-related codecs and
thus is scheduled to be removed at the same time as CompositeNodes.
Change-Id: Ifff06e62441e5f8cc2eac069145389201f369493
Signed-off-by: Robert Varga <rovarga@cisco.com>
Ladislav Borak [Thu, 7 Aug 2014 11:41:09 +0000 (13:41 +0200)]
Bug 1372 - toString methods in generated classes
- changed generated toString method in BaseTemplate,
added info about simple name of class
Change-Id: I1e4142a9d78205b497f8ed552ac72d1440029b46
Signed-off-by: Ladislav Borak <lborak@cisco.com>
Tony Tkacik [Thu, 7 Aug 2014 06:13:41 +0000 (06:13 +0000)]
Merge "Bug 1372 - toString methods in generated classes"
Tony Tkacik [Wed, 6 Aug 2014 16:49:39 +0000 (16:49 +0000)]
Merge "BUG-576: modified parser to handle augmentation of extension instances."
Tony Tkacik [Wed, 6 Aug 2014 16:49:27 +0000 (16:49 +0000)]
Merge "BUG-576: modified parser to handle refinement of extension instances."
Tony Tkacik [Wed, 6 Aug 2014 15:54:07 +0000 (15:54 +0000)]
Merge "Fix sonar not reporting unit tests"
Ladislav Borak [Wed, 6 Aug 2014 14:38:39 +0000 (16:38 +0200)]
Fix sonar not reporting unit tests
Enables jacoco plugin (uncodnitionally for now) to get sonar to pickup
the stats.
Changed TypeDefinitionCompilationTest because synthetic fields.
Change-Id: I6baced1cd3ed1a10b790c8a7f11348febc1a380b
Signed-off-by: Robert Varga <rovarga@cisco.com>
Signed-off-by: Ladislav Borak <lborak@cisco.com>
Robert Varga [Tue, 5 Aug 2014 16:30:05 +0000 (18:30 +0200)]
BUG-1487: refactor StreamWriterGenerator
This is a reorganization of the StreamWriterGenerator such that it is
properly split up into classes, with contracts clarified. It also
prevents outside subclassing. Also cache pre-made serializer instances.
Change-Id: I492d73a082c24c03b8d17f3868e4a497c8f64b7b
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Tue, 5 Aug 2014 14:37:01 +0000 (16:37 +0200)]
BUG-1487: use prototypes for instantiating codecs
Optimizes the per-class overhead by copying a prototype class, and then
setting the proper serializer name. At the same time we get rid of the
static serializer methods, making the interface a bit cleaner.
Additionally, we hide the AbstractStreamWriterGenerator, so that to have
a proper boundary.
Change-Id: Ia7d56ff16e1eec7204fa087c49f2ee55a658a377
Signed-off-by: Robert Varga <rovarga@cisco.com>
Martin Vitez [Fri, 1 Aug 2014 11:13:11 +0000 (13:13 +0200)]
BUG-576: modified parser to handle augmentation of extension instances.
Change-Id: Ic40d5691baa57ee72953abf761dd52e1c85f66c2
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Tony Tkacik [Wed, 6 Aug 2014 09:22:59 +0000 (09:22 +0000)]
Merge "Bug 1432 - Generated DTOs for types use inefficient instantiation"
Martin Vitez [Fri, 1 Aug 2014 10:38:44 +0000 (12:38 +0200)]
BUG-576: modified parser to handle refinement of extension instances.
If user tries to refine an instance of extension parser log this event and continue with parsing
instead of throwing an exception.
Change-Id: I6d535b124527bc5a47ef90ba72b57eccbd6c73ef
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Ladislav Borak [Wed, 30 Jul 2014 17:32:00 +0000 (19:32 +0200)]
Bug 1432 - Generated DTOs for types use inefficient instantiation
- changed method for generating default instance value
- only for types (boolean, byte, short, int and long)
Change-Id: I4a423f3569ed84f4d6aff8efe97a110045c6e7c7
Signed-off-by: Ladislav Borak <lborak@cisco.com>
Ed Warnicke [Tue, 5 Aug 2014 20:28:03 +0000 (15:28 -0500)]
Fix feature file (again :( )
Change-Id: I95c9d241a812f6d54b7df6d5ee46627930bc1691
Signed-off-by: Ed Warnicke <eaw@cisco.com>
Giovanni Meo [Tue, 5 Aug 2014 18:07:47 +0000 (20:07 +0200)]
Fix to feature file
Change-Id: I6619218e29d8581aedb8012e3fd35553168ad36d
Signed-off-by: Giovanni Meo <gmeo@cisco.com>
Tony Tkacik [Tue, 5 Aug 2014 13:23:47 +0000 (13:23 +0000)]
Merge "yang-data-json is in the feature file, but not built"
Giovanni Meo [Mon, 4 Aug 2014 14:49:45 +0000 (16:49 +0200)]
BUG-1402: Make sure the version in the yang-maven-plugin-it is interpolated also for the parent
- The parent version of the test parent pom for the IT was still
hardcoded, we need that to come from the project itself else it cannot
be released
Change-Id: I88ae85df3bb84e805df9594b56d3c62d21386f4f
Signed-off-by: Giovanni Meo <gmeo@cisco.com>
Giovanni Meo [Fri, 1 Aug 2014 16:53:12 +0000 (18:53 +0200)]
yang-data-json is in the feature file, but not built
- Remove reference to a no-longer existent artifacts and add new dependencies
Change-Id: Ib9fe2e388f658114e0deadfa4dbab0f403a1fed7
Signed-off-by: Giovanni Meo <gmeo@cisco.com>
Martin Vitez [Wed, 23 Jul 2014 12:52:14 +0000 (14:52 +0200)]
BUG-1382: eliminate use of QName.getPrefix from yang parser
Updated tests - removed tests on QName's prefix.
Please do not merge before https://git.opendaylight.org/gerrit/#/c/9640/ is merged.
Change-Id: I41b8940965631609074c5bb8e4c2e0538a33f6a9
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Robert Varga [Tue, 5 Aug 2014 08:01:46 +0000 (08:01 +0000)]
Merge "BUG-1472: deprecated CompositeNode and friends"
Tony Tkacik [Tue, 5 Aug 2014 07:46:55 +0000 (07:46 +0000)]
Merge "BUG-994: introduce ObjectCache for QNameModule/QName"
Robert Varga [Sun, 3 Aug 2014 11:18:33 +0000 (13:18 +0200)]
BUG-1472: deprecated CompositeNode and friends
These APIs are deprecated in favor of NormalizedNode and friends. Mark
them as such, so the code that needs to be migrated gets highlighted.
Change-Id: I9d5b903d54dd295f4111f6832bf023b2685c0291
Signed-off-by: Robert Varga <rovarga@cisco.com>
Tony Tkacik [Fri, 1 Aug 2014 17:28:13 +0000 (19:28 +0200)]
Bug 1439, Bug 1443 Binding Codec NormalizedNodeWriter support
Added initial implementation of Code generator for Binding Stream Writers
which uses NormalizedNodeStreamWriter on the backend
to write data.
Change-Id: Icae22fd1b9ed4256022650d3ad16b38c577f3d3a
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Signed-off-by: Robert Varga <rovarga@cisco.com>
Tony Tkacik [Mon, 4 Aug 2014 18:17:03 +0000 (18:17 +0000)]
Merge "BUG-1275: teach NormalizedNode builders about size hints"
Tony Tkacik [Mon, 4 Aug 2014 18:15:00 +0000 (18:15 +0000)]
Merge "BUG-865: Remove SchemaServiceListener"
Tony Tkacik [Mon, 4 Aug 2014 18:10:20 +0000 (18:10 +0000)]
Merge "BUG-1382: deprecate QName.getPrefix()"
Ladislav Borak [Thu, 31 Jul 2014 22:59:32 +0000 (00:59 +0200)]
Bug 1232 - Add snippet of yang file into comments
- reworked all proposals from Tom Pantelis
- tested with toaster.yang, generated javadoc files added
as attachment into bugzilla
Change-Id: I6a6c8a6f6592b1abf9368e9b8232263a029460a8
Signed-off-by: Ladislav Borak <lborak@cisco.com>
Robert Varga [Mon, 4 Aug 2014 10:33:28 +0000 (12:33 +0200)]
BUG-1382: deprecate QName.getPrefix()
Prefix storage in QNames is deprecated. Mark the constructors and
getter as deprecated so it can be removed at a later stage.
Change-Id: I68637fe156195b3668cce334b1cc70ab322c0ffc
Signed-off-by: Robert Varga <rovarga@cisco.com>
Tony Tkacik [Fri, 25 Jul 2014 15:46:50 +0000 (17:46 +0200)]
Bug 1424: Documented RootModificationApplyOperation
Change-Id: Ided408fb2aeff572eddbc226a8b97c288760b5a3
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Martin Vitez [Mon, 4 Aug 2014 08:15:17 +0000 (08:15 +0000)]
Merge "Bug 1475: Correctly handle case of typedef that extends boolean"
Robert Varga [Tue, 13 May 2014 09:21:55 +0000 (11:21 +0200)]
BUG-994: introduce ObjectCache for QNameModule/QName
This introduces caching for QNameModule using object-cache-api. This
will allow for efficient object reuse, at the cost of requiring a cache
implementation being available on the class path.
The use of cache has been not propagated to the static creator methods,
simply because the caching lookup introduces a cost which is not
acceptable in all contexts.
Change-Id: I5af9c7e54c726c05a5824521f5ed5183dc4899b4
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Mon, 4 Aug 2014 07:27:34 +0000 (09:27 +0200)]
BUG-1275: teach NormalizedNode builders about size hints
With the upcoming codec work we will be able to offer sizing hints
when instantiating normalized nodes. This patch exposes the methods to
pass those hints down to the implementation maps, so they can size
themselves.
Change-Id: Idbc39bda3937d11c89b89807bd253afca5d775f7
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Sun, 3 Aug 2014 12:04:17 +0000 (14:04 +0200)]
Remove unused imports
Lowers the number of warnings a bit.
Change-Id: I9cbb9f0bd2f711fa4f7410a5023c73497a59f35e
Signed-off-by: Robert Varga <rovarga@cisco.com>
Robert Varga [Thu, 31 Jul 2014 13:08:17 +0000 (15:08 +0200)]
BUG-865: Remove SchemaServiceListener
Eradicates the long-deprecated SchemaServiceListener.
SchemaContextListener is the new name for the equivalent service.
Requires controller to merge I15d495d805eb7a08c3bcd3ab0cf8b5a8d2797db5.
Change-Id: I38185b131e9745c0cad366c38428e8be9a8fb4fe
Signed-off-by: Robert Varga <rovarga@cisco.com>