-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Java SDK generation for latest 5.6 code. Added parsing test f…
…or 5.6. Removed java generated code references to UrlEscapers as they are no longer used in the Java SDK. Special cased naming of 'protected' flag in Java code since its also a keyword in that language. (#501)
- Loading branch information
1 parent
79a9a28
commit 9c94ab8
Showing
24 changed files
with
38,160 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
ds3-autogen-java/src/main/resources/tmpls/java/models/common/getters_setters_template.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<#list elements as elmt> | ||
public ${javaHelper.convertType(elmt)} get${elmt.getName()?cap_first}() { | ||
return this.${elmt.getName()?uncap_first}; | ||
return this.${elmt.getInternalName()?uncap_first}; | ||
} | ||
|
||
public void set${elmt.getName()?cap_first}(final ${javaHelper.convertType(elmt)} ${elmt.getName()?uncap_first}) { | ||
this.${elmt.getName()?uncap_first} = ${elmt.getName()?uncap_first}; | ||
public void set${elmt.getName()?cap_first}(final ${javaHelper.convertType(elmt)} ${elmt.getInternalName()?uncap_first}) { | ||
this.${elmt.getInternalName()?uncap_first} = ${elmt.getInternalName()?uncap_first}; | ||
} | ||
|
||
</#list> |
2 changes: 1 addition & 1 deletion
2
ds3-autogen-java/src/main/resources/tmpls/java/request/common/getters.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<#list classVariables as var> | ||
public ${javaHelper.getType(var)} get${var.getName()?cap_first}() { | ||
return this.${var.getName()?uncap_first}; | ||
return this.${var.getInternalName()?uncap_first}; | ||
} | ||
|
||
</#list> |
2 changes: 1 addition & 1 deletion
2
ds3-autogen-java/src/main/resources/tmpls/java/request/common/variables.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<#list classVariables as var> | ||
private <#if var.isRequired() == true>final </#if>${javaHelper.getType(var)} ${var.getName()?uncap_first}; | ||
private <#if var.isRequired() == true>final </#if>${javaHelper.getType(var)} ${var.getInternalName()?uncap_first}; | ||
</#list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.