org.hl7.fhir.ImplementationGuidePage Maven / Gradle / Ivy
Show all versions of quick Show documentation
//
// 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:55 AM MDT
//
package org.hl7.fhir;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
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;
/**
* A set of rules or how FHIR is used to solve a particular problem. This resource is used to gather all the parts of an implementation guide into a logical whole, and to publish a computable definition of all the parts.
*
* Java class for ImplementationGuide.Page complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ImplementationGuide.Page">
* <complexContent>
* <extension base="{http://hl7.org/fhir}BackboneElement">
* <sequence>
* <element name="source" type="{http://hl7.org/fhir}uri"/>
* <element name="name" type="{http://hl7.org/fhir}string"/>
* <element name="kind" type="{http://hl7.org/fhir}GuidePageKind"/>
* <element name="type" type="{http://hl7.org/fhir}code" maxOccurs="unbounded" minOccurs="0"/>
* <element name="package" type="{http://hl7.org/fhir}string" maxOccurs="unbounded" minOccurs="0"/>
* <element name="format" type="{http://hl7.org/fhir}code" minOccurs="0"/>
* <element name="page" type="{http://hl7.org/fhir}ImplementationGuide.Page" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ImplementationGuide.Page", propOrder = {
"source",
"name",
"kind",
"type",
"_package",
"format",
"page"
})
public class ImplementationGuidePage
extends BackboneElement
implements Equals2, HashCode2, ToString2
{
@XmlElement(required = true)
protected Uri source;
@XmlElement(required = true)
protected org.hl7.fhir.String name;
@XmlElement(required = true)
protected GuidePageKind kind;
protected List type;
@XmlElement(name = "package")
protected List _package;
protected Code format;
protected List page;
/**
* Gets the value of the source property.
*
* @return
* possible object is
* {@link Uri }
*
*/
public Uri getSource() {
return source;
}
/**
* Sets the value of the source property.
*
* @param value
* allowed object is
* {@link Uri }
*
*/
public void setSource(Uri value) {
this.source = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link org.hl7.fhir.String }
*
*/
public org.hl7.fhir.String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link org.hl7.fhir.String }
*
*/
public void setName(org.hl7.fhir.String value) {
this.name = value;
}
/**
* Gets the value of the kind property.
*
* @return
* possible object is
* {@link GuidePageKind }
*
*/
public GuidePageKind getKind() {
return kind;
}
/**
* Sets the value of the kind property.
*
* @param value
* allowed object is
* {@link GuidePageKind }
*
*/
public void setKind(GuidePageKind value) {
this.kind = value;
}
/**
* Gets the value of the type property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a set
method for the type property.
*
*
* For example, to add a new item, do as follows:
*
* getType().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Code }
*
*
*/
public List getType() {
if (type == null) {
type = new ArrayList();
}
return this.type;
}
/**
* Gets the value of the package property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a set
method for the package property.
*
*
* For example, to add a new item, do as follows:
*
* getPackage().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link org.hl7.fhir.String }
*
*
*/
public List getPackage() {
if (_package == null) {
_package = new ArrayList();
}
return this._package;
}
/**
* Gets the value of the format property.
*
* @return
* possible object is
* {@link Code }
*
*/
public Code getFormat() {
return format;
}
/**
* Sets the value of the format property.
*
* @param value
* allowed object is
* {@link Code }
*
*/
public void setFormat(Code value) {
this.format = value;
}
/**
* Gets the value of the page property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a set
method for the page property.
*
*
* For example, to add a new item, do as follows:
*
* getPage().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ImplementationGuidePage }
*
*
*/
public List getPage() {
if (page == null) {
page = new ArrayList();
}
return this.page;
}
public ImplementationGuidePage withSource(Uri value) {
setSource(value);
return this;
}
public ImplementationGuidePage withName(org.hl7.fhir.String value) {
setName(value);
return this;
}
public ImplementationGuidePage withKind(GuidePageKind value) {
setKind(value);
return this;
}
public ImplementationGuidePage withType(Code... values) {
if (values!= null) {
for (Code value: values) {
getType().add(value);
}
}
return this;
}
public ImplementationGuidePage withType(Collection values) {
if (values!= null) {
getType().addAll(values);
}
return this;
}
public ImplementationGuidePage withPackage(org.hl7.fhir.String... values) {
if (values!= null) {
for (org.hl7.fhir.String value: values) {
getPackage().add(value);
}
}
return this;
}
public ImplementationGuidePage withPackage(Collection values) {
if (values!= null) {
getPackage().addAll(values);
}
return this;
}
public ImplementationGuidePage withFormat(Code value) {
setFormat(value);
return this;
}
public ImplementationGuidePage withPage(ImplementationGuidePage... values) {
if (values!= null) {
for (ImplementationGuidePage value: values) {
getPage().add(value);
}
}
return this;
}
public ImplementationGuidePage withPage(Collection values) {
if (values!= null) {
getPage().addAll(values);
}
return this;
}
@Override
public ImplementationGuidePage withModifierExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getModifierExtension().add(value);
}
}
return this;
}
@Override
public ImplementationGuidePage withModifierExtension(Collection values) {
if (values!= null) {
getModifierExtension().addAll(values);
}
return this;
}
@Override
public ImplementationGuidePage withExtension(Extension... values) {
if (values!= null) {
for (Extension value: values) {
getExtension().add(value);
}
}
return this;
}
@Override
public ImplementationGuidePage withExtension(Collection values) {
if (values!= null) {
getExtension().addAll(values);
}
return this;
}
@Override
public ImplementationGuidePage withId(java.lang.String value) {
setId(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;
}
if (!super.equals(thisLocator, thatLocator, object, strategy)) {
return false;
}
final ImplementationGuidePage that = ((ImplementationGuidePage) object);
{
Uri lhsSource;
lhsSource = this.getSource();
Uri rhsSource;
rhsSource = that.getSource();
if (!strategy.equals(LocatorUtils.property(thisLocator, "source", lhsSource), LocatorUtils.property(thatLocator, "source", rhsSource), lhsSource, rhsSource, (this.source!= null), (that.source!= null))) {
return false;
}
}
{
org.hl7.fhir.String lhsName;
lhsName = this.getName();
org.hl7.fhir.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;
}
}
{
GuidePageKind lhsKind;
lhsKind = this.getKind();
GuidePageKind rhsKind;
rhsKind = that.getKind();
if (!strategy.equals(LocatorUtils.property(thisLocator, "kind", lhsKind), LocatorUtils.property(thatLocator, "kind", rhsKind), lhsKind, rhsKind, (this.kind!= null), (that.kind!= null))) {
return false;
}
}
{
List lhsType;
lhsType = (((this.type!= null)&&(!this.type.isEmpty()))?this.getType():null);
List rhsType;
rhsType = (((that.type!= null)&&(!that.type.isEmpty()))?that.getType():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType, ((this.type!= null)&&(!this.type.isEmpty())), ((that.type!= null)&&(!that.type.isEmpty())))) {
return false;
}
}
{
List lhsPackage;
lhsPackage = (((this._package!= null)&&(!this._package.isEmpty()))?this.getPackage():null);
List rhsPackage;
rhsPackage = (((that._package!= null)&&(!that._package.isEmpty()))?that.getPackage():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "_package", lhsPackage), LocatorUtils.property(thatLocator, "_package", rhsPackage), lhsPackage, rhsPackage, ((this._package!= null)&&(!this._package.isEmpty())), ((that._package!= null)&&(!that._package.isEmpty())))) {
return false;
}
}
{
Code lhsFormat;
lhsFormat = this.getFormat();
Code rhsFormat;
rhsFormat = that.getFormat();
if (!strategy.equals(LocatorUtils.property(thisLocator, "format", lhsFormat), LocatorUtils.property(thatLocator, "format", rhsFormat), lhsFormat, rhsFormat, (this.format!= null), (that.format!= null))) {
return false;
}
}
{
List lhsPage;
lhsPage = (((this.page!= null)&&(!this.page.isEmpty()))?this.getPage():null);
List rhsPage;
rhsPage = (((that.page!= null)&&(!that.page.isEmpty()))?that.getPage():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "page", lhsPage), LocatorUtils.property(thatLocator, "page", rhsPage), lhsPage, rhsPage, ((this.page!= null)&&(!this.page.isEmpty())), ((that.page!= null)&&(!that.page.isEmpty())))) {
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 = super.hashCode(locator, strategy);
{
Uri theSource;
theSource = this.getSource();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "source", theSource), currentHashCode, theSource, (this.source!= null));
}
{
org.hl7.fhir.String theName;
theName = this.getName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName, (this.name!= null));
}
{
GuidePageKind theKind;
theKind = this.getKind();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "kind", theKind), currentHashCode, theKind, (this.kind!= null));
}
{
List theType;
theType = (((this.type!= null)&&(!this.type.isEmpty()))?this.getType():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, ((this.type!= null)&&(!this.type.isEmpty())));
}
{
List thePackage;
thePackage = (((this._package!= null)&&(!this._package.isEmpty()))?this.getPackage():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "_package", thePackage), currentHashCode, thePackage, ((this._package!= null)&&(!this._package.isEmpty())));
}
{
Code theFormat;
theFormat = this.getFormat();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "format", theFormat), currentHashCode, theFormat, (this.format!= null));
}
{
List thePage;
thePage = (((this.page!= null)&&(!this.page.isEmpty()))?this.getPage():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "page", thePage), currentHashCode, thePage, ((this.page!= null)&&(!this.page.isEmpty())));
}
return currentHashCode;
}
@Override
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance();
return this.hashCode(null, strategy);
}
@Override
public java.lang.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) {
super.appendFields(locator, buffer, strategy);
{
Uri theSource;
theSource = this.getSource();
strategy.appendField(locator, this, "source", buffer, theSource, (this.source!= null));
}
{
org.hl7.fhir.String theName;
theName = this.getName();
strategy.appendField(locator, this, "name", buffer, theName, (this.name!= null));
}
{
GuidePageKind theKind;
theKind = this.getKind();
strategy.appendField(locator, this, "kind", buffer, theKind, (this.kind!= null));
}
{
List theType;
theType = (((this.type!= null)&&(!this.type.isEmpty()))?this.getType():null);
strategy.appendField(locator, this, "type", buffer, theType, ((this.type!= null)&&(!this.type.isEmpty())));
}
{
List thePackage;
thePackage = (((this._package!= null)&&(!this._package.isEmpty()))?this.getPackage():null);
strategy.appendField(locator, this, "_package", buffer, thePackage, ((this._package!= null)&&(!this._package.isEmpty())));
}
{
Code theFormat;
theFormat = this.getFormat();
strategy.appendField(locator, this, "format", buffer, theFormat, (this.format!= null));
}
{
List thePage;
thePage = (((this.page!= null)&&(!this.page.isEmpty()))?this.getPage():null);
strategy.appendField(locator, this, "page", buffer, thePage, ((this.page!= null)&&(!this.page.isEmpty())));
}
return buffer;
}
public void setType(List value) {
this.type = value;
}
public void setPackage(List value) {
this._package = value;
}
public void setPage(List value) {
this.page = value;
}
}