1 /*
2 * Copyright (c) 2002-2017, Mairie de 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.codewizard.business;
35
36 /**
37 * This class provide the ObjectAttribute object
38 */
39 public class ObjectAttribute
40 {
41 private static final String DEFAULT_INPUT_TYPE = "text";
42
43 private String _strColumnName;
44 private String _strJavaType;
45 private String _strName;
46 private String _strVariableName;
47 private String _strInputType = DEFAULT_INPUT_TYPE;
48 private boolean _bDaoType;
49 private String _strTestInitValue1;
50 private String _strTestInitValue2;
51
52 /**
53 * Sets the Name
54 *
55 * @param strName The Name
56 */
57 public void setName( String strName )
58 {
59 _strName = strName;
60 }
61
62 /**
63 * Returns the Name
64 *
65 * @return The Name
66 */
67 public String getName()
68 {
69 return _strName;
70 }
71
72 /**
73 * Returns the VariableName
74 *
75 * @return The VariableName
76 */
77 public String getVariableName()
78 {
79 return _strVariableName;
80 }
81
82 /**
83 * Sets the VariableName
84 *
85 * @param strVariableName The VariableName
86 */
87 public void setVariableName( String strVariableName )
88 {
89 _strVariableName = strVariableName;
90 }
91
92 /**
93 * Returns the DaoType
94 *
95 * @return The DaoType
96 */
97 public boolean isDaoType()
98 {
99 return _bDaoType;
100 }
101
102 /**
103 * Sets the DaoType
104 *
105 * @param bDaoType The DaoType
106 */
107 public void setDaoType( boolean bDaoType )
108 {
109 _bDaoType = bDaoType;
110 }
111
112 /**
113 * Sets the column name
114 *
115 * @param strColumnName The column name
116 */
117 public void setColumnName( String strColumnName )
118 {
119 _strColumnName = strColumnName;
120 }
121
122 /**
123 * Returns the ColumnName
124 *
125 * @return The ColumnName
126 */
127 public String getColumnName()
128 {
129 return _strColumnName;
130 }
131
132 /**
133 * Sets the Type
134 *
135 * @param strType The Type
136 */
137 public void setType( String strType )
138 {
139 _strJavaType = strType;
140 }
141
142 /**
143 * Returns the Type
144 *
145 * @return The Type
146 */
147 public String getType()
148 {
149 return _strJavaType;
150 }
151
152 /**
153 * Sets the InputType
154 *
155 * @param strInputType The InputType
156 */
157 public void setInputType( String strInputType )
158 {
159 _strInputType = strInputType;
160 }
161
162 /**
163 * Returns the InputType
164 *
165 * @return The InputType
166 */
167 public String getInputType()
168 {
169 return _strInputType;
170 }
171
172 /**
173 * Returns the TestInitValue1
174 *
175 * @return The TestInitValue1
176 */
177 public String getTestInitValue1()
178 {
179 return _strTestInitValue1;
180 }
181
182 /**
183 * Sets the TestInitValue1
184 *
185 * @param strTestInitValue1 The TestInitValue1
186 */
187 public void setTestInitValue1( String strTestInitValue1 )
188 {
189 _strTestInitValue1 = strTestInitValue1;
190 }
191
192 /**
193 * Returns the TestInitValue2
194 *
195 * @return The TestInitValue2
196 */
197 public String getTestInitValue2()
198 {
199 return _strTestInitValue2;
200 }
201
202 /**
203 * Sets the TestInitValue2
204 *
205 * @param strTestInitValue2 The TestInitValue2
206 */
207 public void setTestInitValue2( String strTestInitValue2 )
208 {
209 _strTestInitValue2 = strTestInitValue2;
210 }
211 }