Skip to content

Commit 27e478f

Browse files
Merge branch 'master' into release
2 parents c97cf48 + 63fd156 commit 27e478f

File tree

12 files changed

+215
-95
lines changed

12 files changed

+215
-95
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ 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 23.4
17+
18+
- Added new type of RangeEndIdentifier for RangeApi: document:end
19+
20+
1621
## Enhancements in Version 23.3
1722

1823
- Fix compatibility between CreateDocument API and Dropbox storage.
@@ -276,7 +281,7 @@ Add this dependency to your project's POM:
276281
<dependency>
277282
<groupId>com.aspose</groupId>
278283
<artifactId>aspose-words-cloud</artifactId>
279-
<version>23.3.0</version>
284+
<version>23.4.0</version>
280285
</dependency>
281286
</dependencies>
282287
```

pom.xml

Lines changed: 1 addition & 1 deletion
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>23.3.0</version>
7+
<version>23.4.0</version>
88
<url>https://www.aspose.cloud/</url>
99
<description>Aspose Words Java SDK</description>
1010
<scm>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public class ApiClient {
5959
private String apiVersion = "v4.0";
6060
private String baseUrl = "https://api.aspose.cloud";
6161
private String basePath = baseUrl + "/" + apiVersion;
62-
private String clientVersion = "23.3";
62+
private String clientVersion = "23.4";
6363
private boolean debugging = false;
6464
private Map<String, String> defaultHeaderMap = new HashMap<String, String>();
6565
private String tempFolderPath = null;

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,25 +48,25 @@
4848
@ApiModel(description = "Represents a bookmark to insert.")
4949
public class BookmarkInsert extends BookmarkData {
5050
@SerializedName("EndRange")
51-
protected DocumentPosition endRange;
51+
protected NewDocumentPosition endRange;
5252

5353
@SerializedName("StartRange")
54-
protected DocumentPosition startRange;
54+
protected NewDocumentPosition startRange;
5555
/**
5656
* Gets or sets the link to end bookmark node.
5757
* @return endRange
5858
**/
5959
@ApiModelProperty(value = "Gets or sets the link to end bookmark node.")
60-
public DocumentPosition getEndRange() {
60+
public NewDocumentPosition getEndRange() {
6161
return endRange;
6262
}
6363

64-
public BookmarkInsert endRange(DocumentPosition endRange) {
64+
public BookmarkInsert endRange(NewDocumentPosition endRange) {
6565
this.endRange = endRange;
6666
return this;
6767
}
6868

69-
public void setEndRange(DocumentPosition endRange) {
69+
public void setEndRange(NewDocumentPosition endRange) {
7070
this.endRange = endRange;
7171
}
7272

@@ -76,16 +76,16 @@ public void setEndRange(DocumentPosition endRange) {
7676
* @return startRange
7777
**/
7878
@ApiModelProperty(value = "Gets or sets the link to start bookmark node.")
79-
public DocumentPosition getStartRange() {
79+
public NewDocumentPosition getStartRange() {
8080
return startRange;
8181
}
8282

83-
public BookmarkInsert startRange(DocumentPosition startRange) {
83+
public BookmarkInsert startRange(NewDocumentPosition startRange) {
8484
this.startRange = startRange;
8585
return this;
8686
}
8787

88-
public void setStartRange(DocumentPosition startRange) {
88+
public void setStartRange(NewDocumentPosition startRange) {
8989
this.startRange = startRange;
9090
}
9191

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ public abstract class CommentBase implements ModelIfc {
5757
protected String initial;
5858

5959
@SerializedName("RangeEnd")
60-
protected DocumentPosition rangeEnd;
60+
protected NewDocumentPosition rangeEnd;
6161

6262
@SerializedName("RangeStart")
63-
protected DocumentPosition rangeStart;
63+
protected NewDocumentPosition rangeStart;
6464

6565
@SerializedName("Text")
6666
protected String text;
@@ -126,16 +126,16 @@ public void setInitial(String initial) {
126126
* @return rangeEnd
127127
**/
128128
@ApiModelProperty(value = "Gets or sets the link to comment range end node.")
129-
public DocumentPosition getRangeEnd() {
129+
public NewDocumentPosition getRangeEnd() {
130130
return rangeEnd;
131131
}
132132

133-
public CommentBase rangeEnd(DocumentPosition rangeEnd) {
133+
public CommentBase rangeEnd(NewDocumentPosition rangeEnd) {
134134
this.rangeEnd = rangeEnd;
135135
return this;
136136
}
137137

138-
public void setRangeEnd(DocumentPosition rangeEnd) {
138+
public void setRangeEnd(NewDocumentPosition rangeEnd) {
139139
this.rangeEnd = rangeEnd;
140140
}
141141

@@ -145,16 +145,16 @@ public void setRangeEnd(DocumentPosition rangeEnd) {
145145
* @return rangeStart
146146
**/
147147
@ApiModelProperty(value = "Gets or sets the link to comment range start node.")
148-
public DocumentPosition getRangeStart() {
148+
public NewDocumentPosition getRangeStart() {
149149
return rangeStart;
150150
}
151151

152-
public CommentBase rangeStart(DocumentPosition rangeStart) {
152+
public CommentBase rangeStart(NewDocumentPosition rangeStart) {
153153
this.rangeStart = rangeStart;
154154
return this;
155155
}
156156

157-
public void setRangeStart(DocumentPosition rangeStart) {
157+
public void setRangeStart(NewDocumentPosition rangeStart) {
158158
this.rangeStart = rangeStart;
159159
}
160160

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public WrapTypeEnum read(final JsonReader jsonReader) throws IOException {
211211
protected Double left;
212212

213213
@SerializedName("Position")
214-
protected DocumentPosition position;
214+
protected NewDocumentPosition position;
215215

216216
@SerializedName("RelativeHorizontalPosition")
217217
protected RelativeHorizontalPositionEnum relativeHorizontalPosition;
@@ -270,16 +270,16 @@ public void setLeft(Double left) {
270270
* @return position
271271
**/
272272
@ApiModelProperty(value = "Gets or sets the position, before which the DrawingObject will be inserted.")
273-
public DocumentPosition getPosition() {
273+
public NewDocumentPosition getPosition() {
274274
return position;
275275
}
276276

277-
public DrawingObjectInsert position(DocumentPosition position) {
277+
public DrawingObjectInsert position(NewDocumentPosition position) {
278278
this.position = position;
279279
return this;
280280
}
281281

282-
public void setPosition(DocumentPosition position) {
282+
public void setPosition(NewDocumentPosition position) {
283283
this.position = position;
284284
}
285285

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public FootnoteTypeEnum read(final JsonReader jsonReader) throws IOException {
9797
protected FootnoteTypeEnum footnoteType;
9898

9999
@SerializedName("Position")
100-
protected DocumentPosition position;
100+
protected NewDocumentPosition position;
101101

102102
@SerializedName("ReferenceMark")
103103
protected String referenceMark;
@@ -128,16 +128,16 @@ public void setFootnoteType(FootnoteTypeEnum footnoteType) {
128128
* @return position
129129
**/
130130
@ApiModelProperty(value = "Gets or sets the link to comment range start node.")
131-
public DocumentPosition getPosition() {
131+
public NewDocumentPosition getPosition() {
132132
return position;
133133
}
134134

135-
public FootnoteBase position(DocumentPosition position) {
135+
public FootnoteBase position(NewDocumentPosition position) {
136136
this.position = position;
137137
return this;
138138
}
139139

140-
public void setPosition(DocumentPosition position) {
140+
public void setPosition(NewDocumentPosition position) {
141141
this.position = position;
142142
}
143143

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="NewDocumentPosition.java">
4+
* Copyright (c) 2023 Aspose.Words for Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
package com.aspose.words.cloud.model;
29+
30+
import java.util.Objects;
31+
import java.util.Arrays;
32+
import java.util.ArrayList;
33+
import java.util.List;
34+
import java.io.IOException;
35+
import org.threeten.bp.OffsetDateTime;
36+
import com.aspose.words.cloud.model.*;
37+
import com.google.gson.TypeAdapter;
38+
import com.google.gson.annotations.JsonAdapter;
39+
import com.google.gson.annotations.SerializedName;
40+
import com.google.gson.stream.JsonReader;
41+
import com.google.gson.stream.JsonWriter;
42+
import io.swagger.annotations.ApiModel;
43+
import io.swagger.annotations.ApiModelProperty;
44+
45+
/**
46+
* DTO container with a new position in the document tree.
47+
*/
48+
@ApiModel(description = "DTO container with a new position in the document tree.")
49+
public class NewDocumentPosition implements ModelIfc {
50+
@SerializedName("NodeId")
51+
protected String nodeId;
52+
53+
@SerializedName("Offset")
54+
protected Integer offset;
55+
/**
56+
* Gets or sets the node id.
57+
* @return nodeId
58+
**/
59+
@ApiModelProperty(value = "Gets or sets the node id.")
60+
public String getNodeId() {
61+
return nodeId;
62+
}
63+
64+
public NewDocumentPosition nodeId(String nodeId) {
65+
this.nodeId = nodeId;
66+
return this;
67+
}
68+
69+
public void setNodeId(String nodeId) {
70+
this.nodeId = nodeId;
71+
}
72+
73+
74+
/**
75+
* Gets or sets the offset in the node.
76+
* @return offset
77+
**/
78+
@ApiModelProperty(value = "Gets or sets the offset in the node.")
79+
public Integer getOffset() {
80+
return offset;
81+
}
82+
83+
public NewDocumentPosition offset(Integer offset) {
84+
this.offset = offset;
85+
return this;
86+
}
87+
88+
public void setOffset(Integer offset) {
89+
this.offset = offset;
90+
}
91+
92+
93+
public NewDocumentPosition() {
94+
this.nodeId = null;
95+
this.offset = null;
96+
}
97+
98+
/*
99+
* Gets files content.
100+
*
101+
* @param resultFilesContent List<FileReference> instance.
102+
*/
103+
@Override
104+
public void getFilesContent(List<FileReference> resultFilesContent) {
105+
}
106+
107+
@Override
108+
public boolean equals(java.lang.Object o) {
109+
if (this == o) {
110+
return true;
111+
}
112+
if (o == null || getClass() != o.getClass()) {
113+
return false;
114+
}
115+
116+
NewDocumentPosition newDocumentPosition = (NewDocumentPosition) o;
117+
return
118+
Objects.equals(this.nodeId, newDocumentPosition.nodeId) &&
119+
Objects.equals(this.offset, newDocumentPosition.offset);
120+
}
121+
122+
@Override
123+
public int hashCode() {
124+
return Objects.hash(nodeId, offset);
125+
}
126+
127+
@Override
128+
public String toString() {
129+
StringBuilder sb = new StringBuilder();
130+
sb.append("class NewDocumentPosition {\n");
131+
sb.append(" nodeId: ").append(toIndentedString(getNodeId())).append("\n");
132+
sb.append(" offset: ").append(toIndentedString(getOffset())).append("\n");
133+
sb.append("}");
134+
return sb.toString();
135+
}
136+
137+
/**
138+
* Convert the given object to string with each line indented by 4 spaces
139+
* (except the first line).
140+
*/
141+
private String toIndentedString(java.lang.Object o) {
142+
if (o == null) {
143+
return "null";
144+
}
145+
return o.toString().replace("\n", "\n ");
146+
}
147+
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class TableInsert implements ModelIfc {
5151
protected Integer columnsCount;
5252

5353
@SerializedName("Position")
54-
protected DocumentPosition position;
54+
protected NewDocumentPosition position;
5555

5656
@SerializedName("RowsCount")
5757
protected Integer rowsCount;
@@ -79,16 +79,16 @@ public void setColumnsCount(Integer columnsCount) {
7979
* @return position
8080
**/
8181
@ApiModelProperty(value = "Gets or sets the position to insert the table. The table will be inserted before the specified position.")
82-
public DocumentPosition getPosition() {
82+
public NewDocumentPosition getPosition() {
8383
return position;
8484
}
8585

86-
public TableInsert position(DocumentPosition position) {
86+
public TableInsert position(NewDocumentPosition position) {
8787
this.position = position;
8888
return this;
8989
}
9090

91-
public void setPosition(DocumentPosition position) {
91+
public void setPosition(NewDocumentPosition position) {
9292
this.position = position;
9393
}
9494

0 commit comments

Comments
 (0)