All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.erasmusmc.data_mining.ontology.common.LabelImpl 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.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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;
import org.erasmusmc.data_mining.ontology.api.Label;
import org.erasmusmc.data_mining.ontology.api.Language;


/**
 * 

Java class for conceptLabel complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="conceptLabel">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="text" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *       </sequence>
 *       <attribute ref="{http://www.w3.org/XML/1998/namespace}lang use="required""/>
 *       <attribute name="type" use="required" type="{http://ontology.biosemantic.erasmusmc.org/}labelType" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "conceptLabel", namespace = "http://ontology.biosemantic.erasmusmc.org/", propOrder = { "text" }) @XmlSeeAlso({ TermImpl.class }) @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") public class LabelImpl implements Serializable, Label { @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 text; @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace", required = true) @XmlJavaTypeAdapter(Adapter1 .class) @XmlSchemaType(name = "language") @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") protected Language language; @XmlAttribute(name = "type", required = true) @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") protected LabelType type; /** * Default no-arg constructor * */ public LabelImpl() { super(); } /** * Fully-initialising value constructor * */ public LabelImpl(final String text, final Language language, final LabelType type) { this.text = text; this.language = language; this.type = type; } /** * Gets the value of the text 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 getText() { return text; } /** * Sets the value of the text 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 setText(String value) { this.text = value; } /** * The language ISO code as specified in RFC 3066. * * @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 Language getLanguage() { return language; } /** * Sets the value of the language 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 setLanguage(Language value) { this.language = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link LabelType } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") public LabelType getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link LabelType } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") public void setType(LabelType value) { this.type = value; } public LabelImpl withText(String value) { setText(value); return this; } public LabelImpl withLanguage(Language value) { setLanguage(value); return this; } public LabelImpl withType(LabelType value) { setType(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