Added initial draft of Normalized Yang Data Tree model.

Change-Id: Ic50335f8a7bfe0fa4d7c239c997f6ca090b9b506
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Organize imports to get rid of warnings

Duplicate/unused imports: get rid of them.

Change-Id: I1f3c807117843cb5dbad4dcb3f2e83394c761d38
Signed-off-by: Robert Varga <rovarga@cisco.com>
Merge "Organize imports to get rid of warnings"
ModifAction enum added NONE operation + additional checks
Added Modify Action to SimpleNode and CompositeNode

Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Fix for Bug 295.

Changes in GeneratorJavaFile:
 - produced warning when more than one file with same name is going to be generated
 - constructor parameter type changed from Set to Collection
 - removed unused method generateStringToJavaFile

Fixed implementation of isAcceptable(Type type) in InterfaceGenerator.
Added test.

Change-Id: If2cc5ccf27b15f3749628a6c7059de6703dda213
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Merge "Fix for Bug 295."
Merge "ModifAction enum added NONE operation + additional checks Added Modify Action to SimpleNode and CompositeNode"
Added documentation for web socket client

Change-Id: I88cce1f657b4d7c7a6ba6cc99e8da63541d7d66f
Signed-off-by: Ladislav Borak <lborak@cisco.com>
Fix for Bug 489.

Current code generator version was unable to generate sources for augmentation defined under uses statement
if augment points to nested node (not top level node added by uses).

Failing example:

container c {
    uses route-subobjects {
        augment "links/link" {
            leaf id {
                type string;
            }
        }
    }
}

AugmentationSchemaBuilderImpl: fixed bug in parsing augment target path for augmentations defined under uses.
BindingGeneratorImpl: fixed resolving of augment package name.
BindingGeneratorUtil: added new method to generate package name.

Added tests.

Change-Id: Ie48b2fffc0e6449bf5c13b5a6b636cbd837ffb54
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Create onGlobalContextUpdated() in SchemaContextListener

With deprecating SchemaServiceListener, we need an explicit mark that
the method itself is not deprecated. Add an overridden method
declaration so the users do not get a useless warning.

Change-Id: I2e1da885f103f58beec2aa28dbf953c0198f3fd9
Signed-off-by: Robert Varga <rovarga@cisco.com>
Introduce ClassLoadingStrategy,ModuleInfoRegistry interface, copy SchemaStoreProvider from md-sal.

To decouple implementation from interface introduce ClassLoadingStrategy and ModuleInfoRegistry interfaces.This allows intercepting
read/write operations.
Copy SchemaContextProvider from org.opendaylight.controller.sal.dom.broker.impl .

Change-Id: Ifebc0f0adbb265f4a4e492c0a9b54f07cc17fe01
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
Fix for Bug 496.

If leafref type contains invalid path, no warning was reported and no methods were generated from this leaf/leaf-list.
Added exception throwing if leafref target is not found.
Updated tests.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
Merge "Create onGlobalContextUpdated() in SchemaContextListener"
Migrate RuntimeGeneratedMappingServiceImpl to use SchemaContextListener

Moves the implemented interface higher up the chain, allowing its users
to start relying on SchemaContextListener -- fixing deprecations
warnings in the process.

Drive-by:
- organized imports to remove unused import
- remove unused field

Change-Id: Ic77e3775317daedd94f6cff6ea6eabdb0ea3dde0
Signed-off-by: Robert Varga <rovarga@cisco.com>
Merge "Added initial draft of Normalized Yang Data Tree model."
Better logging for codegen's generateModuleInfos

Change-Id: I14798f5f7caf9324344351141751be0001ef3a83
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
Fix for Bug 497.

Added generation of toString in YangModuleInfoTemplate.

Change-Id: I4a4781618dc58baa4764be378e92c26c7d15f5a2
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Merge "Migrate RuntimeGeneratedMappingServiceImpl to use SchemaContextListener"
Merge "Fix for Bug 496."
Fix for Bug 495.

Fixed bug in parsing augments defined under uses: target node did not get reference to its augmentations.
Added test.

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