comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/DefaultInputValue.java @ 171:7fb9441dd8af

Format Code to max 80 Chars per Row and Cleanup gnv-artifacts/trunk@208 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 09 Oct 2009 07:54:48 +0000
parents bd284d8306db
children
comparison
equal deleted inserted replaced
170:7be22e76c270 171:7fb9441dd8af
1 /** 1 /**
2 * 2 *
3 */ 3 */
4 package de.intevation.gnv.transition; 4 package de.intevation.gnv.transition;
5
5 /** 6 /**
6 * @author Tim Englich <tim.englich@intevation.de> 7 * @author Tim Englich <tim.englich@intevation.de>
7 * 8 *
8 */ 9 */
9 public class DefaultInputValue implements InputValue { 10 public class DefaultInputValue implements InputValue {
10 11
11 /** 12 /**
12 * The UID of this Class. 13 * The UID of this Class.
15 private String name = null; 16 private String name = null;
16 private String type = null; 17 private String type = null;
17 private boolean multiselect = false; 18 private boolean multiselect = false;
18 private int usedInQueries = 1; 19 private int usedInQueries = 1;
19 private String defaultValue = "N/N"; 20 private String defaultValue = "N/N";
20 21
21 22 public DefaultInputValue(String name, String type, String defaultValue,
22 public DefaultInputValue(String name, String type, String defaultValue, boolean multiselect){ 23 boolean multiselect) {
23 this(name, type, multiselect, 1); 24 this(name, type, multiselect, 1);
24 this.defaultValue = defaultValue; 25 this.defaultValue = defaultValue;
25 26
26 } 27 }
28
27 /** 29 /**
28 * Constructor 30 * Constructor
29 */ 31 */
30 public DefaultInputValue(String name, String type, boolean multiselect, int usedInQueries){ 32 public DefaultInputValue(String name, String type, boolean multiselect,
33 int usedInQueries) {
31 this.name = name; 34 this.name = name;
32 this.type = type; 35 this.type = type;
33 this.multiselect = multiselect; 36 this.multiselect = multiselect;
34 this.usedInQueries = usedInQueries; 37 this.usedInQueries = usedInQueries;
35 } 38 }
51 /** 54 /**
52 * @see java.lang.Object#toString() 55 * @see java.lang.Object#toString()
53 */ 56 */
54 @Override 57 @Override
55 public String toString() { 58 public String toString() {
56 return "InputValue "+this.name+" ==> "+this.type+ "==> multiselect: "+this.multiselect; 59 return "InputValue " + this.name + " ==> " + this.type
60 + "==> multiselect: " + this.multiselect;
57 } 61 }
58 62
59 /** 63 /**
60 * @see de.intevation.gnv.transition.InputValue#isMultiselect() 64 * @see de.intevation.gnv.transition.InputValue#isMultiselect()
61 */ 65 */
66 public int usedInQueries() { 70 public int usedInQueries() {
67 return this.usedInQueries; 71 return this.usedInQueries;
68 } 72 }
69 73
70 public String getDefaultValue() { 74 public String getDefaultValue() {
71 return this.defaultValue; 75 return this.defaultValue;
72 } 76 }
73 77
74 } 78 }

http://dive4elements.wald.intevation.org