1 /****************************************************************************
2 * Copyright (c) 2005, 2006, 2007, 2008, 2009 Imola Informatica.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the LGPL License v2.1
5 * which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html
7 ****************************************************************************/
8 package it.imolinfo.jbi4corba.webservice.generator;
9
10 /**
11 * This class is used to define a custom code generation.
12 */
13 public class CodeGenerationProperties {
14
15 /**
16 * If this property is 'true' (default) the valuetype implementation is
17 * generated with the methods toString and equals.
18 */
19 private boolean valueTypeImplementationWithToStringAndEquals = true;
20
21 /**
22 * Creates a new instance of CodeGenerationProperties.
23 */
24 public CodeGenerationProperties() {
25 // NOP
26 }
27
28 /**
29 *
30 * @return The reurn
31 */
32 public boolean isValueTypeImplementationWithToStringAndEquals() {
33 return valueTypeImplementationWithToStringAndEquals;
34 }
35
36 /**
37 *
38 * @param valueTypeImplementationWithToStringAndEquals The value type implementation with to string and equals
39 */
40 public void setValueTypeImplementationWithToStringAndEquals(boolean valueTypeImplementationWithToStringAndEquals) {
41 this.valueTypeImplementationWithToStringAndEquals = valueTypeImplementationWithToStringAndEquals;
42 }
43
44 }