com.helger.holiday.jaxb.Fixed 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.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 Fixed complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Fixed">
* <complexContent>
* <extension base="{http://www.example.org/Holiday}MoveableHoliday">
* <attribute name="month" type="{http://www.example.org/Holiday}Month" />
* <attribute name="day">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}int">
* <minInclusive value="1"/>
* <maxInclusive value="31"/>
* </restriction>
* </simpleType>
* </attribute>
* </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 = "Fixed")
@CodingStyleguideUnaware
public class Fixed
extends MoveableHoliday
{
@XmlAttribute(name = "month")
private Month month;
@XmlAttribute(name = "day")
private Integer day;
/**
* 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;
}
/**
* Gets the value of the day property.
*
* @return
* possible object is
* {@link Integer }
*
*/
@Nullable
public Integer getDay() {
return day;
}
/**
* Sets the value of the day property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setDay(
@Nullable
Integer value) {
this.day = 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 Fixed rhs = ((Fixed) o);
if (!EqualsHelper.equals(month, rhs.month)) {
return false;
}
if (!EqualsHelper.equals(day, rhs.day)) {
return false;
}
return true;
}
/**
* Created by ph-jaxb22-plugin -Xph-equalshashcode
*
*/
@Override
public int hashCode() {
return HashCodeGenerator.getDerived(super.hashCode()).append(month).append(day).getHashCode();
}
/**
* Created by ph-jaxb22-plugin -Xph-tostring
*
*/
@Override
public String toString() {
return ToStringGenerator.getDerived(super.toString()).append("month", month).append("day", day).getToString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy