Revision 365 org.gvsig.vectorediting/trunk/org.gvsig.vectorediting/org.gvsig.vectorediting.lib/org.gvsig.vectorediting.lib.spi/src/main/java/org/gvsig/vectorediting/lib/spi/DefaultEditingServiceParameter.java

View differences:

DefaultEditingServiceParameter.java
44 44

  
45 45
    private Map<String, String> options;
46 46

  
47
    private Object defaultValue;
48

  
47 49
    public DefaultEditingServiceParameter(String theName,
48 50
        String theDescription, TYPE... theTypes) {
49 51

  
......
56 58
    }
57 59

  
58 60
    public DefaultEditingServiceParameter(String theName,
61
        Object theDefaultValue, String theDescription, TYPE... theTypes) {
62

  
63
        this.name = theName;
64
        this.description = theDescription;
65
        this.geometryType = Geometry.TYPES.NULL;
66
        this.types = new HashSet<EditingServiceParameter.TYPE>();
67
        this.types.addAll(Arrays.asList(theTypes));
68
        this.defaultValue = theDefaultValue;
69
    }
70

  
71
    public DefaultEditingServiceParameter(String theName,
59 72
        String theDescription, int theGeometryType, TYPE... theTypes) {
60 73

  
61 74
        this.name = theName;
......
67 80
    }
68 81

  
69 82
    public DefaultEditingServiceParameter(String theName,
83
        String theDescription, Object theDefaultValue, int theGeometryType,
84
        TYPE... theTypes) {
85

  
86
        this.name = theName;
87
        this.description = theDescription;
88
        this.geometryType = theGeometryType;
89
        this.types = new HashSet<EditingServiceParameter.TYPE>();
90
        this.types.addAll(Arrays.asList(theTypes));
91
        this.defaultValue = theDefaultValue;
92

  
93
    }
94

  
95
    public DefaultEditingServiceParameter(String theName,
70 96
        String theDescription, Map<String, String> theOptions, TYPE... theTypes) {
71 97

  
72 98
        this.name = theName;
......
77 103

  
78 104
        this.options = theOptions;
79 105
    }
106
    
107
    public DefaultEditingServiceParameter(String theName,
108
        String theDescription, Map<String, String> theOptions, Object theDefaultValue, TYPE... theTypes) {
80 109

  
110
        this.name = theName;
111
        this.description = theDescription;
112

  
113
        this.types = new HashSet<EditingServiceParameter.TYPE>();
114
        this.types.addAll(Arrays.asList(theTypes));
115

  
116
        this.options = theOptions;
117
        this.defaultValue = theDefaultValue;
118
    }
119

  
81 120
    public DefaultEditingServiceParameter(String theName,
82 121
        String theDescription, int theGeometryType,
83 122
        Map<String, String> theOptions, TYPE... theTypes) {
......
92 131
        this.options = theOptions;
93 132

  
94 133
    }
134
    
135
    public DefaultEditingServiceParameter(String theName,
136
        String theDescription, int theGeometryType,
137
        Map<String, String> theOptions, Object theDefaultValue, TYPE... theTypes) {
95 138

  
139
        this.name = theName;
140
        this.description = theDescription;
141
        this.geometryType = theGeometryType;
142

  
143
        this.types = new HashSet<EditingServiceParameter.TYPE>();
144
        this.types.addAll(Arrays.asList(theTypes));
145

  
146
        this.options = theOptions;
147
        this.defaultValue = theDefaultValue;
148
    }
149

  
96 150
    public Set<TYPE> getTypes() {
97 151
        return types;
98 152
    }
......
117 171
        return this.options;
118 172
    }
119 173

  
174
    public Object getDefaultValue() {
175
        return this.defaultValue;
176
    }
177

  
120 178
}

Also available in: Unified diff