Remove 'model' from package names in yang-model-parser-impl. Signed-off-by: Martin Vitez <mvitez@cisco.com>
Added generation of Transfer Objects from Type Definitions. Extended functionality of Type provider to resolve Type Definitions in schema context as GeneratedTransfeObjects with proper package names and class names; Updated generateTypes in BindingGeneratorImpl to generate also Transfer Objects from Type Definitions; Added BindingGeneratorUtil to replace functionality of CodeGeneratorHelper; Modified EnumerationBuilderImpl - changed visibility from package protected to public due to need for generation of stand alone enums; Refactored GeneratorUtil with use of BindingGeneratorUtil methods; Fixed bug in where SchemaPath was incorectly generated for yang types in yang-model-util project; Changed YangModelParser API - removed parseYangModel method and changed parseYangModels param from vararg String to List of Files and from vararg InputStream to List of Input Streams; Modified YangToSourcesMojoj and GenerateSourcesTest in maven-yang-plugin due to change in YangModelParser API; Modified YangToSourcesPluginTest due to change in YangModelParser API; Modified Demo in binding-model-demo due to change in YangModelParser API; Modified GeneratedTypesTest in binding-generator-impl -> changed load of yang files due to change in YangModelParser API; Added comment generation for interface and class definition in binding-java-api-generator -> GeneratorUtil; Change-Id: Id1be574e10f7f80d1badfbdec2bcc4a98564fee5 Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
Yang validation moved to validator package and validation listener refactored. Added validations for yang statements according to RFC-6020 (section 6 and 7). Added new tests for statement validation and utility classes created. This is only initial validation performed on every yang file without any context from other yang files. Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Added Yang validator. Initial implementation committed that validates Module and Submodule statements. It also validates a few additional yang statements e.g. revision, import. Rules that must be obeyed are documented in code as javadoc. Added tests to test implemented rules. Signed-off-by: Maros Marsalek <mmarsale@cisco.com>