1 /* 2 * Copyright (c) 2002-2022, City of Paris 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 9 * 1. Redistributions of source code must retain the above copyright notice 10 * and the following disclaimer. 11 * 12 * 2. Redistributions in binary form must reproduce the above copyright notice 13 * and the following disclaimer in the documentation and/or other materials 14 * provided with the distribution. 15 * 16 * 3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its 17 * contributors may be used to endorse or promote products derived from 18 * this software without specific prior written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE 24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 * POSSIBILITY OF SUCH DAMAGE. 31 * 32 * License 1.0 33 */ 34 package fr.paris.lutece.plugins.appointment.modules.desk.util; 35 36 import java.time.LocalDate; 37 38 /** 39 * This is the business class for the object IncrementSlot 40 */ 41 public class IncrementSlot 42 { 43 // Variables declarations 44 private int _nIncrementingValue; 45 private int _nIdForm; 46 private LocalDate _startingDate; 47 private LocalDate _endingDate; 48 private String _strStartingTime; 49 private String _strEndingTime; 50 private IncrementingType _type; 51 52 /** 53 * Returns the IncrementingValue 54 * 55 * @return The IncrementingValue 56 */ 57 public int getIncrementingValue( ) 58 { 59 return _nIncrementingValue; 60 } 61 62 /** 63 * Sets the IncrementingValue 64 * 65 * @param nIncrementingValue 66 * The IncrementingValue 67 */ 68 public void setIncrementingValue( int nIncrementingValue ) 69 { 70 _nIncrementingValue = nIncrementingValue; 71 } 72 73 /** 74 * Returns the IdForm 75 * 76 * @return The IdForm 77 */ 78 public int getIdForm( ) 79 { 80 return _nIdForm; 81 } 82 83 /** 84 * Sets the IdForm 85 * 86 * @param nIdForm 87 * The IdForm 88 */ 89 public void setIdForm( int nIdForm ) 90 { 91 _nIdForm = nIdForm; 92 } 93 94 /** 95 * Returns the StartingDate 96 * 97 * @return The StartingDate 98 */ 99 public LocalDate getStartingDate( ) 100 { 101 return _startingDate; 102 } 103 104 /** 105 * Sets the StartingDate 106 * 107 * @param startingDate 108 * The StartingDate 109 */ 110 public void setStartingDate( LocalDate startingDate ) 111 { 112 _startingDate = startingDate; 113 } 114 115 /** 116 * Returns the EndingDate 117 * 118 * @return The EndingDate 119 */ 120 public LocalDate getEndingDate( ) 121 { 122 return _endingDate; 123 } 124 125 /** 126 * Sets the EndingDate 127 * 128 * @param endingDate 129 * The EndingDate 130 */ 131 public void setEndingDate( LocalDate endingDate ) 132 { 133 _endingDate = endingDate; 134 } 135 136 /** 137 * Returns the StartingTime 138 * 139 * @return The StartingTime 140 */ 141 public String getStartingTime( ) 142 { 143 return _strStartingTime; 144 } 145 146 /** 147 * Sets the StartingTime 148 * 149 * @param strStartingTime 150 * The StartingTime 151 */ 152 public void setStartingTime( String strStartingTime ) 153 { 154 _strStartingTime = strStartingTime; 155 } 156 157 /** 158 * Returns the EndingTime 159 * 160 * @return The EndingTime 161 */ 162 public String getEndingTime( ) 163 { 164 return _strEndingTime; 165 } 166 167 /** 168 * Sets the EndingTime 169 * 170 * @param strEndingTime 171 * The EndingTime 172 */ 173 public void setEndingTime( String strEndingTime ) 174 { 175 _strEndingTime = strEndingTime; 176 } 177 178 /** 179 * Returns the Type 180 * 181 * @return The Type 182 */ 183 public IncrementingType getType( ) 184 { 185 return _type; 186 } 187 188 /** 189 * Sets the Type 190 * 191 * @param type 192 * The Type 193 */ 194 public void setType( IncrementingType type ) 195 { 196 _type = type; 197 } 198 }