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

com.helger.holiday.jaxb.RelativeToWeekdayInMonth 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 RelativeToWeekdayInMonth complex type. * *

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy