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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy