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.2.11 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2018.04.11 at 05:16:44 PM MDT 
//


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.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
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.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
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"/>
 *       </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="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" }) public class ClassInfoElement implements Equals, HashCode, ToString { @XmlElement(namespace = "urn:hl7-org:elm-modelinfo:r1") protected TypeSpecifier typeSpecifier; @XmlAttribute(name = "name", required = true) protected String name; @XmlAttribute(name = "type") protected String type; @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 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 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 withName(String value) { setName(value); return this; } public ClassInfoElement withType(String value) { setType(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, EqualsStrategy strategy) { if (!(object instanceof ClassInfoElement)) { 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)) { 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)) { 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)) { 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)) { 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)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { TypeSpecifier theTypeSpecifier; theTypeSpecifier = this.getTypeSpecifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "typeSpecifier", theTypeSpecifier), currentHashCode, theTypeSpecifier); } { String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName); } { String theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType); } { Boolean theProhibited; theProhibited = this.isProhibited(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "prohibited", theProhibited), currentHashCode, theProhibited); } { Boolean theOneBased; theOneBased = this.isOneBased(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "oneBased", theOneBased), currentHashCode, theOneBased); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { TypeSpecifier theTypeSpecifier; theTypeSpecifier = this.getTypeSpecifier(); strategy.appendField(locator, this, "typeSpecifier", buffer, theTypeSpecifier); } { String theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName); } { String theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType); } { Boolean theProhibited; theProhibited = this.isProhibited(); strategy.appendField(locator, this, "prohibited", buffer, theProhibited); } { Boolean theOneBased; theOneBased = this.isOneBased(); strategy.appendField(locator, this, "oneBased", buffer, theOneBased); } return buffer; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy