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

org.hl7.elm_modelinfo.r1.SearchInfo 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 a possible search path for a ClassInfo within the model.
 * 
 * 

Java class for SearchInfo complex type. * *

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

 * <complexType name="SearchInfo">
 *   <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="path" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="label" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="definition" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="comment" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SearchInfo", namespace = "urn:hl7-org:elm-modelinfo:r1", propOrder = { "typeSpecifier" }) public class SearchInfo implements Equals2, HashCode2, ToString2 { @XmlElement(namespace = "urn:hl7-org:elm-modelinfo:r1") protected TypeSpecifier typeSpecifier; @XmlAttribute(name = "name", required = true) protected String name; @XmlAttribute(name = "path", required = true) protected String path; @XmlAttribute(name = "type") protected String type; @XmlAttribute(name = "label") protected String label; @XmlAttribute(name = "description") protected String description; @XmlAttribute(name = "definition") protected String definition; @XmlAttribute(name = "comment") protected String comment; /** * 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 path property. * * @return * possible object is * {@link String } * */ public String getPath() { return path; } /** * Sets the value of the path property. * * @param value * allowed object is * {@link String } * */ public void setPath(String value) { this.path = 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 label property. * * @return * possible object is * {@link String } * */ public String getLabel() { return label; } /** * Sets the value of the label property. * * @param value * allowed object is * {@link String } * */ public void setLabel(String value) { this.label = value; } /** * Gets the value of the description property. * * @return * possible object is * {@link String } * */ public String getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link String } * */ public void setDescription(String value) { this.description = value; } /** * Gets the value of the definition property. * * @return * possible object is * {@link String } * */ public String getDefinition() { return definition; } /** * Sets the value of the definition property. * * @param value * allowed object is * {@link String } * */ public void setDefinition(String value) { this.definition = value; } /** * Gets the value of the comment property. * * @return * possible object is * {@link String } * */ public String getComment() { return comment; } /** * Sets the value of the comment property. * * @param value * allowed object is * {@link String } * */ public void setComment(String value) { this.comment = value; } public SearchInfo withTypeSpecifier(TypeSpecifier value) { setTypeSpecifier(value); return this; } public SearchInfo withName(String value) { setName(value); return this; } public SearchInfo withPath(String value) { setPath(value); return this; } public SearchInfo withType(String value) { setType(value); return this; } public SearchInfo withLabel(String value) { setLabel(value); return this; } public SearchInfo withDescription(String value) { setDescription(value); return this; } public SearchInfo withDefinition(String value) { setDefinition(value); return this; } public SearchInfo withComment(String value) { setComment(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 SearchInfo that = ((SearchInfo) 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; } } { 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 lhsPath; lhsPath = this.getPath(); String rhsPath; rhsPath = that.getPath(); if (!strategy.equals(LocatorUtils.property(thisLocator, "path", lhsPath), LocatorUtils.property(thatLocator, "path", rhsPath), lhsPath, rhsPath, (this.path!= null), (that.path!= 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 lhsLabel; lhsLabel = this.getLabel(); String rhsLabel; rhsLabel = that.getLabel(); if (!strategy.equals(LocatorUtils.property(thisLocator, "label", lhsLabel), LocatorUtils.property(thatLocator, "label", rhsLabel), lhsLabel, rhsLabel, (this.label!= null), (that.label!= null))) { return false; } } { String lhsDescription; lhsDescription = this.getDescription(); String rhsDescription; rhsDescription = that.getDescription(); if (!strategy.equals(LocatorUtils.property(thisLocator, "description", lhsDescription), LocatorUtils.property(thatLocator, "description", rhsDescription), lhsDescription, rhsDescription, (this.description!= null), (that.description!= null))) { return false; } } { String lhsDefinition; lhsDefinition = this.getDefinition(); String rhsDefinition; rhsDefinition = that.getDefinition(); if (!strategy.equals(LocatorUtils.property(thisLocator, "definition", lhsDefinition), LocatorUtils.property(thatLocator, "definition", rhsDefinition), lhsDefinition, rhsDefinition, (this.definition!= null), (that.definition!= null))) { return false; } } { String lhsComment; lhsComment = this.getComment(); String rhsComment; rhsComment = that.getComment(); if (!strategy.equals(LocatorUtils.property(thisLocator, "comment", lhsComment), LocatorUtils.property(thatLocator, "comment", rhsComment), lhsComment, rhsComment, (this.comment!= null), (that.comment!= 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 theTypeSpecifier; theTypeSpecifier = this.getTypeSpecifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "typeSpecifier", theTypeSpecifier), currentHashCode, theTypeSpecifier, (this.typeSpecifier!= null)); } { String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName, (this.name!= null)); } { String thePath; thePath = this.getPath(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "path", thePath), currentHashCode, thePath, (this.path!= null)); } { String theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null)); } { String theLabel; theLabel = this.getLabel(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "label", theLabel), currentHashCode, theLabel, (this.label!= null)); } { String theDescription; theDescription = this.getDescription(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description", theDescription), currentHashCode, theDescription, (this.description!= null)); } { String theDefinition; theDefinition = this.getDefinition(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "definition", theDefinition), currentHashCode, theDefinition, (this.definition!= null)); } { String theComment; theComment = this.getComment(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "comment", theComment), currentHashCode, theComment, (this.comment!= 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 theTypeSpecifier; theTypeSpecifier = this.getTypeSpecifier(); strategy.appendField(locator, this, "typeSpecifier", buffer, theTypeSpecifier, (this.typeSpecifier!= null)); } { String theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName, (this.name!= null)); } { String thePath; thePath = this.getPath(); strategy.appendField(locator, this, "path", buffer, thePath, (this.path!= null)); } { String theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null)); } { String theLabel; theLabel = this.getLabel(); strategy.appendField(locator, this, "label", buffer, theLabel, (this.label!= null)); } { String theDescription; theDescription = this.getDescription(); strategy.appendField(locator, this, "description", buffer, theDescription, (this.description!= null)); } { String theDefinition; theDefinition = this.getDefinition(); strategy.appendField(locator, this, "definition", buffer, theDefinition, (this.definition!= null)); } { String theComment; theComment = this.getComment(); strategy.appendField(locator, this, "comment", buffer, theComment, (this.comment!= null)); } return buffer; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy