com.helger.holiday.jaxb.FixedWeekdayBetweenFixed 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.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 FixedWeekdayBetweenFixed complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="FixedWeekdayBetweenFixed">
* <complexContent>
* <extension base="{http://www.example.org/Holiday}Holiday">
* <sequence>
* <element name="from" type="{http://www.example.org/Holiday}Fixed"/>
* <element name="to" type="{http://www.example.org/Holiday}Fixed"/>
* </sequence>
* <attribute name="weekday" type="{http://www.example.org/Holiday}Weekday" />
* </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 = "FixedWeekdayBetweenFixed", propOrder = {
"from",
"to"
})
@CodingStyleguideUnaware
public class FixedWeekdayBetweenFixed
extends Holiday
{
@XmlElement(required = true)
private Fixed from;
@XmlElement(required = true)
private Fixed to;
@XmlAttribute(name = "weekday")
private Weekday weekday;
/**
* Gets the value of the from property.
*
* @return
* possible object is
* {@link Fixed }
*
*/
@Nullable
public Fixed getFrom() {
return from;
}
/**
* Sets the value of the from property.
*
* @param value
* allowed object is
* {@link Fixed }
*
*/
public void setFrom(
@Nullable
Fixed value) {
this.from = value;
}
/**
* Gets the value of the to property.
*
* @return
* possible object is
* {@link Fixed }
*
*/
@Nullable
public Fixed getTo() {
return to;
}
/**
* Sets the value of the to property.
*
* @param value
* allowed object is
* {@link Fixed }
*
*/
public void setTo(
@Nullable
Fixed value) {
this.to = 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;
}
/**
* 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 FixedWeekdayBetweenFixed rhs = ((FixedWeekdayBetweenFixed) o);
if (!EqualsHelper.equals(from, rhs.from)) {
return false;
}
if (!EqualsHelper.equals(to, rhs.to)) {
return false;
}
if (!EqualsHelper.equals(weekday, rhs.weekday)) {
return false;
}
return true;
}
/**
* Created by ph-jaxb22-plugin -Xph-equalshashcode
*
*/
@Override
public int hashCode() {
return HashCodeGenerator.getDerived(super.hashCode()).append(from).append(to).append(weekday).getHashCode();
}
/**
* Created by ph-jaxb22-plugin -Xph-tostring
*
*/
@Override
public String toString() {
return ToStringGenerator.getDerived(super.toString()).append("from", from).append("to", to).append("weekday", weekday).getToString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy