Fixed generation of Transfer Objects; 45/345/1
authorlsedlak <lsedlak@cisco.com>
Wed, 15 May 2013 10:56:08 +0000 (12:56 +0200)
committerlsedlak <lsedlak@cisco.com>
Wed, 15 May 2013 10:56:08 +0000 (12:56 +0200)
commit4171f99c226775c4646ad95f5484329eafb9c01d
treea568ef23cc5927a609e8588cb54f5b82303d1278
parent39ff6ed2000232d607877311770c74cef36cf96f
Fixed generation of Transfer Objects;

Fiexed bad generating of parametrized constructors when constructor had
more than two parameters;

Fixed generation of hashCode, equals and toString when
GeneratedTransferObject had not specified equals, hashCode and toString
properties;

Added capability to generate setters if property has flag isReadOnly set
to false.
Parameters which contains flag isReadOnly == false will not apear as
parameters in generated constructor;

Fixed generation of subdirs from package when used generateToFile with
File as parent directory;

Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
opendaylight/sal/yang-prototype/code-generator/binding-java-api-generator/src/main/java/org/opendaylight/controller/sal/java/api/generator/ClassCodeGenerator.java
opendaylight/sal/yang-prototype/code-generator/binding-java-api-generator/src/main/java/org/opendaylight/controller/sal/java/api/generator/Constants.java
opendaylight/sal/yang-prototype/code-generator/binding-java-api-generator/src/main/java/org/opendaylight/controller/sal/java/api/generator/GeneratorJavaFile.java
opendaylight/sal/yang-prototype/code-generator/binding-java-api-generator/src/main/java/org/opendaylight/controller/sal/java/api/generator/GeneratorUtil.java
opendaylight/sal/yang-prototype/code-generator/binding-java-api-generator/src/test/java/org/opendaylight/controller/sal/java/api/generator/test/ClassCodeGeneratorTest.java [new file with mode: 0644]
opendaylight/sal/yang-prototype/code-generator/binding-java-api-generator/src/test/java/org/opendaylight/controller/sal/java/api/generator/test/GeneratorJavaFileTest.java
opendaylight/sal/yang-prototype/code-generator/binding-java-api-generator/src/test/resources/list-composite-key.yang [new file with mode: 0644]
opendaylight/sal/yang-prototype/code-generator/code-generator-demo/src/main/java/org/opendaylight/controller/yang/Demo.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.