Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.hl7.fhirpath.tests.Test Maven / Gradle / Ivy
package org.hl7.fhirpath.tests;
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.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
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;
@XmlAccessorType (XmlAccessType.FIELD)
@XmlType (name = "Test" , namespace = "http://hl7.org/fhirpath/tests" , propOrder = {
"expression" ,
"output" ,
"notes"
})
public class Test implements Equals2 , HashCode2 , ToString2
{
@XmlElement (namespace = "http://hl7.org/fhirpath/tests" , required = true )
protected Expression expression;
@XmlElement (namespace = "http://hl7.org/fhirpath/tests" )
protected List output;
@XmlElement (namespace = "http://hl7.org/fhirpath/tests" )
protected String notes;
@XmlAttribute (name = "name" )
protected String name;
@XmlAttribute (name = "version" )
protected String version;
@XmlAttribute (name = "description" )
protected String description;
@XmlAttribute (name = "reference" )
@XmlSchemaType (name = "anyURI" )
protected String reference;
@XmlAttribute (name = "inputfile" )
protected String inputfile;
@XmlAttribute (name = "predicate" )
protected Boolean predicate;
@XmlAttribute (name = "mode" )
protected ModeType mode;
@XmlAttribute (name = "ordered" )
protected Boolean ordered;
@XmlAttribute (name = "checkOrderedFunctions" )
protected Boolean checkOrderedFunctions;
public Expression getExpression () {
return expression;
}
public void setExpression (Expression value) {
this .expression = value;
}
* Objects of the following type (s ) are allowed in the list
* {@link Output }
*
*
*/
public List getOutput ( ) {
if (output == null ) {
output = new ArrayList();
}
return this .output;
}
public String getNotes ( ) {
return notes;
}
public void setNotes (String value ) {
this .notes = value ;
}
public String getName ( ) {
return name;
}
public void setName (String value ) {
this .name = value ;
}
public String getVersion ( ) {
return version;
}
public void setVersion (String value ) {
this .version = value ;
}
public String getDescription ( ) {
return description;
}
public void setDescription (String value ) {
this .description = value ;
}
public String getReference ( ) {
return reference;
}
public void setReference (String value ) {
this .reference = value ;
}
public String getInputfile ( ) {
return inputfile;
}
public void setInputfile (String value ) {
this .inputfile = value ;
}
public Boolean isPredicate ( ) {
return predicate;
}
public void setPredicate (Boolean value ) {
this .predicate = value ;
}
public ModeType getMode ( ) {
return mode;
}
public void setMode (ModeType value ) {
this .mode = value ;
}
public Boolean isOrdered ( ) {
return ordered;
}
public void setOrdered (Boolean value ) {
this .ordered = value ;
}
public Boolean isCheckOrderedFunctions ( ) {
return checkOrderedFunctions;
}
public void setCheckOrderedFunctions (Boolean value ) {
this .checkOrderedFunctions = value ;
}
public Test withExpression (Expression value ) {
setExpression(value );
return this ;
}
public Test withOutput (Output... values ) {
if (values!= null ) {
for (Output value : values) {
getOutput().add (value );
}
}
return this ;
}
public Test withOutput (Collection values ) {
if (values!= null ) {
getOutput().addAll(values);
}
return this ;
}
public Test withNotes (String value ) {
setNotes(value );
return this ;
}
public Test withName (String value ) {
setName(value );
return this ;
}
public Test withVersion (String value ) {
setVersion(value );
return this ;
}
public Test withDescription (String value ) {
setDescription(value );
return this ;
}
public Test withReference (String value ) {
setReference(value );
return this ;
}
public Test withInputfile (String value ) {
setInputfile(value );
return this ;
}
public Test withPredicate (Boolean value ) {
setPredicate(value );
return this ;
}
public Test withMode (ModeType value ) {
setMode(value );
return this ;
}
public Test withOrdered (Boolean value ) {
setOrdered(value );
return this ;
}
public Test withCheckOrderedFunctions (Boolean value ) {
setCheckOrderedFunctions(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 Test that = ((Test) object );
{
Expression lhsExpression;
lhsExpression = this .getExpression();
Expression rhsExpression;
rhsExpression = that.getExpression();
if (!strategy.equals (LocatorUtils.property(thisLocator, "expression" , lhsExpression), LocatorUtils.property(thatLocator, "expression" , rhsExpression), lhsExpression, rhsExpression, (this .expression!= null ), (that.expression!= null ))) {
return false ;
}
}
{
List lhsOutput;
lhsOutput = (((this .output!= null )&&(!this .output.isEmpty()))?this .getOutput():null );
List rhsOutput;
rhsOutput = (((that.output!= null )&&(!that.output.isEmpty()))?that.getOutput():null );
if (!strategy.equals (LocatorUtils.property(thisLocator, "output" , lhsOutput), LocatorUtils.property(thatLocator, "output" , rhsOutput), lhsOutput, rhsOutput, ((this .output!= null )&&(!this .output.isEmpty())), ((that.output!= null )&&(!that.output.isEmpty())))) {
return false ;
}
}
{
String lhsNotes;
lhsNotes = this .getNotes();
String rhsNotes;
rhsNotes = that.getNotes();
if (!strategy.equals (LocatorUtils.property(thisLocator, "notes" , lhsNotes), LocatorUtils.property(thatLocator, "notes" , rhsNotes), lhsNotes, rhsNotes, (this .notes!= null ), (that.notes!= 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 lhsVersion;
lhsVersion = this .getVersion();
String rhsVersion;
rhsVersion = that.getVersion();
if (!strategy.equals (LocatorUtils.property(thisLocator, "version" , lhsVersion), LocatorUtils.property(thatLocator, "version" , rhsVersion), lhsVersion, rhsVersion, (this .version!= null ), (that.version!= 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 lhsReference;
lhsReference = this .getReference();
String rhsReference;
rhsReference = that.getReference();
if (!strategy.equals (LocatorUtils.property(thisLocator, "reference" , lhsReference), LocatorUtils.property(thatLocator, "reference" , rhsReference), lhsReference, rhsReference, (this .reference!= null ), (that.reference!= null ))) {
return false ;
}
}
{
String lhsInputfile;
lhsInputfile = this .getInputfile();
String rhsInputfile;
rhsInputfile = that.getInputfile();
if (!strategy.equals (LocatorUtils.property(thisLocator, "inputfile" , lhsInputfile), LocatorUtils.property(thatLocator, "inputfile" , rhsInputfile), lhsInputfile, rhsInputfile, (this .inputfile!= null ), (that.inputfile!= null ))) {
return false ;
}
}
{
Boolean lhsPredicate;
lhsPredicate = this .isPredicate();
Boolean rhsPredicate;
rhsPredicate = that.isPredicate();
if (!strategy.equals (LocatorUtils.property(thisLocator, "predicate" , lhsPredicate), LocatorUtils.property(thatLocator, "predicate" , rhsPredicate), lhsPredicate, rhsPredicate, (this .predicate!= null ), (that.predicate!= null ))) {
return false ;
}
}
{
ModeType lhsMode;
lhsMode = this .getMode();
ModeType rhsMode;
rhsMode = that.getMode();
if (!strategy.equals (LocatorUtils.property(thisLocator, "mode" , lhsMode), LocatorUtils.property(thatLocator, "mode" , rhsMode), lhsMode, rhsMode, (this .mode!= null ), (that.mode!= null ))) {
return false ;
}
}
{
Boolean lhsOrdered;
lhsOrdered = this .isOrdered();
Boolean rhsOrdered;
rhsOrdered = that.isOrdered();
if (!strategy.equals (LocatorUtils.property(thisLocator, "ordered" , lhsOrdered), LocatorUtils.property(thatLocator, "ordered" , rhsOrdered), lhsOrdered, rhsOrdered, (this .ordered!= null ), (that.ordered!= null ))) {
return false ;
}
}
{
Boolean lhsCheckOrderedFunctions;
lhsCheckOrderedFunctions = this .isCheckOrderedFunctions();
Boolean rhsCheckOrderedFunctions;
rhsCheckOrderedFunctions = that.isCheckOrderedFunctions();
if (!strategy.equals (LocatorUtils.property(thisLocator, "checkOrderedFunctions" , lhsCheckOrderedFunctions), LocatorUtils.property(thatLocator, "checkOrderedFunctions" , rhsCheckOrderedFunctions), lhsCheckOrderedFunctions, rhsCheckOrderedFunctions, (this .checkOrderedFunctions!= null ), (that.checkOrderedFunctions!= 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 ;
{
Expression theExpression;
theExpression = this .getExpression();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "expression" , theExpression), currentHashCode, theExpression, (this .expression!= null ));
}
{
List theOutput;
theOutput = (((this .output!= null )&&(!this .output.isEmpty()))?this .getOutput():null );
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "output" , theOutput), currentHashCode, theOutput, ((this .output!= null )&&(!this .output.isEmpty())));
}
{
String theNotes;
theNotes = this .getNotes();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "notes" , theNotes), currentHashCode, theNotes, (this .notes!= null ));
}
{
String theName;
theName = this .getName();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name" , theName), currentHashCode, theName, (this .name!= null ));
}
{
String theVersion;
theVersion = this .getVersion();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "version" , theVersion), currentHashCode, theVersion, (this .version!= null ));
}
{
String theDescription;
theDescription = this .getDescription();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "description" , theDescription), currentHashCode, theDescription, (this .description!= null ));
}
{
String theReference;
theReference = this .getReference();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "reference" , theReference), currentHashCode, theReference, (this .reference!= null ));
}
{
String theInputfile;
theInputfile = this .getInputfile();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "inputfile" , theInputfile), currentHashCode, theInputfile, (this .inputfile!= null ));
}
{
Boolean thePredicate;
thePredicate = this .isPredicate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "predicate" , thePredicate), currentHashCode, thePredicate, (this .predicate!= null ));
}
{
ModeType theMode;
theMode = this .getMode();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mode" , theMode), currentHashCode, theMode, (this .mode!= null ));
}
{
Boolean theOrdered;
theOrdered = this .isOrdered();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ordered" , theOrdered), currentHashCode, theOrdered, (this .ordered!= null ));
}
{
Boolean theCheckOrderedFunctions;
theCheckOrderedFunctions = this .isCheckOrderedFunctions();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "checkOrderedFunctions" , theCheckOrderedFunctions), currentHashCode, theCheckOrderedFunctions, (this .checkOrderedFunctions!= 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 ) {
{
Expression theExpression;
theExpression = this .getExpression();
strategy.appendField(locator, this , "expression" , buffer, theExpression, (this .expression!= null ));
}
{
List theOutput;
theOutput = (((this .output!= null )&&(!this .output.isEmpty()))?this .getOutput():null );
strategy.appendField(locator, this , "output" , buffer, theOutput, ((this .output!= null )&&(!this .output.isEmpty())));
}
{
String theNotes;
theNotes = this .getNotes();
strategy.appendField(locator, this , "notes" , buffer, theNotes, (this .notes!= null ));
}
{
String theName;
theName = this .getName();
strategy.appendField(locator, this , "name" , buffer, theName, (this .name!= null ));
}
{
String theVersion;
theVersion = this .getVersion();
strategy.appendField(locator, this , "version" , buffer, theVersion, (this .version!= null ));
}
{
String theDescription;
theDescription = this .getDescription();
strategy.appendField(locator, this , "description" , buffer, theDescription, (this .description!= null ));
}
{
String theReference;
theReference = this .getReference();
strategy.appendField(locator, this , "reference" , buffer, theReference, (this .reference!= null ));
}
{
String theInputfile;
theInputfile = this .getInputfile();
strategy.appendField(locator, this , "inputfile" , buffer, theInputfile, (this .inputfile!= null ));
}
{
Boolean thePredicate;
thePredicate = this .isPredicate();
strategy.appendField(locator, this , "predicate" , buffer, thePredicate, (this .predicate!= null ));
}
{
ModeType theMode;
theMode = this .getMode();
strategy.appendField(locator, this , "mode" , buffer, theMode, (this .mode!= null ));
}
{
Boolean theOrdered;
theOrdered = this .isOrdered();
strategy.appendField(locator, this , "ordered" , buffer, theOrdered, (this .ordered!= null ));
}
{
Boolean theCheckOrderedFunctions;
theCheckOrderedFunctions = this .isCheckOrderedFunctions();
strategy.appendField(locator, this , "checkOrderedFunctions" , buffer, theCheckOrderedFunctions, (this .checkOrderedFunctions!= null ));
}
return buffer;
}
public void setOutput (List value ) {
this .output = value ;
}
}