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

com.helger.holiday.jaxb.FixedWeekdayRelativeToFixed Maven / Gradle / Ivy

There is a newer version: 7.0.0
Show newest version

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.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
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 FixedWeekdayRelativeToFixed complex type. * *

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

 * <complexType name="FixedWeekdayRelativeToFixed">
 *   <complexContent>
 *     <extension base="{http://www.example.org/Holiday}Holiday">
 *       <sequence>
 *         <element name="day" type="{http://www.example.org/Holiday}Fixed"/>
 *       </sequence>
 *       <attribute name="which" type="{http://www.example.org/Holiday}Which" />
 *       <attribute name="weekday" type="{http://www.example.org/Holiday}Weekday" />
 *       <attribute name="when" type="{http://www.example.org/Holiday}When" />
 *     </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 = "FixedWeekdayRelativeToFixed", propOrder = { "day" }) @CodingStyleguideUnaware public class FixedWeekdayRelativeToFixed extends Holiday { @XmlElement(required = true) private Fixed day; @XmlAttribute(name = "which") private Which which; @XmlAttribute(name = "weekday") private Weekday weekday; @XmlAttribute(name = "when") private When when; /** * Gets the value of the day property. * * @return * possible object is * {@link Fixed } * */ @Nullable public Fixed getDay() { return day; } /** * Sets the value of the day property. * * @param value * allowed object is * {@link Fixed } * */ public void setDay( @Nullable Fixed value) { this.day = value; } /** * Gets the value of the which property. * * @return * possible object is * {@link Which } * */ @Nullable public Which getWhich() { return which; } /** * Sets the value of the which property. * * @param value * allowed object is * {@link Which } * */ public void setWhich( @Nullable Which value) { this.which = 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; } /** * 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 FixedWeekdayRelativeToFixed rhs = ((FixedWeekdayRelativeToFixed) o); if (!EqualsHelper.equals(day, rhs.day)) { return false; } if (!EqualsHelper.equals(which, rhs.which)) { return false; } if (!EqualsHelper.equals(weekday, rhs.weekday)) { return false; } if (!EqualsHelper.equals(when, rhs.when)) { return false; } return true; } /** * Created by ph-jaxb22-plugin -Xph-equalshashcode * */ @Override public int hashCode() { return HashCodeGenerator.getDerived(super.hashCode()).append(day).append(which).append(weekday).append(when).getHashCode(); } /** * Created by ph-jaxb22-plugin -Xph-tostring * */ @Override public String toString() { return ToStringGenerator.getDerived(super.toString()).append("day", day).append("which", which).append("weekday", weekday).append("when", when).toString(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy