svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libTools / src / org / gvsig / tools / dynobject / DynAttributeDescriptor.java @ 24688
History | View | Annotate | Download (1.13 KB)
1 |
package org.gvsig.tools.dynobject; |
---|---|
2 |
|
3 |
public interface DynAttributeDescriptor { |
4 |
|
5 |
public static final int SINGLE = 1; |
6 |
public static final int CHOICE = 2; |
7 |
public static final int RANGE = 3; |
8 |
|
9 |
public String getName(); |
10 |
|
11 |
public int getType(); |
12 |
|
13 |
public String getDescription(); |
14 |
|
15 |
public Object getDefaultValue(); |
16 |
|
17 |
public boolean isMandatory(); |
18 |
|
19 |
public boolean isPersistent(); |
20 |
|
21 |
public int getTheTypeOfAvailableValues(); // SINGLE, CHOICE o RANGE |
22 |
|
23 |
public DynObjectValueItem[] getAvailableValues(); |
24 |
|
25 |
public Object getMinValue(); |
26 |
|
27 |
public Object getMaxValue(); |
28 |
|
29 |
public DynAttributeDescriptor setDescription(String description); |
30 |
|
31 |
public DynAttributeDescriptor setType(int type); |
32 |
|
33 |
public DynAttributeDescriptor setDefaultValue(Object defaultValue); |
34 |
|
35 |
public DynAttributeDescriptor setMandatory(boolean mandatory); |
36 |
|
37 |
public DynAttributeDescriptor setPersistent(boolean persistent); |
38 |
|
39 |
public DynAttributeDescriptor setTheTypeOfAvailableValues(int type); |
40 |
|
41 |
public DynAttributeDescriptor setAvailableValues(DynObjectValueItem[] values); |
42 |
|
43 |
public DynAttributeDescriptor setMinValue(Object minValue); |
44 |
|
45 |
public DynAttributeDescriptor setMaxValue(Object maxValue); |
46 |
} |