--- trunk/src/skrueger/AbstractAttributeMetadata.java 2010/03/21 11:36:11 770 +++ branches/2.1/src/skrueger/AbstractAttributeMetadata.java 2010/04/19 18:09:00 807 @@ -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 NameImpl name; + protected Name 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 NameImpl getName() { + public Name getName() { return name; } @@ -116,7 +126,7 @@ * org.bla.plo:blub */ @Override - public void setName(final NameImpl name) { + public void setName(final Name name) { this.name = name; }