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

org.hl7.elm_modelinfo.r1.ContextInfo Maven / Gradle / Ivy

//
// 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;


/**
 * Defines an available context type for the model.
 * 
 * 

Java class for ContextInfo complex type. * *

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

 * <complexType name="ContextInfo">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="contextType" type="{urn:hl7-org:elm-modelinfo:r1}NamedTypeSpecifier"/>
 *       </sequence>
 *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="keyElement" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="birthDateElement" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ContextInfo", namespace = "urn:hl7-org:elm-modelinfo:r1", propOrder = { "contextType" }) public class ContextInfo implements Equals2, HashCode2, ToString2 { @XmlElement(namespace = "urn:hl7-org:elm-modelinfo:r1", required = true) protected NamedTypeSpecifier contextType; @XmlAttribute(name = "name", required = true) protected String name; @XmlAttribute(name = "keyElement") protected String keyElement; @XmlAttribute(name = "birthDateElement") protected String birthDateElement; /** * Gets the value of the contextType property. * * @return * possible object is * {@link NamedTypeSpecifier } * */ public NamedTypeSpecifier getContextType() { return contextType; } /** * Sets the value of the contextType property. * * @param value * allowed object is * {@link NamedTypeSpecifier } * */ public void setContextType(NamedTypeSpecifier value) { this.contextType = value; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the keyElement property. * * @return * possible object is * {@link String } * */ public String getKeyElement() { return keyElement; } /** * Sets the value of the keyElement property. * * @param value * allowed object is * {@link String } * */ public void setKeyElement(String value) { this.keyElement = value; } /** * Gets the value of the birthDateElement property. * * @return * possible object is * {@link String } * */ public String getBirthDateElement() { return birthDateElement; } /** * Sets the value of the birthDateElement property. * * @param value * allowed object is * {@link String } * */ public void setBirthDateElement(String value) { this.birthDateElement = value; } public ContextInfo withContextType(NamedTypeSpecifier value) { setContextType(value); return this; } public ContextInfo withName(String value) { setName(value); return this; } public ContextInfo withKeyElement(String value) { setKeyElement(value); return this; } public ContextInfo withBirthDateElement(String value) { setBirthDateElement(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 ContextInfo that = ((ContextInfo) object); { NamedTypeSpecifier lhsContextType; lhsContextType = this.getContextType(); NamedTypeSpecifier rhsContextType; rhsContextType = that.getContextType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "contextType", lhsContextType), LocatorUtils.property(thatLocator, "contextType", rhsContextType), lhsContextType, rhsContextType, (this.contextType!= null), (that.contextType!= null))) { return false; } } { String lhsName; lhsName = this.getName(); String rhsName; rhsName = that.getName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName, (this.name!= null), (that.name!= null))) { return false; } } { String lhsKeyElement; lhsKeyElement = this.getKeyElement(); String rhsKeyElement; rhsKeyElement = that.getKeyElement(); if (!strategy.equals(LocatorUtils.property(thisLocator, "keyElement", lhsKeyElement), LocatorUtils.property(thatLocator, "keyElement", rhsKeyElement), lhsKeyElement, rhsKeyElement, (this.keyElement!= null), (that.keyElement!= null))) { return false; } } { String lhsBirthDateElement; lhsBirthDateElement = this.getBirthDateElement(); String rhsBirthDateElement; rhsBirthDateElement = that.getBirthDateElement(); if (!strategy.equals(LocatorUtils.property(thisLocator, "birthDateElement", lhsBirthDateElement), LocatorUtils.property(thatLocator, "birthDateElement", rhsBirthDateElement), lhsBirthDateElement, rhsBirthDateElement, (this.birthDateElement!= null), (that.birthDateElement!= 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; { NamedTypeSpecifier theContextType; theContextType = this.getContextType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contextType", theContextType), currentHashCode, theContextType, (this.contextType!= null)); } { String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName, (this.name!= null)); } { String theKeyElement; theKeyElement = this.getKeyElement(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "keyElement", theKeyElement), currentHashCode, theKeyElement, (this.keyElement!= null)); } { String theBirthDateElement; theBirthDateElement = this.getBirthDateElement(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "birthDateElement", theBirthDateElement), currentHashCode, theBirthDateElement, (this.birthDateElement!= 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) { { NamedTypeSpecifier theContextType; theContextType = this.getContextType(); strategy.appendField(locator, this, "contextType", buffer, theContextType, (this.contextType!= null)); } { String theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName, (this.name!= null)); } { String theKeyElement; theKeyElement = this.getKeyElement(); strategy.appendField(locator, this, "keyElement", buffer, theKeyElement, (this.keyElement!= null)); } { String theBirthDateElement; theBirthDateElement = this.getBirthDateElement(); strategy.appendField(locator, this, "birthDateElement", buffer, theBirthDateElement, (this.birthDateElement!= null)); } return buffer; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy