Coverage Report - de.jollyday.config.Holiday
 
Classes in this File Line Coverage Branch Coverage Complexity
Holiday
75%
15/20
75%
3/4
1,4
 
 1  
 //
 2  
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 
 3  
 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
 4  
 // Any modifications to this file will be lost upon recompilation of the source schema. 
 5  
 // Generated on: 2015.04.14 at 06:59:39 PM CEST 
 6  
 //
 7  
 
 8  
 
 9  
 package de.jollyday.config;
 10  
 
 11  
 import javax.xml.bind.annotation.XmlAccessType;
 12  
 import javax.xml.bind.annotation.XmlAccessorType;
 13  
 import javax.xml.bind.annotation.XmlAttribute;
 14  
 import javax.xml.bind.annotation.XmlSeeAlso;
 15  
 import javax.xml.bind.annotation.XmlType;
 16  
 
 17  
 
 18  
 /**
 19  
  * <p>Java class for Holiday complex type.
 20  
  * 
 21  
  * <p>The following schema fragment specifies the expected content contained within this class.
 22  
  * 
 23  
  * <pre>
 24  
  * &lt;complexType name="Holiday">
 25  
  *   &lt;complexContent>
 26  
  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 27  
  *       &lt;attribute name="validFrom" type="{http://www.w3.org/2001/XMLSchema}int" />
 28  
  *       &lt;attribute name="validTo" type="{http://www.w3.org/2001/XMLSchema}int" />
 29  
  *       &lt;attribute name="every" type="{http://www.example.org/Holiday}HolidayCycleType" default="EVERY_YEAR" />
 30  
  *       &lt;attribute name="descriptionPropertiesKey" type="{http://www.w3.org/2001/XMLSchema}string" />
 31  
  *       &lt;attribute name="localizedType" type="{http://www.example.org/Holiday}HolidayType" default="OFFICIAL_HOLIDAY" />
 32  
  *     &lt;/restriction>
 33  
  *   &lt;/complexContent>
 34  
  * &lt;/complexType>
 35  
  * </pre>
 36  
  * 
 37  
  * 
 38  
  */
 39  
 @XmlAccessorType(XmlAccessType.FIELD)
 40  
 @XmlType(name = "Holiday")
 41  
 @XmlSeeAlso({
 42  
     FixedWeekdayBetweenFixed.class,
 43  
     EthiopianOrthodoxHoliday.class,
 44  
     HebrewHoliday.class,
 45  
     RelativeToEasterSunday.class,
 46  
     FixedWeekdayInMonth.class,
 47  
     FixedWeekdayRelativeToFixed.class,
 48  
     MoveableHoliday.class,
 49  
     RelativeToFixed.class,
 50  
     RelativeToWeekdayInMonth.class,
 51  
     IslamicHoliday.class,
 52  
     HinduHoliday.class
 53  
 })
 54  2305
 public abstract class Holiday {
 55  
 
 56  
     @XmlAttribute(name = "validFrom")
 57  
     protected Integer validFrom;
 58  
     @XmlAttribute(name = "validTo")
 59  
     protected Integer validTo;
 60  
     @XmlAttribute(name = "every")
 61  
     protected String every;
 62  
     @XmlAttribute(name = "descriptionPropertiesKey")
 63  
     protected String descriptionPropertiesKey;
 64  
     @XmlAttribute(name = "localizedType")
 65  
     protected HolidayType localizedType;
 66  
 
 67  
     /**
 68  
      * Gets the value of the validFrom property.
 69  
      * 
 70  
      * @return
 71  
      *     possible object is
 72  
      *     {@link Integer }
 73  
      *     
 74  
      */
 75  
     public Integer getValidFrom() {
 76  3579
         return validFrom;
 77  
     }
 78  
 
 79  
     /**
 80  
      * Sets the value of the validFrom property.
 81  
      * 
 82  
      * @param value
 83  
      *     allowed object is
 84  
      *     {@link Integer }
 85  
      *     
 86  
      */
 87  
     public void setValidFrom(Integer value) {
 88  9
         this.validFrom = value;
 89  9
     }
 90  
 
 91  
     /**
 92  
      * Gets the value of the validTo property.
 93  
      * 
 94  
      * @return
 95  
      *     possible object is
 96  
      *     {@link Integer }
 97  
      *     
 98  
      */
 99  
     public Integer getValidTo() {
 100  3093
         return validTo;
 101  
     }
 102  
 
 103  
     /**
 104  
      * Sets the value of the validTo property.
 105  
      * 
 106  
      * @param value
 107  
      *     allowed object is
 108  
      *     {@link Integer }
 109  
      *     
 110  
      */
 111  
     public void setValidTo(Integer value) {
 112  5
         this.validTo = value;
 113  5
     }
 114  
 
 115  
     /**
 116  
      * Gets the value of the every property.
 117  
      * 
 118  
      * @return
 119  
      *     possible object is
 120  
      *     {@link String }
 121  
      *     
 122  
      */
 123  
     public String getEvery() {
 124  5670
         if (every == null) {
 125  5644
             return "EVERY_YEAR";
 126  
         } else {
 127  26
             return every;
 128  
         }
 129  
     }
 130  
 
 131  
     /**
 132  
      * Sets the value of the every property.
 133  
      * 
 134  
      * @param value
 135  
      *     allowed object is
 136  
      *     {@link String }
 137  
      *     
 138  
      */
 139  
     public void setEvery(String value) {
 140  4
         this.every = value;
 141  4
     }
 142  
 
 143  
     /**
 144  
      * Gets the value of the descriptionPropertiesKey property.
 145  
      * 
 146  
      * @return
 147  
      *     possible object is
 148  
      *     {@link String }
 149  
      *     
 150  
      */
 151  
     public String getDescriptionPropertiesKey() {
 152  2490
         return descriptionPropertiesKey;
 153  
     }
 154  
 
 155  
     /**
 156  
      * Sets the value of the descriptionPropertiesKey property.
 157  
      * 
 158  
      * @param value
 159  
      *     allowed object is
 160  
      *     {@link String }
 161  
      *     
 162  
      */
 163  
     public void setDescriptionPropertiesKey(String value) {
 164  0
         this.descriptionPropertiesKey = value;
 165  0
     }
 166  
 
 167  
     /**
 168  
      * Gets the value of the localizedType property.
 169  
      * 
 170  
      * @return
 171  
      *     possible object is
 172  
      *     {@link HolidayType }
 173  
      *     
 174  
      */
 175  
     public HolidayType getLocalizedType() {
 176  2825
         if (localizedType == null) {
 177  2825
             return HolidayType.OFFICIAL_HOLIDAY;
 178  
         } else {
 179  0
             return localizedType;
 180  
         }
 181  
     }
 182  
 
 183  
     /**
 184  
      * Sets the value of the localizedType property.
 185  
      * 
 186  
      * @param value
 187  
      *     allowed object is
 188  
      *     {@link HolidayType }
 189  
      *     
 190  
      */
 191  
     public void setLocalizedType(HolidayType value) {
 192  0
         this.localizedType = value;
 193  0
     }
 194  
 
 195  
 }