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

ru.yandex.qatools.allure.events.AbstractMakeAttachEvent Maven / Gradle / Ivy

There is a newer version: 1.4.0.RC9
Show newest version

package ru.yandex.qatools.allure.events;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
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.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
import ru.yandex.qatools.allure.model.AttachmentType;


/**
 * 

Java class for abstract-make-attach-event complex type. * *

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

 * <complexType name="abstract-make-attach-event">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <all>
 *         <element name="title" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="attachmentType" type="{urn:events.allure.qatools.yandex.ru}attachment-type"/>
 *         <element name="attach" type="{urn:events.allure.qatools.yandex.ru}attachment"/>
 *       </all>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "abstract-make-attach-event", propOrder = { }) public abstract class AbstractMakeAttachEvent implements Equals, HashCode, StepEvent { @XmlElement(required = true, nillable = true) protected String title; @XmlElement(required = true, nillable = true) protected AttachmentType attachmentType; @XmlElement(required = true, nillable = true) protected Object attach; /** * Gets the value of the title property. * * @return * possible object is * {@link String } * */ public String getTitle() { return title; } /** * Sets the value of the title property. * * @param value * allowed object is * {@link String } * */ public void setTitle(String value) { this.title = value; } /** * Gets the value of the attachmentType property. * * @return * possible object is * {@link AttachmentType } * */ public AttachmentType getAttachmentType() { return attachmentType; } /** * Sets the value of the attachmentType property. * * @param value * allowed object is * {@link AttachmentType } * */ public void setAttachmentType(AttachmentType value) { this.attachmentType = value; } /** * Gets the value of the attach property. * * @return * possible object is * {@link Object } * */ public Object getAttach() { return attach; } /** * Sets the value of the attach property. * * @param value * allowed object is * {@link Object } * */ public void setAttach(Object value) { this.attach = value; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof AbstractMakeAttachEvent)) { return false; } if (this == object) { return true; } final AbstractMakeAttachEvent that = ((AbstractMakeAttachEvent) object); { String lhsTitle; lhsTitle = this.getTitle(); String rhsTitle; rhsTitle = that.getTitle(); if (!strategy.equals(LocatorUtils.property(thisLocator, "title", lhsTitle), LocatorUtils.property(thatLocator, "title", rhsTitle), lhsTitle, rhsTitle)) { return false; } } { AttachmentType lhsAttachmentType; lhsAttachmentType = this.getAttachmentType(); AttachmentType rhsAttachmentType; rhsAttachmentType = that.getAttachmentType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "attachmentType", lhsAttachmentType), LocatorUtils.property(thatLocator, "attachmentType", rhsAttachmentType), lhsAttachmentType, rhsAttachmentType)) { return false; } } { Object lhsAttach; lhsAttach = this.getAttach(); Object rhsAttach; rhsAttach = that.getAttach(); if (!strategy.equals(LocatorUtils.property(thisLocator, "attach", lhsAttach), LocatorUtils.property(thatLocator, "attach", rhsAttach), lhsAttach, rhsAttach)) { 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; { String theTitle; theTitle = this.getTitle(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "title", theTitle), currentHashCode, theTitle); } { AttachmentType theAttachmentType; theAttachmentType = this.getAttachmentType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "attachmentType", theAttachmentType), currentHashCode, theAttachmentType); } { Object theAttach; theAttach = this.getAttach(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "attach", theAttach), currentHashCode, theAttach); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy