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

org.erasmusmc.data_mining.ontology.common.TermImpl 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.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;
import org.erasmusmc.data_mining.ontology.api.Language;
import org.erasmusmc.data_mining.ontology.api.Term;
import org.erasmusmc.data_mining.ontology.api.Term.Id;


/**
 * 

Java class for term complex type. * *

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

 * <complexType name="term">
 *   <complexContent>
 *     <extension base="{http://ontology.biosemantic.erasmusmc.org/}conceptLabel">
 *       <sequence>
 *         <element name="id" type="{http://ontology.biosemantic.erasmusmc.org/}termId"/>
 *       </sequence>
 *       <attribute name="caseInsensitive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *       <attribute name="orderSensitive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *       <attribute name="normalized" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "term", namespace = "http://ontology.biosemantic.erasmusmc.org/", propOrder = { "id" }) @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") public class TermImpl extends LabelImpl implements Serializable, Term { @XmlElement(namespace = "http://ontology.biosemantic.erasmusmc.org/", required = true, type = TermIdImpl.class) @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") protected Id id; @XmlAttribute(name = "caseInsensitive") @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") protected boolean caseInsensitive; @XmlAttribute(name = "orderSensitive") @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") protected boolean orderSensitive; @XmlAttribute(name = "normalized") @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") protected boolean normalized; /** * Default no-arg constructor * */ public TermImpl() { super(); } /** * Fully-initialising value constructor * */ public TermImpl(final String text, final Language language, final LabelType type, final Id id, final boolean caseInsensitive, final boolean orderSensitive, final boolean normalized) { super(text, language, type); this.id = id; this.caseInsensitive = caseInsensitive; this.orderSensitive = orderSensitive; this.normalized = normalized; } /** * Gets the value of the id property. * * @return * possible object is * {@link TermIdImpl } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") public Id getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link TermIdImpl } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") public void setId(Id value) { this.id = value; } /** * Gets the value of the caseInsensitive property. * * @return * possible object is * {@link Boolean } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") public boolean isCaseInsensitive() { return caseInsensitive; } /** * Sets the value of the caseInsensitive property. * * @param value * allowed object is * {@link Boolean } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") public void setCaseInsensitive(boolean value) { this.caseInsensitive = value; } /** * Gets the value of the orderSensitive property. * * @return * possible object is * {@link Boolean } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") public boolean isOrderSensitive() { return orderSensitive; } /** * Sets the value of the orderSensitive property. * * @param value * allowed object is * {@link Boolean } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") public void setOrderSensitive(boolean value) { this.orderSensitive = value; } /** * Gets the value of the normalized property. * * @return * possible object is * {@link Boolean } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") public boolean isNormalized() { return normalized; } /** * Sets the value of the normalized property. * * @param value * allowed object is * {@link Boolean } * */ @Generated(value = "com.sun.tools.xjc.Driver", date = "2015-06-26T10:10:38+02:00", comments = "JAXB RI v2.2.7") public void setNormalized(boolean value) { this.normalized = value; } public TermImpl withId(Id value) { setId(value); return this; } public TermImpl withCaseInsensitive(boolean value) { setCaseInsensitive(value); return this; } public TermImpl withOrderSensitive(boolean value) { setOrderSensitive(value); return this; } public TermImpl withNormalized(boolean value) { setNormalized(value); return this; } @Override public TermImpl withText(String value) { setText(value); return this; } @Override public TermImpl withLanguage(Language value) { setLanguage(value); return this; } @Override public TermImpl 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