Skip to content

Commit 0b428d0

Browse files
committed
20230420 update: add xml controllor.
1 parent bd511a0 commit 0b428d0

File tree

6 files changed

+641
-2
lines changed

6 files changed

+641
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>aspose-cells-cloud</artifactId>
66
<packaging>jar</packaging>
77
<name>aspose-cells-cloud</name>
8-
<version>23.3</version>
8+
<version>23.4</version>
99
<url>https://github.com/aspose-cells-cloud/aspose-cells-cloud-java</url>
1010
<scm>
1111
<connection>scm:git:[email protected]:aspose-cells-cloud/aspose-cells-cloud-java</connection>

src/main/java/com/aspose/cloud/cells/model/Hyperlink.java

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,23 @@ public void setTextToDisplay(String textToDisplay) {
105105
this.textToDisplay = textToDisplay;
106106
}
107107

108+
@SerializedName("LinkType")
109+
private String linkType ;
110+
111+
public Hyperlink linkType(String linkType) {
112+
this.linkType = linkType;
113+
return this;
114+
}
115+
116+
@ApiModelProperty(value = "")
117+
public String getLinkType() {
118+
return linkType;
119+
}
120+
121+
public void setLinkType(String linkType) {
122+
this.linkType = linkType;
123+
}
124+
108125
@Override
109126
public boolean equals(java.lang.Object o) {
110127
if (this == o) {
@@ -120,12 +137,13 @@ public boolean equals(java.lang.Object o) {
120137
Objects.equals(this.area, hyperlink.area) &&
121138
Objects.equals(this.screenTip, hyperlink.screenTip) &&
122139
Objects.equals(this.textToDisplay, hyperlink.textToDisplay) &&
140+
Objects.equals(this.linkType, hyperlink.linkType) &&
123141
super.equals(o);
124142
}
125143

126144
@Override
127145
public int hashCode() {
128-
return Objects.hash(address, area, screenTip, textToDisplay, super.hashCode());
146+
return Objects.hash(address, area, screenTip, textToDisplay, linkType, super.hashCode());
129147
}
130148
@Override
131149
public String toString() {
@@ -135,6 +153,7 @@ public String toString() {
135153
sb.append(" area: ").append(toIndentedString(getArea())).append("\n");
136154
sb.append(" screenTip: ").append(toIndentedString(getScreenTip())).append("\n");
137155
sb.append(" textToDisplay: ").append(toIndentedString(getTextToDisplay())).append("\n");
156+
sb.append(" linkType: ").append(toIndentedString(getLinkType())).append("\n");
138157
sb.append(" link: ").append(toIndentedString(getLink())).append("\n");
139158
sb.append("}");
140159
return sb.toString();
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="ImportPosition.java">
4+
* Copyright (c) 2023 Aspose.Cells 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.cloud.cells.model;
29+
30+
import java.util.Objects;
31+
import io.swagger.annotations.ApiModelProperty;
32+
import com.aspose.cloud.cells.model.*;
33+
import java.util.ArrayList;
34+
import java.util.List;
35+
import com.google.gson.annotations.SerializedName;
36+
import java.time.OffsetDateTime;
37+
38+
39+
public class ImportPosition {
40+
@SerializedName("SheetName")
41+
private String sheetName ;
42+
43+
public ImportPosition sheetName(String sheetName) {
44+
this.sheetName = sheetName;
45+
return this;
46+
}
47+
48+
@ApiModelProperty(value = "")
49+
public String getSheetName() {
50+
return sheetName;
51+
}
52+
53+
public void setSheetName(String sheetName) {
54+
this.sheetName = sheetName;
55+
}
56+
57+
@SerializedName("RowIndex")
58+
private Integer rowIndex ;
59+
60+
public ImportPosition rowIndex(Integer rowIndex) {
61+
this.rowIndex = rowIndex;
62+
return this;
63+
}
64+
65+
@ApiModelProperty(value = "")
66+
public Integer getRowIndex() {
67+
return rowIndex;
68+
}
69+
70+
public void setRowIndex(Integer rowIndex) {
71+
this.rowIndex = rowIndex;
72+
}
73+
74+
@SerializedName("ColumnIndex")
75+
private Integer columnIndex ;
76+
77+
public ImportPosition columnIndex(Integer columnIndex) {
78+
this.columnIndex = columnIndex;
79+
return this;
80+
}
81+
82+
@ApiModelProperty(value = "")
83+
public Integer getColumnIndex() {
84+
return columnIndex;
85+
}
86+
87+
public void setColumnIndex(Integer columnIndex) {
88+
this.columnIndex = columnIndex;
89+
}
90+
91+
@Override
92+
public boolean equals(java.lang.Object o) {
93+
if (this == o) {
94+
return true;
95+
}
96+
if (o == null || getClass() != o.getClass()) {
97+
return false;
98+
}
99+
100+
ImportPosition importPosition = (ImportPosition) o;
101+
return
102+
Objects.equals(this.sheetName, importPosition.sheetName) &&
103+
Objects.equals(this.rowIndex, importPosition.rowIndex) &&
104+
Objects.equals(this.columnIndex, importPosition.columnIndex);
105+
}
106+
107+
@Override
108+
public int hashCode() {
109+
return Objects.hash(sheetName, rowIndex, columnIndex);
110+
}
111+
@Override
112+
public String toString() {
113+
StringBuilder sb = new StringBuilder();
114+
sb.append("class ImportPosition {\n");
115+
sb.append(" sheetName: ").append(toIndentedString(getSheetName())).append("\n");
116+
sb.append(" rowIndex: ").append(toIndentedString(getRowIndex())).append("\n");
117+
sb.append(" columnIndex: ").append(toIndentedString(getColumnIndex())).append("\n");
118+
sb.append("}");
119+
return sb.toString();
120+
}
121+
122+
/**
123+
* Convert the given object to string with each line indented by 4 spaces
124+
* (except the first line).
125+
*/
126+
private String toIndentedString(java.lang.Object o) {
127+
if (o == null) {
128+
return "null";
129+
}
130+
return o.toString().replace("\n", "\n ");
131+
}
132+
133+
134+
}
135+
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="ImportXMLRequest.java">
4+
* Copyright (c) 2023 Aspose.Cells 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.cloud.cells.model;
29+
30+
import java.util.Objects;
31+
import io.swagger.annotations.ApiModelProperty;
32+
import com.aspose.cloud.cells.model.*;
33+
import java.util.ArrayList;
34+
import java.util.List;
35+
import com.google.gson.annotations.SerializedName;
36+
import java.time.OffsetDateTime;
37+
38+
39+
public class ImportXMLRequest {
40+
@SerializedName("XMLFileSource")
41+
private FileSource xMLFileSource ;
42+
43+
public ImportXMLRequest xMLFileSource(FileSource xMLFileSource) {
44+
this.xMLFileSource = xMLFileSource;
45+
return this;
46+
}
47+
48+
@ApiModelProperty(value = "")
49+
public FileSource getXMLFileSource() {
50+
return xMLFileSource;
51+
}
52+
53+
public void setXMLFileSource(FileSource xMLFileSource) {
54+
this.xMLFileSource = xMLFileSource;
55+
}
56+
57+
@SerializedName("ImportPosition")
58+
private ImportPosition importPosition ;
59+
60+
public ImportXMLRequest importPosition(ImportPosition importPosition) {
61+
this.importPosition = importPosition;
62+
return this;
63+
}
64+
65+
@ApiModelProperty(value = "")
66+
public ImportPosition getImportPosition() {
67+
return importPosition;
68+
}
69+
70+
public void setImportPosition(ImportPosition importPosition) {
71+
this.importPosition = importPosition;
72+
}
73+
74+
@Override
75+
public boolean equals(java.lang.Object o) {
76+
if (this == o) {
77+
return true;
78+
}
79+
if (o == null || getClass() != o.getClass()) {
80+
return false;
81+
}
82+
83+
ImportXMLRequest importXMLRequest = (ImportXMLRequest) o;
84+
return
85+
Objects.equals(this.xMLFileSource, importXMLRequest.xMLFileSource) &&
86+
Objects.equals(this.importPosition, importXMLRequest.importPosition);
87+
}
88+
89+
@Override
90+
public int hashCode() {
91+
return Objects.hash(xMLFileSource, importPosition);
92+
}
93+
@Override
94+
public String toString() {
95+
StringBuilder sb = new StringBuilder();
96+
sb.append("class ImportXMLRequest {\n");
97+
sb.append(" xMLFileSource: ").append(toIndentedString(getXMLFileSource())).append("\n");
98+
sb.append(" importPosition: ").append(toIndentedString(getImportPosition())).append("\n");
99+
sb.append("}");
100+
return sb.toString();
101+
}
102+
103+
/**
104+
* Convert the given object to string with each line indented by 4 spaces
105+
* (except the first line).
106+
*/
107+
private String toIndentedString(java.lang.Object o) {
108+
if (o == null) {
109+
return "null";
110+
}
111+
return o.toString().replace("\n", "\n ");
112+
}
113+
114+
115+
}
116+

0 commit comments

Comments
 (0)