/[schmitzm]/branches/2.2.x/src/skrueger/AttributeMetadataInterface.java
ViewVC logotype

Annotation of /branches/2.2.x/src/skrueger/AttributeMetadataInterface.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 797 - (hide annotations)
Sat Apr 10 16:12:40 2010 UTC (14 years, 10 months ago) by alfonx
Original Path: trunk/src/skrueger/AttributeMetadataInterface.java
File size: 3269 byte(s)
Changed the AMD Interface from using org.geotools.NameImpl to use org.opengis.Name
1 alfonx 244 package skrueger;
2    
3 alfonx 658 import java.util.HashSet;
4 alfonx 518
5 alfonx 770 import org.geotools.feature.NameImpl;
6 alfonx 464 import org.opengis.feature.type.Name;
7 alfonx 244
8 alfonx 420 import skrueger.geotools.Copyable;
9 alfonx 244 import skrueger.i8n.Translation;
10    
11 alfonx 772 public interface AttributeMetadataInterface extends Copyable<AttributeMetadataInterface>,
12     Comparable<AttributeMetadataInterface> {
13 alfonx 681
14 alfonx 534 /**
15 alfonx 769 * @return a translatable title for this attribute..
16 alfonx 244 */
17 alfonx 769 public Translation getTitle();
18 alfonx 464
19 alfonx 244 /**
20 alfonx 769 * Set a translatable title for this attribute..
21 alfonx 658 */
22 alfonx 769 public void setTitle(Translation title);
23 alfonx 772
24     /**
25     * Set an untranslated title for this attribute or pass a {@link Translation} encryped as a {@link String}
26     */
27     public void setTitle(String title);
28 alfonx 658
29     /**
30 alfonx 769 * @return a translatable description for this attribute
31 alfonx 534 */
32 alfonx 769 public Translation getDesc();
33 alfonx 534
34     /**
35 alfonx 769 * Set a translatable description for this attribute.
36 alfonx 534 */
37 alfonx 769 public void setDesc(Translation desc);
38 alfonx 534
39     /**
40 alfonx 772 * Set an untranslated description for this attribute or pass a {@link Translation} encryped as a {@link String}
41     */
42     public void setDesc(String desc);
43    
44    
45     /**
46 alfonx 769 * The local name. E.g. the name of the DBF column as a {@link String}.
47 alfonx 244 */
48 alfonx 769 public String getLocalName();
49 alfonx 244
50 alfonx 464 /**
51 alfonx 769 * A short form for #setName(new NameImpl(localName))
52 alfonx 464 */
53 alfonx 769 public void setLocalName(String localName);
54 alfonx 464
55     /**
56 alfonx 769 * The fully qualified {@link Name} of the attribute, e.g.
57     * <code>org.bla.plo:blub</code>. The second part equals the
58     * {@link #getLocalName()} value. The first may be <code>null</code> or
59     * represent the layer name.
60 alfonx 464 */
61 alfonx 797 public Name getName();
62 alfonx 464
63     /**
64 alfonx 769 * set the fully qualified {@link Name} of this attribute.
65 alfonx 464 */
66 alfonx 797 public void setName(Name name);
67 alfonx 464
68     /**
69 alfonx 769 * A list og objects that represent NODATA-values for this attribute. The
70     * objects are supporsed to be correctly casted already. That means that the
71     * NODATA objects listed here have must have the same type as the values of
72     * this object.
73 alfonx 464 */
74 alfonx 769 public HashSet<Object> getNodataValues();
75 alfonx 464
76 alfonx 534 /**
77 alfonx 769 * Takes any value object and checks it against the NODATA values. If the
78     * value equals a NODATA value, <code>null</code> is returned. Otherwise the
79     * same object is returned.
80     *
81     * Note: This method is called often.
82 alfonx 534 */
83 alfonx 769 public Object fiterNodata(Object value);
84 alfonx 534
85     /**
86 alfonx 769 * @return a non-translatable unit {@link String} for this attribute values.
87 alfonx 534 */
88 alfonx 769 public String getUnit();
89 alfonx 244
90 alfonx 534 /**
91 alfonx 769 * Set a unit {@link String} for this attribute values.
92 alfonx 534 */
93 alfonx 769 public void setUnit(String unit);
94 alfonx 244
95 alfonx 534 /**
96 alfonx 769 * @return A value defining the position of this attribute whenever the
97     * attributes are listed to an end-user. The higher the weight, the
98     * lower the position. (heavy goes down, light goes up)
99 alfonx 534 */
100 alfonx 769 public double getWeight();
101 alfonx 534
102     /**
103 alfonx 769 * set a value defining the position of this attribute whenever the
104     * attributes are listed to an end-user. The higher the weight, the lower
105     * the position. (heavy goes down, light goes up)
106 alfonx 534 */
107 alfonx 769 public void setWeight(double weight);
108 alfonx 464
109     /**
110 alfonx 769 * @return <code>false</code> if this attribute should not be selectable or
111     * shown to the end-user.
112 alfonx 464 */
113 alfonx 769 public boolean isVisible();
114 alfonx 464
115     /**
116 alfonx 769 * Set <code>false</code> if this attribute should not be shown to the
117     * end-user.
118 alfonx 464 */
119 alfonx 769 public void setVisible(boolean visible);
120 alfonx 464
121 alfonx 769 String getNoDataValuesFormatted();
122 alfonx 681
123 alfonx 244 }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26