
com.helger.holiday.jaxb.RelativeToFixed 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 RelativeToFixed complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="RelativeToFixed">
* <complexContent>
* <extension base="{http://www.example.org/Holiday}Holiday">
* <sequence>
* <choice>
* <element name="Days" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element name="Weekday" type="{http://www.example.org/Holiday}Weekday" minOccurs="0"/>
* </choice>
* <element name="When" type="{http://www.example.org/Holiday}When"/>
* <element name="Date" type="{http://www.example.org/Holiday}Fixed"/>
* </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 = "RelativeToFixed", propOrder = {
"days",
"weekday",
"when",
"date"
})
@CodingStyleguideUnaware
public class RelativeToFixed
extends Holiday
{
@XmlElement(name = "Days")
private Integer days;
@XmlElement(name = "Weekday")
@XmlSchemaType(name = "string")
private Weekday weekday;
@XmlElement(name = "When", required = true)
@XmlSchemaType(name = "string")
private When when;
@XmlElement(name = "Date", required = true)
private Fixed date;
/**
* Gets the value of the days property.
*
* @return
* possible object is
* {@link Integer }
*
*/
@Nullable
public Integer getDays() {
return days;
}
/**
* Sets the value of the days property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setDays(
@Nullable
Integer value) {
this.days = 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;
}
/**
* Gets the value of the when property.
*
* @return
* possible object is
* {@link When }
*
*/
@Nullable
public When getWhen() {
return when;
}
/**
* Sets the value of the when property.
*
* @param value
* allowed object is
* {@link When }
*
*/
public void setWhen(
@Nullable
When value) {
this.when = value;
}
/**
* Gets the value of the date property.
*
* @return
* possible object is
* {@link Fixed }
*
*/
@Nullable
public Fixed getDate() {
return date;
}
/**
* Sets the value of the date property.
*
* @param value
* allowed object is
* {@link Fixed }
*
*/
public void setDate(
@Nullable
Fixed value) {
this.date = 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 RelativeToFixed rhs = ((RelativeToFixed) o);
if (!EqualsHelper.equals(days, rhs.days)) {
return false;
}
if (!EqualsHelper.equals(weekday, rhs.weekday)) {
return false;
}
if (!EqualsHelper.equals(when, rhs.when)) {
return false;
}
if (!EqualsHelper.equals(date, rhs.date)) {
return false;
}
return true;
}
/**
* Created by ph-jaxb22-plugin -Xph-equalshashcode
*
*/
@Override
public int hashCode() {
return HashCodeGenerator.getDerived(super.hashCode()).append(days).append(weekday).append(when).append(date).getHashCode();
}
/**
* Created by ph-jaxb22-plugin -Xph-tostring
*
*/
@Override
public String toString() {
return ToStringGenerator.getDerived(super.toString()).append("days", days).append("weekday", weekday).append("when", when).append("date", date).getToString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy