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

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

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.4.0-b180830.0438 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2020.01.29 at 08:17:09 PM MST 
//


package org.hl7.elm_modelinfo.r1;

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.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 ClassInfoElement complex type. * *

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

 * <complexType name="ClassInfoElement">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="typeSpecifier" type="{urn:hl7-org:elm-modelinfo:r1}TypeSpecifier" minOccurs="0"/>
 *         <element name="elementTypeSpecifier" type="{urn:hl7-org:elm-modelinfo:r1}TypeSpecifier" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="elementType" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="prohibited" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *       <attribute name="oneBased" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ClassInfoElement", namespace = "urn:hl7-org:elm-modelinfo:r1", propOrder = { "typeSpecifier", "elementTypeSpecifier" }) public class ClassInfoElement implements Equals2, HashCode2, ToString2 { @XmlElement(namespace = "urn:hl7-org:elm-modelinfo:r1") protected TypeSpecifier typeSpecifier; @XmlElement(namespace = "urn:hl7-org:elm-modelinfo:r1") protected TypeSpecifier elementTypeSpecifier; @XmlAttribute(name = "name", required = true) protected String name; @XmlAttribute(name = "type") protected String type; @XmlAttribute(name = "elementType") protected String elementType; @XmlAttribute(name = "prohibited") protected Boolean prohibited; @XmlAttribute(name = "oneBased") protected Boolean oneBased; /** * Gets the value of the typeSpecifier property. * * @return * possible object is * {@link TypeSpecifier } * */ public TypeSpecifier getTypeSpecifier() { return typeSpecifier; } /** * Sets the value of the typeSpecifier property. * * @param value * allowed object is * {@link TypeSpecifier } * */ public void setTypeSpecifier(TypeSpecifier value) { this.typeSpecifier = value; } /** * Gets the value of the elementTypeSpecifier property. * * @return * possible object is * {@link TypeSpecifier } * */ public TypeSpecifier getElementTypeSpecifier() { return elementTypeSpecifier; } /** * Sets the value of the elementTypeSpecifier property. * * @param value * allowed object is * {@link TypeSpecifier } * */ public void setElementTypeSpecifier(TypeSpecifier value) { this.elementTypeSpecifier = 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 type property. * * @return * possible object is * {@link String } * */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(String value) { this.type = value; } /** * Gets the value of the elementType property. * * @return * possible object is * {@link String } * */ public String getElementType() { return elementType; } /** * Sets the value of the elementType property. * * @param value * allowed object is * {@link String } * */ public void setElementType(String value) { this.elementType = value; } /** * Gets the value of the prohibited property. * * @return * possible object is * {@link Boolean } * */ public Boolean isProhibited() { return prohibited; } /** * Sets the value of the prohibited property. * * @param value * allowed object is * {@link Boolean } * */ public void setProhibited(Boolean value) { this.prohibited = value; } /** * Gets the value of the oneBased property. * * @return * possible object is * {@link Boolean } * */ public Boolean isOneBased() { return oneBased; } /** * Sets the value of the oneBased property. * * @param value * allowed object is * {@link Boolean } * */ public void setOneBased(Boolean value) { this.oneBased = value; } public ClassInfoElement withTypeSpecifier(TypeSpecifier value) { setTypeSpecifier(value); return this; } public ClassInfoElement withElementTypeSpecifier(TypeSpecifier value) { setElementTypeSpecifier(value); return this; } public ClassInfoElement withName(String value) { setName(value); return this; } public ClassInfoElement withType(String value) { setType(value); return this; } public ClassInfoElement withElementType(String value) { setElementType(value); return this; } public ClassInfoElement withProhibited(Boolean value) { setProhibited(value); return this; } public ClassInfoElement withOneBased(Boolean value) { setOneBased(value); return this; } 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 ClassInfoElement that = ((ClassInfoElement) object); { TypeSpecifier lhsTypeSpecifier; lhsTypeSpecifier = this.getTypeSpecifier(); TypeSpecifier rhsTypeSpecifier; rhsTypeSpecifier = that.getTypeSpecifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "typeSpecifier", lhsTypeSpecifier), LocatorUtils.property(thatLocator, "typeSpecifier", rhsTypeSpecifier), lhsTypeSpecifier, rhsTypeSpecifier, (this.typeSpecifier!= null), (that.typeSpecifier!= null))) { return false; } } { TypeSpecifier lhsElementTypeSpecifier; lhsElementTypeSpecifier = this.getElementTypeSpecifier(); TypeSpecifier rhsElementTypeSpecifier; rhsElementTypeSpecifier = that.getElementTypeSpecifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "elementTypeSpecifier", lhsElementTypeSpecifier), LocatorUtils.property(thatLocator, "elementTypeSpecifier", rhsElementTypeSpecifier), lhsElementTypeSpecifier, rhsElementTypeSpecifier, (this.elementTypeSpecifier!= null), (that.elementTypeSpecifier!= 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 lhsType; lhsType = this.getType(); String rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType, (this.type!= null), (that.type!= null))) { return false; } } { String lhsElementType; lhsElementType = this.getElementType(); String rhsElementType; rhsElementType = that.getElementType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "elementType", lhsElementType), LocatorUtils.property(thatLocator, "elementType", rhsElementType), lhsElementType, rhsElementType, (this.elementType!= null), (that.elementType!= null))) { return false; } } { Boolean lhsProhibited; lhsProhibited = this.isProhibited(); Boolean rhsProhibited; rhsProhibited = that.isProhibited(); if (!strategy.equals(LocatorUtils.property(thisLocator, "prohibited", lhsProhibited), LocatorUtils.property(thatLocator, "prohibited", rhsProhibited), lhsProhibited, rhsProhibited, (this.prohibited!= null), (that.prohibited!= null))) { return false; } } { Boolean lhsOneBased; lhsOneBased = this.isOneBased(); Boolean rhsOneBased; rhsOneBased = that.isOneBased(); if (!strategy.equals(LocatorUtils.property(thisLocator, "oneBased", lhsOneBased), LocatorUtils.property(thatLocator, "oneBased", rhsOneBased), lhsOneBased, rhsOneBased, (this.oneBased!= null), (that.oneBased!= null))) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE2; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { TypeSpecifier theTypeSpecifier; theTypeSpecifier = this.getTypeSpecifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "typeSpecifier", theTypeSpecifier), currentHashCode, theTypeSpecifier, (this.typeSpecifier!= null)); } { TypeSpecifier theElementTypeSpecifier; theElementTypeSpecifier = this.getElementTypeSpecifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "elementTypeSpecifier", theElementTypeSpecifier), currentHashCode, theElementTypeSpecifier, (this.elementTypeSpecifier!= null)); } { String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName, (this.name!= null)); } { String theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null)); } { String theElementType; theElementType = this.getElementType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "elementType", theElementType), currentHashCode, theElementType, (this.elementType!= null)); } { Boolean theProhibited; theProhibited = this.isProhibited(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "prohibited", theProhibited), currentHashCode, theProhibited, (this.prohibited!= null)); } { Boolean theOneBased; theOneBased = this.isOneBased(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "oneBased", theOneBased), currentHashCode, theOneBased, (this.oneBased!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE2; return this.hashCode(null, strategy); } public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE2; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } 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; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { TypeSpecifier theTypeSpecifier; theTypeSpecifier = this.getTypeSpecifier(); strategy.appendField(locator, this, "typeSpecifier", buffer, theTypeSpecifier, (this.typeSpecifier!= null)); } { TypeSpecifier theElementTypeSpecifier; theElementTypeSpecifier = this.getElementTypeSpecifier(); strategy.appendField(locator, this, "elementTypeSpecifier", buffer, theElementTypeSpecifier, (this.elementTypeSpecifier!= null)); } { String theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName, (this.name!= null)); } { String theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null)); } { String theElementType; theElementType = this.getElementType(); strategy.appendField(locator, this, "elementType", buffer, theElementType, (this.elementType!= null)); } { Boolean theProhibited; theProhibited = this.isProhibited(); strategy.appendField(locator, this, "prohibited", buffer, theProhibited, (this.prohibited!= null)); } { Boolean theOneBased; theOneBased = this.isOneBased(); strategy.appendField(locator, this, "oneBased", buffer, theOneBased, (this.oneBased!= null)); } return buffer; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy