gvsig-vectorediting / org.gvsig.vectorediting / trunk / org.gvsig.vectorediting / org.gvsig.vectorediting.lib / org.gvsig.vectorediting.lib.api / src / main / java / org / gvsig / vectorediting / lib / api / EditingServiceParameterOptions.java @ 2870
History | View | Annotate | Download (1.11 KB)
1 |
/*
|
---|---|
2 |
* To change this license header, choose License Headers in Project Properties.
|
3 |
* To change this template file, choose Tools | Templates
|
4 |
* and open the template in the editor.
|
5 |
*/
|
6 |
package org.gvsig.vectorediting.lib.api; |
7 |
|
8 |
import java.util.Iterator; |
9 |
import org.gvsig.tools.util.LabeledValue; |
10 |
import org.gvsig.vectorediting.lib.api.EditingServiceParameterOptions.ParameterOption; |
11 |
import org.gvsig.vectorediting.lib.api.exceptions.InvalidEntryException; |
12 |
|
13 |
/**
|
14 |
*
|
15 |
* @author fdiaz
|
16 |
*/
|
17 |
public interface EditingServiceParameterOptions extends Iterable<ParameterOption> { |
18 |
|
19 |
EditingServiceParameterOptions add(ParameterOption option); |
20 |
|
21 |
EditingServiceParameterOptions add(String label, Object value, String consoleValue); |
22 |
|
23 |
Object getValue(Object key, Object defaultValue) throws InvalidEntryException ; |
24 |
|
25 |
@Override
|
26 |
Iterator<ParameterOption> iterator();
|
27 |
|
28 |
public boolean isValidValue(Object value); |
29 |
|
30 |
public String getLabel(Object value); |
31 |
|
32 |
public String getConsoleValue(Object value); |
33 |
|
34 |
public interface ParameterOption extends LabeledValue { |
35 |
|
36 |
public String getConsoleValue(); |
37 |
|
38 |
} |
39 |
|
40 |
} |