svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libTools / src / org / gvsig / tools / attributes / Attributes.java @ 24064
History | View | Annotate | Download (1.02 KB)
1 | 24060 | jjdelcerro | package org.gvsig.tools.attributes; |
---|---|---|---|
2 | |||
3 | import java.util.Iterator; |
||
4 | |||
5 | public interface Attributes { |
||
6 | |||
7 | 24064 | jjdelcerro | public boolean allowAnonimousAttributes(); |
8 | |||
9 | 24060 | jjdelcerro | /**
|
10 | * Returns the value of an attribute.
|
||
11 | *
|
||
12 | * @param name
|
||
13 | * of the attribute
|
||
14 | * @return the attribute value
|
||
15 | */
|
||
16 | public Object getAttribute(String name); |
||
17 | |||
18 | /**
|
||
19 | * Sets the value of an attribute.
|
||
20 | *
|
||
21 | * @param name
|
||
22 | * of the attribute
|
||
23 | * @param value
|
||
24 | * for the attribute
|
||
25 | */
|
||
26 | public Attributes setAttribute(String name, Object value); |
||
27 | |||
28 | public AttributeDescriptor addAttribute(String name, int dataType, |
||
29 | String description, Object defaultValue); |
||
30 | |||
31 | public AttributeDescriptor addAttribute(String name, int dataType, |
||
32 | String description, Object defaultValue, Object[] avaliableValues); |
||
33 | |||
34 | public AttributeDescriptor addAttribute(String name, int dataType, |
||
35 | String description, Object defaultValue, Object minValue, |
||
36 | Object maxValue);
|
||
37 | |||
38 | public AttributeDescriptor addAttributeAlias(String name, String alias); |
||
39 | |||
40 | public Iterator getAttributes(); |
||
41 | |||
42 | } |