com.helger.holiday.jaxb.MovingCondition Maven / Gradle / Ivy
package com.helger.holiday.jaxb;
import java.io.Serializable;
import javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import com.helger.commons.annotation.CodingStyleguideUnaware;
import com.helger.commons.equals.EqualsHelper;
import com.helger.commons.hashcode.HashCodeGenerator;
import com.helger.commons.string.ToStringGenerator;
/**
* Java class for MovingCondition complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="MovingCondition">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="substitute" type="{http://www.example.org/Holiday}Weekday" />
* <attribute name="with" type="{http://www.example.org/Holiday}With" />
* <attribute name="weekday" type="{http://www.example.org/Holiday}Weekday" />
* </restriction>
* </complexContent>
* </complexType>
*
* This class was annotated by ph-jaxb22-plugin -Xph-annotate
* This class contains methods created by ph-jaxb22-plugin -Xph-equalshashcode
* This class contains methods created by ph-jaxb22-plugin -Xph-tostring
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MovingCondition")
@CodingStyleguideUnaware
public class MovingCondition implements Serializable
{
@XmlAttribute(name = "substitute")
private Weekday substitute;
@XmlAttribute(name = "with")
private With with;
@XmlAttribute(name = "weekday")
private Weekday weekday;
/**
* Gets the value of the substitute property.
*
* @return
* possible object is
* {@link Weekday }
*
*/
@Nullable
public Weekday getSubstitute() {
return substitute;
}
/**
* Sets the value of the substitute property.
*
* @param value
* allowed object is
* {@link Weekday }
*
*/
public void setSubstitute(
@Nullable
Weekday value) {
this.substitute = value;
}
/**
* Gets the value of the with property.
*
* @return
* possible object is
* {@link With }
*
*/
@Nullable
public With getWith() {
return with;
}
/**
* Sets the value of the with property.
*
* @param value
* allowed object is
* {@link With }
*
*/
public void setWith(
@Nullable
With value) {
this.with = value;
}
/**
* Gets the value of the weekday property.
*
* @return
* possible object is
* {@link Weekday }
*
*/
@Nullable
public Weekday getWeekday() {
return weekday;
}
/**
* Sets the value of the weekday property.
*
* @param value
* allowed object is
* {@link Weekday }
*
*/
public void setWeekday(
@Nullable
Weekday value) {
this.weekday = value;
}
/**
* Created by ph-jaxb22-plugin -Xph-equalshashcode
*
*/
@Override
public boolean equals(final Object o) {
if (o == this) {
return true;
}
if ((o == null)||(!getClass().equals(o.getClass()))) {
return false;
}
final MovingCondition rhs = ((MovingCondition) o);
if (!EqualsHelper.equals(substitute, rhs.substitute)) {
return false;
}
if (!EqualsHelper.equals(with, rhs.with)) {
return false;
}
if (!EqualsHelper.equals(weekday, rhs.weekday)) {
return false;
}
return true;
}
/**
* Created by ph-jaxb22-plugin -Xph-equalshashcode
*
*/
@Override
public int hashCode() {
return new HashCodeGenerator(this).append(substitute).append(with).append(weekday).getHashCode();
}
/**
* Created by ph-jaxb22-plugin -Xph-tostring
*
*/
@Override
public String toString() {
return new ToStringGenerator(this).append("substitute", substitute).append("with", with).append("weekday", weekday).toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy