ru.yandex.qatools.allure.events.AbstractRemoveAttachmentEvent Maven / Gradle / Ivy
package ru.yandex.qatools.allure.events;
import java.util.regex.Pattern;
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;
/**
* Java class for abstract-remove-attachment-event complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="abstract-remove-attachment-event">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="pattern" type="{urn:events.allure.qatools.yandex.ru}pattern"/>
* </all>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "abstract-remove-attachment-event", propOrder = {
})
public abstract class AbstractRemoveAttachmentEvent implements Equals, HashCode, StepEvent
{
@XmlElement(required = true, nillable = true)
protected Pattern pattern;
/**
* Gets the value of the pattern property.
*
* @return
* possible object is
* {@link Pattern }
*
*/
public Pattern getPattern() {
return pattern;
}
/**
* Sets the value of the pattern property.
*
* @param value
* allowed object is
* {@link Pattern }
*
*/
public void setPattern(Pattern value) {
this.pattern = value;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof AbstractRemoveAttachmentEvent)) {
return false;
}
if (this == object) {
return true;
}
final AbstractRemoveAttachmentEvent that = ((AbstractRemoveAttachmentEvent) object);
{
Pattern lhsPattern;
lhsPattern = this.getPattern();
Pattern rhsPattern;
rhsPattern = that.getPattern();
if (!strategy.equals(LocatorUtils.property(thisLocator, "pattern", lhsPattern), LocatorUtils.property(thatLocator, "pattern", rhsPattern), lhsPattern, rhsPattern)) {
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;
{
Pattern thePattern;
thePattern = this.getPattern();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "pattern", thePattern), currentHashCode, thePattern);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy