Skip to content

Commit 0789a8e

Browse files
Merge branch 'master' into release
2 parents 9c72ac6 + a64cff6 commit 0789a8e

File tree

268 files changed

+9532
-4986
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

268 files changed

+9532
-4986
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ This repository contains Aspose.Words Cloud SDK for Java source code. This SDK a
1313
* Watermarks and protection
1414
* Full read & write access to Document Object Model, including sections, paragraphs, text, images, tables, headers/footers and many others
1515

16+
## Enhancements in Version 22.2
17+
18+
- Made 'SaveOprionsData.SaveFormat' property readonly with default value.
19+
- Added subclasses for all formats of SaveOprionsData with specified SaveFormat.
20+
- 'SaveOptionsData', 'FixedPageSaveOptionsData', 'ImageSaveOptionsData', 'OoxmlSaveOptionsData', 'TxtSaveOptionsBaseData' classes now is abstract.
21+
22+
1623
## Enhancements in Version 22.1
1724

1825
- Added 'FieldOptions.FieldUpdateCultureName' to set Culture for fields
@@ -190,7 +197,7 @@ Add this dependency to your project's POM:
190197
<dependency>
191198
<groupId>com.aspose</groupId>
192199
<artifactId>aspose-words-cloud</artifactId>
193-
<version>22.1.0</version>
200+
<version>22.2.0</version>
194201
</dependency>
195202
</dependencies>
196203
```

checkstyle.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
</module>
1313

1414
<module name="TreeWalker">
15-
<module name="AbstractClassName"/>
1615
<module name="ClassTypeParameterName"/>
1716
<module name="ConstantName"/>
1817
<module name="InterfaceTypeParameterName"/>

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<artifactId>aspose-words-cloud</artifactId>
55
<packaging>jar</packaging>
66
<name>AsposeWordsCloud</name>
7-
<version>22.1.0</version>
7+
<version>22.2.0</version>
88
<url>https://www.aspose.cloud/</url>
99
<description>Aspose Words Java SDK</description>
1010
<scm>
@@ -17,7 +17,7 @@
1717
<distributionManagement>
1818
<repository>
1919
<id>aspose</id>
20-
<url>https://repository.aspose.cloud/repo/</url>
20+
<url>http://repository.aspose.cloud/repo/</url>
2121
</repository>
2222
</distributionManagement>
2323

src/main/java/com/aspose/words/cloud/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class ApiClient {
6868
private String apiVersion = "v4.0";
6969
private String baseUrl = "https://api.aspose.cloud";
7070
private String basePath = baseUrl + "/" + apiVersion;
71-
private String clientVersion = "22.1";
71+
private String clientVersion = "22.2";
7272
private boolean debugging = false;
7373
private Map<String, String> defaultHeaderMap = new HashMap<String, String>();
7474
private String tempFolderPath = null;

src/main/java/com/aspose/words/cloud/model/ApiError.java

Lines changed: 44 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,19 @@
4848
@ApiModel(description = "Api error.")
4949
public class ApiError {
5050
@SerializedName("Code")
51-
private String code = null;
51+
protected String code;
5252

5353
@SerializedName("DateTime")
54-
private OffsetDateTime dateTime = null;
54+
protected OffsetDateTime dateTime;
5555

5656
@SerializedName("Description")
57-
private String description = null;
57+
protected String description;
5858

5959
@SerializedName("InnerError")
60-
private ApiError innerError = null;
60+
protected ApiError innerError;
6161

6262
@SerializedName("Message")
63-
private String message = null;
64-
public ApiError code(String code) {
65-
this.code = code;
66-
return this;
67-
}
68-
63+
protected String message;
6964
/**
7065
* Gets or sets the API error code.
7166
* @return code
@@ -75,15 +70,16 @@ public String getCode() {
7570
return code;
7671
}
7772

78-
public void setCode(String code) {
73+
public ApiError code(String code) {
7974
this.code = code;
75+
return this;
8076
}
8177

82-
public ApiError dateTime(OffsetDateTime dateTime) {
83-
this.dateTime = dateTime;
84-
return this;
78+
public void setCode(String code) {
79+
this.code = code;
8580
}
8681

82+
8783
/**
8884
* Gets or sets the server DateTime.
8985
* @return dateTime
@@ -93,15 +89,16 @@ public OffsetDateTime getDateTime() {
9389
return dateTime;
9490
}
9591

96-
public void setDateTime(OffsetDateTime dateTime) {
92+
public ApiError dateTime(OffsetDateTime dateTime) {
9793
this.dateTime = dateTime;
94+
return this;
9895
}
9996

100-
public ApiError description(String description) {
101-
this.description = description;
102-
return this;
97+
public void setDateTime(OffsetDateTime dateTime) {
98+
this.dateTime = dateTime;
10399
}
104100

101+
105102
/**
106103
* Gets or sets the error description.
107104
* @return description
@@ -111,15 +108,16 @@ public String getDescription() {
111108
return description;
112109
}
113110

114-
public void setDescription(String description) {
111+
public ApiError description(String description) {
115112
this.description = description;
113+
return this;
116114
}
117115

118-
public ApiError innerError(ApiError innerError) {
119-
this.innerError = innerError;
120-
return this;
116+
public void setDescription(String description) {
117+
this.description = description;
121118
}
122119

120+
123121
/**
124122
* Gets or sets the inner error.
125123
* @return innerError
@@ -129,15 +127,16 @@ public ApiError getInnerError() {
129127
return innerError;
130128
}
131129

132-
public void setInnerError(ApiError innerError) {
130+
public ApiError innerError(ApiError innerError) {
133131
this.innerError = innerError;
132+
return this;
134133
}
135134

136-
public ApiError message(String message) {
137-
this.message = message;
138-
return this;
135+
public void setInnerError(ApiError innerError) {
136+
this.innerError = innerError;
139137
}
140138

139+
141140
/**
142141
* Gets or sets the error message.
143142
* @return message
@@ -147,10 +146,24 @@ public String getMessage() {
147146
return message;
148147
}
149148

149+
public ApiError message(String message) {
150+
this.message = message;
151+
return this;
152+
}
153+
150154
public void setMessage(String message) {
151155
this.message = message;
152156
}
153157

158+
159+
public ApiError() {
160+
this.code = null;
161+
this.dateTime = null;
162+
this.description = null;
163+
this.innerError = null;
164+
this.message = null;
165+
}
166+
154167
@Override
155168
public boolean equals(java.lang.Object o) {
156169
if (this == o) {
@@ -178,11 +191,11 @@ public int hashCode() {
178191
public String toString() {
179192
StringBuilder sb = new StringBuilder();
180193
sb.append("class ApiError {\n");
181-
sb.append(" code: ").append(toIndentedString(code)).append("\n");
182-
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
183-
sb.append(" description: ").append(toIndentedString(description)).append("\n");
184-
sb.append(" innerError: ").append(toIndentedString(innerError)).append("\n");
185-
sb.append(" message: ").append(toIndentedString(message)).append("\n");
194+
sb.append(" code: ").append(toIndentedString(getCode())).append("\n");
195+
sb.append(" dateTime: ").append(toIndentedString(getDateTime())).append("\n");
196+
sb.append(" description: ").append(toIndentedString(getDescription())).append("\n");
197+
sb.append(" innerError: ").append(toIndentedString(getInnerError())).append("\n");
198+
sb.append(" message: ").append(toIndentedString(getMessage())).append("\n");
186199
sb.append("}");
187200
return sb.toString();
188201
}

src/main/java/com/aspose/words/cloud/model/AvailableFontsResponse.java

Lines changed: 44 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,22 @@
4848
@ApiModel(description = "The REST response with data on system, additional and custom fonts, available for document processing.")
4949
public class AvailableFontsResponse extends WordsResponse {
5050
@SerializedName("AdditionalFonts")
51-
private List<FontInfo> additionalFonts = null;
51+
protected List<FontInfo> additionalFonts;
5252

5353
@SerializedName("CustomFonts")
54-
private List<FontInfo> customFonts = null;
54+
protected List<FontInfo> customFonts;
5555

5656
@SerializedName("SystemFonts")
57-
private List<FontInfo> systemFonts = null;
57+
protected List<FontInfo> systemFonts;
58+
/**
59+
* Gets or sets the list of additional fonts, provided by Aspose team.
60+
* @return additionalFonts
61+
**/
62+
@ApiModelProperty(value = "Gets or sets the list of additional fonts, provided by Aspose team.")
63+
public List<FontInfo> getAdditionalFonts() {
64+
return additionalFonts;
65+
}
66+
5867
public AvailableFontsResponse additionalFonts(List<FontInfo> additionalFonts) {
5968
this.additionalFonts = additionalFonts;
6069
return this;
@@ -68,19 +77,21 @@ public AvailableFontsResponse addAdditionalFontsItem(FontInfo additionalFontsIte
6877
return this;
6978
}
7079

71-
/**
72-
* Gets or sets the list of additional fonts, provided by Aspose team.
73-
* @return additionalFonts
74-
**/
75-
@ApiModelProperty(value = "Gets or sets the list of additional fonts, provided by Aspose team.")
76-
public List<FontInfo> getAdditionalFonts() {
77-
return additionalFonts;
78-
}
7980

8081
public void setAdditionalFonts(List<FontInfo> additionalFonts) {
8182
this.additionalFonts = additionalFonts;
8283
}
8384

85+
86+
/**
87+
* Gets or sets the list of custom user fonts from user cloud storage. To use them, you should specify "fontsLocation" parameter in any request.
88+
* @return customFonts
89+
**/
90+
@ApiModelProperty(value = "Gets or sets the list of custom user fonts from user cloud storage. To use them, you should specify \"fontsLocation\" parameter in any request.")
91+
public List<FontInfo> getCustomFonts() {
92+
return customFonts;
93+
}
94+
8495
public AvailableFontsResponse customFonts(List<FontInfo> customFonts) {
8596
this.customFonts = customFonts;
8697
return this;
@@ -94,19 +105,21 @@ public AvailableFontsResponse addCustomFontsItem(FontInfo customFontsItem) {
94105
return this;
95106
}
96107

97-
/**
98-
* Gets or sets the list of custom user fonts from user cloud storage. To use them, you should specify "fontsLocation" parameter in any request.
99-
* @return customFonts
100-
**/
101-
@ApiModelProperty(value = "Gets or sets the list of custom user fonts from user cloud storage. To use them, you should specify \"fontsLocation\" parameter in any request.")
102-
public List<FontInfo> getCustomFonts() {
103-
return customFonts;
104-
}
105108

106109
public void setCustomFonts(List<FontInfo> customFonts) {
107110
this.customFonts = customFonts;
108111
}
109112

113+
114+
/**
115+
* Gets or sets the list of system fonts, available on the server.
116+
* @return systemFonts
117+
**/
118+
@ApiModelProperty(value = "Gets or sets the list of system fonts, available on the server.")
119+
public List<FontInfo> getSystemFonts() {
120+
return systemFonts;
121+
}
122+
110123
public AvailableFontsResponse systemFonts(List<FontInfo> systemFonts) {
111124
this.systemFonts = systemFonts;
112125
return this;
@@ -120,19 +133,19 @@ public AvailableFontsResponse addSystemFontsItem(FontInfo systemFontsItem) {
120133
return this;
121134
}
122135

123-
/**
124-
* Gets or sets the list of system fonts, available on the server.
125-
* @return systemFonts
126-
**/
127-
@ApiModelProperty(value = "Gets or sets the list of system fonts, available on the server.")
128-
public List<FontInfo> getSystemFonts() {
129-
return systemFonts;
130-
}
131136

132137
public void setSystemFonts(List<FontInfo> systemFonts) {
133138
this.systemFonts = systemFonts;
134139
}
135140

141+
142+
public AvailableFontsResponse() {
143+
super();
144+
this.additionalFonts = null;
145+
this.customFonts = null;
146+
this.systemFonts = null;
147+
}
148+
136149
@Override
137150
public boolean equals(java.lang.Object o) {
138151
if (this == o) {
@@ -159,10 +172,10 @@ public int hashCode() {
159172
public String toString() {
160173
StringBuilder sb = new StringBuilder();
161174
sb.append("class AvailableFontsResponse {\n");
162-
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
163-
sb.append(" additionalFonts: ").append(toIndentedString(additionalFonts)).append("\n");
164-
sb.append(" customFonts: ").append(toIndentedString(customFonts)).append("\n");
165-
sb.append(" systemFonts: ").append(toIndentedString(systemFonts)).append("\n");
175+
sb.append(" requestId: ").append(toIndentedString(getRequestId())).append("\n");
176+
sb.append(" additionalFonts: ").append(toIndentedString(getAdditionalFonts())).append("\n");
177+
sb.append(" customFonts: ").append(toIndentedString(getCustomFonts())).append("\n");
178+
sb.append(" systemFonts: ").append(toIndentedString(getSystemFonts())).append("\n");
166179
sb.append("}");
167180
return sb.toString();
168181
}

src/main/java/com/aspose/words/cloud/model/BmpSaveOptionsData.java

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
@ApiModel(description = "Container class for bmp save options.")
4949
public class BmpSaveOptionsData extends ImageSaveOptionsData {
5050

51+
public BmpSaveOptionsData() {
52+
super();
53+
this.saveFormat = "bmp";
54+
}
55+
5156
@Override
5257
public boolean equals(java.lang.Object o) {
5358
if (this == o) {
@@ -69,7 +74,40 @@ public int hashCode() {
6974
public String toString() {
7075
StringBuilder sb = new StringBuilder();
7176
sb.append("class BmpSaveOptionsData {\n");
72-
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
77+
sb.append(" allowEmbeddingPostScriptFonts: ").append(toIndentedString(getAllowEmbeddingPostScriptFonts())).append("\n");
78+
sb.append(" customTimeZoneInfoData: ").append(toIndentedString(getCustomTimeZoneInfoData())).append("\n");
79+
sb.append(" dml3DEffectsRenderingMode: ").append(toIndentedString(getDml3DEffectsRenderingMode())).append("\n");
80+
sb.append(" dmlEffectsRenderingMode: ").append(toIndentedString(getDmlEffectsRenderingMode())).append("\n");
81+
sb.append(" dmlRenderingMode: ").append(toIndentedString(getDmlRenderingMode())).append("\n");
82+
sb.append(" fileName: ").append(toIndentedString(getFileName())).append("\n");
83+
sb.append(" flatOpcXmlMappingOnly: ").append(toIndentedString(getFlatOpcXmlMappingOnly())).append("\n");
84+
sb.append(" imlRenderingMode: ").append(toIndentedString(getImlRenderingMode())).append("\n");
85+
sb.append(" updateCreatedTimeProperty: ").append(toIndentedString(getUpdateCreatedTimeProperty())).append("\n");
86+
sb.append(" updateFields: ").append(toIndentedString(getUpdateFields())).append("\n");
87+
sb.append(" updateLastPrintedProperty: ").append(toIndentedString(getUpdateLastPrintedProperty())).append("\n");
88+
sb.append(" updateLastSavedTimeProperty: ").append(toIndentedString(getUpdateLastSavedTimeProperty())).append("\n");
89+
sb.append(" updateSdtContent: ").append(toIndentedString(getUpdateSdtContent())).append("\n");
90+
sb.append(" zipOutput: ").append(toIndentedString(getZipOutput())).append("\n");
91+
sb.append(" colorMode: ").append(toIndentedString(getColorMode())).append("\n");
92+
sb.append(" jpegQuality: ").append(toIndentedString(getJpegQuality())).append("\n");
93+
sb.append(" metafileRenderingOptions: ").append(toIndentedString(getMetafileRenderingOptions())).append("\n");
94+
sb.append(" numeralFormat: ").append(toIndentedString(getNumeralFormat())).append("\n");
95+
sb.append(" optimizeOutput: ").append(toIndentedString(getOptimizeOutput())).append("\n");
96+
sb.append(" pageCount: ").append(toIndentedString(getPageCount())).append("\n");
97+
sb.append(" pageIndex: ").append(toIndentedString(getPageIndex())).append("\n");
98+
sb.append(" horizontalResolution: ").append(toIndentedString(getHorizontalResolution())).append("\n");
99+
sb.append(" imageBrightness: ").append(toIndentedString(getImageBrightness())).append("\n");
100+
sb.append(" imageColorMode: ").append(toIndentedString(getImageColorMode())).append("\n");
101+
sb.append(" imageContrast: ").append(toIndentedString(getImageContrast())).append("\n");
102+
sb.append(" paperColor: ").append(toIndentedString(getPaperColor())).append("\n");
103+
sb.append(" pixelFormat: ").append(toIndentedString(getPixelFormat())).append("\n");
104+
sb.append(" resolution: ").append(toIndentedString(getResolution())).append("\n");
105+
sb.append(" scale: ").append(toIndentedString(getScale())).append("\n");
106+
sb.append(" useAntiAliasing: ").append(toIndentedString(getUseAntiAliasing())).append("\n");
107+
sb.append(" useGdiEmfRenderer: ").append(toIndentedString(getUseGdiEmfRenderer())).append("\n");
108+
sb.append(" useHighQualityRendering: ").append(toIndentedString(getUseHighQualityRendering())).append("\n");
109+
sb.append(" verticalResolution: ").append(toIndentedString(getVerticalResolution())).append("\n");
110+
sb.append(" saveFormat: ").append(toIndentedString(getSaveFormat())).append("\n");
73111
sb.append("}");
74112
return sb.toString();
75113
}

0 commit comments

Comments
 (0)