com.helger.holiday.jaxb.RelativeToEasterSunday Maven / Gradle / Ivy
package com.helger.holiday.jaxb;
import javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
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 RelativeToEasterSunday complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="RelativeToEasterSunday">
* <complexContent>
* <extension base="{http://www.example.org/Holiday}Holiday">
* <sequence>
* <element name="chronology" type="{http://www.example.org/Holiday}ChronologyType"/>
* <element name="days" type="{http://www.w3.org/2001/XMLSchema}int"/>
* </sequence>
* </extension>
* </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 = "RelativeToEasterSunday", propOrder = {
"chronology",
"days"
})
@CodingStyleguideUnaware
public class RelativeToEasterSunday
extends Holiday
{
@XmlElement(required = true)
@XmlSchemaType(name = "string")
private ChronologyType chronology;
private int days;
/**
* Gets the value of the chronology property.
*
* @return
* possible object is
* {@link ChronologyType }
*
*/
@Nullable
public ChronologyType getChronology() {
return chronology;
}
/**
* Sets the value of the chronology property.
*
* @param value
* allowed object is
* {@link ChronologyType }
*
*/
public void setChronology(
@Nullable
ChronologyType value) {
this.chronology = value;
}
/**
* Gets the value of the days property.
*
*/
public int getDays() {
return days;
}
/**
* Sets the value of the days property.
*
*/
public void setDays(int value) {
this.days = value;
}
/**
* Created by ph-jaxb22-plugin -Xph-equalshashcode
*
*/
@Override
public boolean equals(final Object o) {
if (o == this) {
return true;
}
if (!super.equals(o)) {
return false;
}
final RelativeToEasterSunday rhs = ((RelativeToEasterSunday) o);
if (!EqualsHelper.equals(chronology, rhs.chronology)) {
return false;
}
if (!EqualsHelper.equals(days, rhs.days)) {
return false;
}
return true;
}
/**
* Created by ph-jaxb22-plugin -Xph-equalshashcode
*
*/
@Override
public int hashCode() {
return HashCodeGenerator.getDerived(super.hashCode()).append(chronology).append(days).getHashCode();
}
/**
* Created by ph-jaxb22-plugin -Xph-tostring
*
*/
@Override
public String toString() {
return ToStringGenerator.getDerived(super.toString()).append("chronology", chronology).append("days", days).getToString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy