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