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

org.erasmusmc.data_mining.ontology.common.BasicLabel Maven / Gradle / Ivy

The newest version!

package org.erasmusmc.data_mining.ontology.common;

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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
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.Language;


/**
 * The language-dependent text.
 * 
 * 

Java class for label complex type. * *

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

 * <complexType name="label">
 *   <simpleContent>
 *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
 *       <attribute ref="{http://www.w3.org/XML/1998/namespace}lang use="required""/>
 *     </extension>
 *   </simpleContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "label", namespace = "http://ontology.biosemantic.erasmusmc.org/", propOrder = { "text" }) @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") public class BasicLabel { @XmlValue @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; /** * Default no-arg constructor * */ public BasicLabel() { super(); } /** * Fully-initialising value constructor * */ public BasicLabel(final String text, final Language language) { this.text = text; this.language = language; } /** * 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; } public BasicLabel withText(String value) { setText(value); return this; } public BasicLabel withLanguage(Language value) { setLanguage(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