1 /* 2 * Copyright (c) 2002-2025, 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 /* 35 * To change this template, choose Tools | Templates 36 * and open the template in the editor. 37 */ 38 package fr.paris.lutece.util.beanvalidation; 39 40 import java.math.BigDecimal; 41 import java.util.Date; 42 43 /** 44 * 45 * @author pierre 46 */ 47 public interface Bean 48 { 49 /** 50 * Returns the Age 51 * 52 * @return The Age 53 */ 54 int getAge( ); 55 56 /** 57 * @return the _strCurrency 58 */ 59 String getCurrency( ); 60 61 /** 62 * @return the _dateBirth 63 */ 64 Date getDateBirth( ); 65 66 /** 67 * @return the _dateEndOfWorld 68 */ 69 Date getDateEndOfWorld( ); 70 71 /** 72 * Returns the Description 73 * 74 * @return The Description 75 */ 76 String getDescription( ); 77 78 /** 79 * Returns the Email 80 * 81 * @return The Email 82 */ 83 String getEmail( ); 84 85 /** 86 * Returns the IdObject 87 * 88 * @return The IdObject 89 */ 90 int getIdObject( ); 91 92 /** 93 * Returns the Name 94 * 95 * @return The Name 96 */ 97 String getName( ); 98 99 /** 100 * @return the _percent 101 */ 102 BigDecimal getPercent( ); 103 104 /** 105 * @return the _salary 106 */ 107 BigDecimal getSalary( ); 108 109 /** 110 * Sets the Age 111 * 112 * @param nAge 113 * The Age 114 */ 115 void setAge( int nAge ); 116 117 /** 118 * @param strCurrency 119 * the _strCurrency to set 120 */ 121 void setCurrency( String strCurrency ); 122 123 /** 124 * @param dateBirth 125 * the _dateBirth to set 126 */ 127 void setDateBirth( Date dateBirth ); 128 129 /** 130 * @param dateEndOfWorld 131 * the _dateEndOfWorld to set 132 */ 133 void setDateEndOfWorld( Date dateEndOfWorld ); 134 135 /** 136 * Sets the Description 137 * 138 * @param strDescription 139 * The Description 140 */ 141 void setDescription( String strDescription ); 142 143 /** 144 * Sets the Email 145 * 146 * @param strEmail 147 * The Email 148 */ 149 void setEmail( String strEmail ); 150 151 /** 152 * Sets the IdObject 153 * 154 * @param nIdObject 155 * The IdObject 156 */ 157 void setIdObject( int nIdObject ); 158 159 /** 160 * Sets the Name 161 * 162 * @param strName 163 * The Name 164 */ 165 void setName( String strName ); 166 167 /** 168 * @param percent 169 * the _percent to set 170 */ 171 void setPercent( BigDecimal percent ); 172 173 /** 174 * @param salary 175 * the _salary to set 176 */ 177 void setSalary( BigDecimal salary ); 178 179 void setUrl( String strUrl ); 180 181 String getUrl( ); 182 }