org.erasmusmc.data_mining.ontology.common.DatabaseId Maven / Gradle / Ivy
The newest version!
package org.erasmusmc.data_mining.ontology.common;
import java.io.Serializable;
import javax.annotation.Generated;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
/**
* The concept may occur in different databases with different identifiers and labels.
*
* Java class for databaseId complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="databaseId">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="source" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="code" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "databaseId", namespace = "http://ontology.biosemantic.erasmusmc.org/", propOrder = {
"source",
"code"
})
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7")
public class DatabaseId implements Serializable
{
@XmlElement(namespace = "http://ontology.biosemantic.erasmusmc.org/", required = true)
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7")
protected String source;
@XmlElement(namespace = "http://ontology.biosemantic.erasmusmc.org/", required = true)
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7")
protected String code;
/**
* Default no-arg constructor
*
*/
public DatabaseId() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public DatabaseId(final String source, final String code) {
this.source = source;
this.code = code;
}
/**
* Gets the value of the source property.
*
* @return
* possible object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7")
public String getSource() {
return source;
}
/**
* Sets the value of the source property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7")
public void setSource(String value) {
this.source = value;
}
/**
* Gets the value of the code property.
*
* @return
* possible object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7")
public String getCode() {
return code;
}
/**
* Sets the value of the code property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7")
public void setCode(String value) {
this.code = value;
}
public DatabaseId withSource(String value) {
setSource(value);
return this;
}
public DatabaseId withCode(String value) {
setCode(value);
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy