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

de.focus_shift.jollyday.jaxb.mapping.Holiday Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2024.11.15 at 03:06:00 PM UTC 
//


package de.focus_shift.jollyday.jaxb.mapping;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlSeeAlso;
import jakarta.xml.bind.annotation.XmlType;


/**
 * 

Java class for Holiday complex type. * *

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

 * <complexType name="Holiday">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <attribute name="validFrom" type="{http://www.w3.org/2001/XMLSchema}int" />
 *       <attribute name="validTo" type="{http://www.w3.org/2001/XMLSchema}int" />
 *       <attribute name="every" type="{https://focus_shift.de/jollyday/schema/holiday}HolidayCycleType" default="EVERY_YEAR" />
 *       <attribute name="descriptionPropertiesKey" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="localizedType" type="{https://focus_shift.de/jollyday/schema/holiday}HolidayType" default="PUBLIC_HOLIDAY" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Holiday") @XmlSeeAlso({ RelativeToFixed.class, FixedWeekdayInMonth.class, RelativeToWeekdayInMonth.class, FixedWeekdayBetweenFixed.class, MoveableHoliday.class, EthiopianOrthodoxHoliday.class, FixedWeekdayRelativeToFixed.class, RelativeToEasterSunday.class }) public abstract class Holiday { @XmlAttribute(name = "validFrom") protected Integer validFrom; @XmlAttribute(name = "validTo") protected Integer validTo; @XmlAttribute(name = "every") protected HolidayCycleType every; @XmlAttribute(name = "descriptionPropertiesKey") protected String descriptionPropertiesKey; @XmlAttribute(name = "localizedType") protected HolidayType localizedType; /** * Gets the value of the validFrom property. * * @return * possible object is * {@link Integer } * */ public Integer getValidFrom() { return validFrom; } /** * Sets the value of the validFrom property. * * @param value * allowed object is * {@link Integer } * */ public void setValidFrom(Integer value) { this.validFrom = value; } /** * Gets the value of the validTo property. * * @return * possible object is * {@link Integer } * */ public Integer getValidTo() { return validTo; } /** * Sets the value of the validTo property. * * @param value * allowed object is * {@link Integer } * */ public void setValidTo(Integer value) { this.validTo = value; } /** * Gets the value of the every property. * * @return * possible object is * {@link HolidayCycleType } * */ public HolidayCycleType getEvery() { if (every == null) { return HolidayCycleType.EVERY_YEAR; } else { return every; } } /** * Sets the value of the every property. * * @param value * allowed object is * {@link HolidayCycleType } * */ public void setEvery(HolidayCycleType value) { this.every = value; } /** * Gets the value of the descriptionPropertiesKey property. * * @return * possible object is * {@link String } * */ public String getDescriptionPropertiesKey() { return descriptionPropertiesKey; } /** * Sets the value of the descriptionPropertiesKey property. * * @param value * allowed object is * {@link String } * */ public void setDescriptionPropertiesKey(String value) { this.descriptionPropertiesKey = value; } /** * Gets the value of the localizedType property. * * @return * possible object is * {@link HolidayType } * */ public HolidayType getLocalizedType() { if (localizedType == null) { return HolidayType.PUBLIC_HOLIDAY; } else { return localizedType; } } /** * Sets the value of the localizedType property. * * @param value * allowed object is * {@link HolidayType } * */ public void setLocalizedType(HolidayType value) { this.localizedType = value; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy