--- trunk/src/skrueger/AbstractAttributeMetadata.java 2010/03/21 11:02:34 769
+++ trunk/src/skrueger/AbstractAttributeMetadata.java 2010/03/21 14:05:26 772
@@ -8,10 +8,10 @@
import skrueger.geotools.StyledLayerUtil;
import skrueger.i8n.Translation;
-public abstract class AbstractAttributeMetadata implements AttributeMetadata {
+public abstract class AbstractAttributeMetadata implements AttributeMetadataInterface {
/** The Name of the attribute. This is the 'primary key' **/
- protected Name name;
+ protected NameImpl name;
/** {@link Translation}s of the attribute's title **/
protected Translation title = new Translation();
@@ -44,7 +44,17 @@
public String getUnit() {
return unit;
}
+
+ @Override
+ public void setTitle(final String title) {
+ this.title = new Translation(title);
+ }
+ @Override
+ public void setDesc(final String desc) {
+ this.desc = new Translation(desc);
+ }
+
/**
* When listed, the attributes are listed according to their {@link #weight}
* (heavier => further down)
@@ -94,7 +104,7 @@
* org.bla.plo:blub
*/
@Override
- public Name getName() {
+ public NameImpl getName() {
return name;
}
@@ -116,7 +126,7 @@
* org.bla.plo:blub
*/
@Override
- public void setName(final Name name) {
+ public void setName(final NameImpl name) {
this.name = name;
}