1 package com.acumenvelocity.ath.model;
2
3 import java.util.Objects;
4
5 import com.fasterxml.jackson.annotation.JsonProperty;
6
7 import io.swagger.annotations.ApiModel;
8 import io.swagger.annotations.ApiModelProperty;
9 import net.sf.okapi.common.resource.TextFragment.TagType;
10
11
12
13
14
15 @ApiModel(description = "Reference to an inline code, markup in a file segment.")
16 @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaInflectorServerCodegen", comments = "Generator version: 7.15.0")
17 public class InlineCodeRef {
18 @JsonProperty("id")
19 private Integer id = 0;
20
21 @JsonProperty("position")
22 private Integer position = 0;
23
24 @JsonProperty("tagType")
25 private TagType tagType = TagType.PLACEHOLDER;
26
27
28
29
30 public InlineCodeRef id(Integer id) {
31 this.id = id;
32 return this;
33 }
34
35 @ApiModelProperty(required = true, value = "Id of this code. Assigned by Okapi.")
36 @JsonProperty("id")
37 public Integer getId() {
38 return id;
39 }
40
41 public void setId(Integer id) {
42 this.id = id;
43 }
44
45
46
47
48 public InlineCodeRef position(Integer position) {
49 this.position = position;
50 return this;
51 }
52
53 @ApiModelProperty(required = true, value = "Position (0-based char index) of this inline code in the text string.")
54 @JsonProperty("position")
55 public Integer getPosition() {
56 return position;
57 }
58
59 public void setPosition(Integer position) {
60 this.position = position;
61 }
62
63
64
65 public InlineCodeRef tagType(TagType tagType) {
66 this.tagType = tagType;
67 return this;
68 }
69
70 @ApiModelProperty(required = true, value = "")
71 @JsonProperty("tagType")
72 public TagType getTagType() {
73 return tagType;
74 }
75
76 public void setTagType(TagType tagType) {
77 this.tagType = tagType;
78 }
79
80 @Override
81 public boolean equals(Object o) {
82 if (this == o) {
83 return true;
84 }
85 if (o == null || getClass() != o.getClass()) {
86 return false;
87 }
88 InlineCodeRef inlineCodeRef = (InlineCodeRef) o;
89 return Objects.equals(id, inlineCodeRef.id) &&
90 Objects.equals(position, inlineCodeRef.position) &&
91 Objects.equals(tagType, inlineCodeRef.tagType);
92 }
93
94 @Override
95 public int hashCode() {
96 return Objects.hash(id, position, tagType);
97 }
98
99 @Override
100 public String toString() {
101 StringBuilder sb = new StringBuilder();
102 sb.append("class InlineCodeRef {\n");
103
104 sb.append(" id: ").append(toIndentedString(id)).append("\n");
105 sb.append(" position: ").append(toIndentedString(position)).append("\n");
106 sb.append(" tagType: ").append(toIndentedString(tagType)).append("\n");
107 sb.append("}");
108 return sb.toString();
109 }
110
111
112
113
114
115 private String toIndentedString(Object o) {
116 if (o == null) {
117 return "null";
118 }
119 return o.toString().replace("\n", "\n ");
120 }
121 }