![JAR search and dependency download from the Maven repository](/logo.png)
org.hl7.elm_modelinfo.r1.ConversionInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of model Show documentation
Show all versions of model Show documentation
The model library for the Clinical Quality Language Java reference implementation
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.08.16 at 09:36:50 AM MDT
//
package org.hl7.elm_modelinfo.r1;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Java class for ConversionInfo complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ConversionInfo">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="fromTypeSpecifier" type="{urn:hl7-org:elm-modelinfo:r1}TypeSpecifier" minOccurs="0"/>
* <element name="toTypeSpecifier" type="{urn:hl7-org:elm-modelinfo:r1}TypeSpecifier" minOccurs="0"/>
* </sequence>
* <attribute name="functionName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="fromType" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="toType" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ConversionInfo", namespace = "urn:hl7-org:elm-modelinfo:r1", propOrder = {
"fromTypeSpecifier",
"toTypeSpecifier"
})
public class ConversionInfo implements Equals2, HashCode2, ToString2
{
@XmlElement(namespace = "urn:hl7-org:elm-modelinfo:r1")
protected TypeSpecifier fromTypeSpecifier;
@XmlElement(namespace = "urn:hl7-org:elm-modelinfo:r1")
protected TypeSpecifier toTypeSpecifier;
@XmlAttribute(name = "functionName", required = true)
protected String functionName;
@XmlAttribute(name = "fromType")
protected String fromType;
@XmlAttribute(name = "toType")
protected String toType;
/**
* Gets the value of the fromTypeSpecifier property.
*
* @return
* possible object is
* {@link TypeSpecifier }
*
*/
public TypeSpecifier getFromTypeSpecifier() {
return fromTypeSpecifier;
}
/**
* Sets the value of the fromTypeSpecifier property.
*
* @param value
* allowed object is
* {@link TypeSpecifier }
*
*/
public void setFromTypeSpecifier(TypeSpecifier value) {
this.fromTypeSpecifier = value;
}
/**
* Gets the value of the toTypeSpecifier property.
*
* @return
* possible object is
* {@link TypeSpecifier }
*
*/
public TypeSpecifier getToTypeSpecifier() {
return toTypeSpecifier;
}
/**
* Sets the value of the toTypeSpecifier property.
*
* @param value
* allowed object is
* {@link TypeSpecifier }
*
*/
public void setToTypeSpecifier(TypeSpecifier value) {
this.toTypeSpecifier = value;
}
/**
* Gets the value of the functionName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFunctionName() {
return functionName;
}
/**
* Sets the value of the functionName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFunctionName(String value) {
this.functionName = value;
}
/**
* Gets the value of the fromType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFromType() {
return fromType;
}
/**
* Sets the value of the fromType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFromType(String value) {
this.fromType = value;
}
/**
* Gets the value of the toType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getToType() {
return toType;
}
/**
* Sets the value of the toType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setToType(String value) {
this.toType = value;
}
public ConversionInfo withFromTypeSpecifier(TypeSpecifier value) {
setFromTypeSpecifier(value);
return this;
}
public ConversionInfo withToTypeSpecifier(TypeSpecifier value) {
setToTypeSpecifier(value);
return this;
}
public ConversionInfo withFunctionName(String value) {
setFunctionName(value);
return this;
}
public ConversionInfo withFromType(String value) {
setFromType(value);
return this;
}
public ConversionInfo withToType(String value) {
setToType(value);
return this;
}
@Override
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
final ConversionInfo that = ((ConversionInfo) object);
{
TypeSpecifier lhsFromTypeSpecifier;
lhsFromTypeSpecifier = this.getFromTypeSpecifier();
TypeSpecifier rhsFromTypeSpecifier;
rhsFromTypeSpecifier = that.getFromTypeSpecifier();
if (!strategy.equals(LocatorUtils.property(thisLocator, "fromTypeSpecifier", lhsFromTypeSpecifier), LocatorUtils.property(thatLocator, "fromTypeSpecifier", rhsFromTypeSpecifier), lhsFromTypeSpecifier, rhsFromTypeSpecifier, (this.fromTypeSpecifier!= null), (that.fromTypeSpecifier!= null))) {
return false;
}
}
{
TypeSpecifier lhsToTypeSpecifier;
lhsToTypeSpecifier = this.getToTypeSpecifier();
TypeSpecifier rhsToTypeSpecifier;
rhsToTypeSpecifier = that.getToTypeSpecifier();
if (!strategy.equals(LocatorUtils.property(thisLocator, "toTypeSpecifier", lhsToTypeSpecifier), LocatorUtils.property(thatLocator, "toTypeSpecifier", rhsToTypeSpecifier), lhsToTypeSpecifier, rhsToTypeSpecifier, (this.toTypeSpecifier!= null), (that.toTypeSpecifier!= null))) {
return false;
}
}
{
String lhsFunctionName;
lhsFunctionName = this.getFunctionName();
String rhsFunctionName;
rhsFunctionName = that.getFunctionName();
if (!strategy.equals(LocatorUtils.property(thisLocator, "functionName", lhsFunctionName), LocatorUtils.property(thatLocator, "functionName", rhsFunctionName), lhsFunctionName, rhsFunctionName, (this.functionName!= null), (that.functionName!= null))) {
return false;
}
}
{
String lhsFromType;
lhsFromType = this.getFromType();
String rhsFromType;
rhsFromType = that.getFromType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "fromType", lhsFromType), LocatorUtils.property(thatLocator, "fromType", rhsFromType), lhsFromType, rhsFromType, (this.fromType!= null), (that.fromType!= null))) {
return false;
}
}
{
String lhsToType;
lhsToType = this.getToType();
String rhsToType;
rhsToType = that.getToType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "toType", lhsToType), LocatorUtils.property(thatLocator, "toType", rhsToType), lhsToType, rhsToType, (this.toType!= null), (that.toType!= null))) {
return false;
}
}
return true;
}
@Override
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance();
return equals(null, null, object, strategy);
}
@Override
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
int currentHashCode = 1;
{
TypeSpecifier theFromTypeSpecifier;
theFromTypeSpecifier = this.getFromTypeSpecifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fromTypeSpecifier", theFromTypeSpecifier), currentHashCode, theFromTypeSpecifier, (this.fromTypeSpecifier!= null));
}
{
TypeSpecifier theToTypeSpecifier;
theToTypeSpecifier = this.getToTypeSpecifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "toTypeSpecifier", theToTypeSpecifier), currentHashCode, theToTypeSpecifier, (this.toTypeSpecifier!= null));
}
{
String theFunctionName;
theFunctionName = this.getFunctionName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "functionName", theFunctionName), currentHashCode, theFunctionName, (this.functionName!= null));
}
{
String theFromType;
theFromType = this.getFromType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fromType", theFromType), currentHashCode, theFromType, (this.fromType!= null));
}
{
String theToType;
theToType = this.getToType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "toType", theToType), currentHashCode, theToType, (this.toType!= null));
}
return currentHashCode;
}
@Override
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance();
return this.hashCode(null, strategy);
}
@Override
public String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance();
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
@Override
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
@Override
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
{
TypeSpecifier theFromTypeSpecifier;
theFromTypeSpecifier = this.getFromTypeSpecifier();
strategy.appendField(locator, this, "fromTypeSpecifier", buffer, theFromTypeSpecifier, (this.fromTypeSpecifier!= null));
}
{
TypeSpecifier theToTypeSpecifier;
theToTypeSpecifier = this.getToTypeSpecifier();
strategy.appendField(locator, this, "toTypeSpecifier", buffer, theToTypeSpecifier, (this.toTypeSpecifier!= null));
}
{
String theFunctionName;
theFunctionName = this.getFunctionName();
strategy.appendField(locator, this, "functionName", buffer, theFunctionName, (this.functionName!= null));
}
{
String theFromType;
theFromType = this.getFromType();
strategy.appendField(locator, this, "fromType", buffer, theFromType, (this.fromType!= null));
}
{
String theToType;
theToType = this.getToType();
strategy.appendField(locator, this, "toType", buffer, theToType, (this.toType!= null));
}
return buffer;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy