forked from biolink/biolink-model
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDiseaseOrPhenotypicFeature.java
More file actions
150 lines (135 loc) · 5.52 KB
/
DiseaseOrPhenotypicFeature.java
File metadata and controls
150 lines (135 loc) · 5.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
* DiseaseOrPhenotypicFeature
* <p>
* Either one of a disease or an individual phenotypic feature. Some knowledge resources such as Monarch treat these as distinct, others such as MESH conflate.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"correlated_with",
"has_biomarker",
"in_taxon",
"treated_by"
})
public class DiseaseOrPhenotypicFeature {
/**
* holds between a disease or phenotypic feature and a measurable molecular entity that is used as an indicator of the presence or state of the disease or feature.
*
*/
@JsonProperty("correlated_with")
@JsonPropertyDescription("holds between a disease or phenotypic feature and a measurable molecular entity that is used as an indicator of the presence or state of the disease or feature.")
private List<String> correlatedWith = new ArrayList<String>();
/**
* holds between a disease or phenotypic feature and a measurable molecular entity that is used as an indicator of the presence or state of the disease or feature.
*
*/
@JsonProperty("has_biomarker")
@JsonPropertyDescription("holds between a disease or phenotypic feature and a measurable molecular entity that is used as an indicator of the presence or state of the disease or feature.")
private List<String> hasBiomarker = new ArrayList<String>();
/**
* connects a thing to a class representing a taxon
*
*/
@JsonProperty("in_taxon")
@JsonPropertyDescription("connects a thing to a class representing a taxon")
private List<String> inTaxon = new ArrayList<String>();
/**
* holds between a disease or phenotypic feature and a therapeutic process or chemical substance that is used to treat the condition
*
*/
@JsonProperty("treated_by")
@JsonPropertyDescription("holds between a disease or phenotypic feature and a therapeutic process or chemical substance that is used to treat the condition")
private List<String> treatedBy = new ArrayList<String>();
/**
* holds between a disease or phenotypic feature and a measurable molecular entity that is used as an indicator of the presence or state of the disease or feature.
*
*/
@JsonProperty("correlated_with")
public List<String> getCorrelatedWith() {
return correlatedWith;
}
/**
* holds between a disease or phenotypic feature and a measurable molecular entity that is used as an indicator of the presence or state of the disease or feature.
*
*/
@JsonProperty("correlated_with")
public void setCorrelatedWith(List<String> correlatedWith) {
this.correlatedWith = correlatedWith;
}
/**
* holds between a disease or phenotypic feature and a measurable molecular entity that is used as an indicator of the presence or state of the disease or feature.
*
*/
@JsonProperty("has_biomarker")
public List<String> getHasBiomarker() {
return hasBiomarker;
}
/**
* holds between a disease or phenotypic feature and a measurable molecular entity that is used as an indicator of the presence or state of the disease or feature.
*
*/
@JsonProperty("has_biomarker")
public void setHasBiomarker(List<String> hasBiomarker) {
this.hasBiomarker = hasBiomarker;
}
/**
* connects a thing to a class representing a taxon
*
*/
@JsonProperty("in_taxon")
public List<String> getInTaxon() {
return inTaxon;
}
/**
* connects a thing to a class representing a taxon
*
*/
@JsonProperty("in_taxon")
public void setInTaxon(List<String> inTaxon) {
this.inTaxon = inTaxon;
}
/**
* holds between a disease or phenotypic feature and a therapeutic process or chemical substance that is used to treat the condition
*
*/
@JsonProperty("treated_by")
public List<String> getTreatedBy() {
return treatedBy;
}
/**
* holds between a disease or phenotypic feature and a therapeutic process or chemical substance that is used to treat the condition
*
*/
@JsonProperty("treated_by")
public void setTreatedBy(List<String> treatedBy) {
this.treatedBy = treatedBy;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("correlatedWith", correlatedWith).append("hasBiomarker", hasBiomarker).append("inTaxon", inTaxon).append("treatedBy", treatedBy).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(hasBiomarker).append(correlatedWith).append(inTaxon).append(treatedBy).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DiseaseOrPhenotypicFeature) == false) {
return false;
}
DiseaseOrPhenotypicFeature rhs = ((DiseaseOrPhenotypicFeature) other);
return new EqualsBuilder().append(hasBiomarker, rhs.hasBiomarker).append(correlatedWith, rhs.correlatedWith).append(inTaxon, rhs.inTaxon).append(treatedBy, rhs.treatedBy).isEquals();
}
}