org.opencb.biodata.models.pharma.PharmaChemical Maven / Gradle / Ivy
The newest version!
package org.opencb.biodata.models.pharma;
import org.opencb.biodata.models.core.Xref;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class PharmaChemical {
private String id;
private String source;
private String name;
private List genericNames;
private List tradeNames;
private List tradeMixtures;
private List types;
private List xrefs;
private String smiles;
private String inChI;
private List variants;
private List genes;
private Map attributes;
public PharmaChemical() {
this.genericNames = new ArrayList<>();
this.tradeNames = new ArrayList<>();
this.tradeMixtures = new ArrayList<>();
this.types = new ArrayList<>();
this.xrefs = new ArrayList<>();
this.variants = new ArrayList<>();
this.genes = new ArrayList<>();
this.attributes = new HashMap<>();
}
public PharmaChemical(String id, String source, String name, List genericNames, List tradeNames,
List tradeMixtures, List types, List xrefs, String smiles, String inChI,
List variants, List genes, Map attributes) {
this.id = id;
this.source = source;
this.name = name;
this.genericNames = genericNames;
this.tradeNames = tradeNames;
this.tradeMixtures = tradeMixtures;
this.types = types;
this.xrefs = xrefs;
this.smiles = smiles;
this.inChI = inChI;
this.variants = variants;
this.genes = genes;
this.attributes = attributes;
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("PharmaChemical{");
sb.append("id='").append(id).append('\'');
sb.append(", source='").append(source).append('\'');
sb.append(", name='").append(name).append('\'');
sb.append(", genericNames=").append(genericNames);
sb.append(", tradeNames=").append(tradeNames);
sb.append(", tradeMixtures=").append(tradeMixtures);
sb.append(", types=").append(types);
sb.append(", xrefs=").append(xrefs);
sb.append(", smiles='").append(smiles).append('\'');
sb.append(", inChI='").append(inChI).append('\'');
sb.append(", variants=").append(variants);
sb.append(", genes=").append(genes);
sb.append(", attributes=").append(attributes);
sb.append('}');
return sb.toString();
}
public String getId() {
return id;
}
public PharmaChemical setId(String id) {
this.id = id;
return this;
}
public String getSource() {
return source;
}
public PharmaChemical setSource(String source) {
this.source = source;
return this;
}
public String getName() {
return name;
}
public PharmaChemical setName(String name) {
this.name = name;
return this;
}
public List getGenericNames() {
return genericNames;
}
public PharmaChemical setGenericNames(List genericNames) {
this.genericNames = genericNames;
return this;
}
public List getTradeNames() {
return tradeNames;
}
public PharmaChemical setTradeNames(List tradeNames) {
this.tradeNames = tradeNames;
return this;
}
public List getTradeMixtures() {
return tradeMixtures;
}
public PharmaChemical setTradeMixtures(List tradeMixtures) {
this.tradeMixtures = tradeMixtures;
return this;
}
public List getTypes() {
return types;
}
public PharmaChemical setTypes(List types) {
this.types = types;
return this;
}
public List getXrefs() {
return xrefs;
}
public PharmaChemical setXrefs(List xrefs) {
this.xrefs = xrefs;
return this;
}
public String getSmiles() {
return smiles;
}
public PharmaChemical setSmiles(String smiles) {
this.smiles = smiles;
return this;
}
public String getInChI() {
return inChI;
}
public PharmaChemical setInChI(String inChI) {
this.inChI = inChI;
return this;
}
public List getVariants() {
return variants;
}
public PharmaChemical setVariants(List variants) {
this.variants = variants;
return this;
}
public List getGenes() {
return genes;
}
public PharmaChemical setGenes(List genes) {
this.genes = genes;
return this;
}
public Map getAttributes() {
return attributes;
}
public PharmaChemical setAttributes(Map attributes) {
this.attributes = attributes;
return this;
}
}