8 |
import skrueger.geotools.StyledLayerUtil; |
import skrueger.geotools.StyledLayerUtil; |
9 |
import skrueger.i8n.Translation; |
import skrueger.i8n.Translation; |
10 |
|
|
11 |
public abstract class AbstractAttributeMetadata implements AttributeMetadata { |
public abstract class AbstractAttributeMetadata implements AttributeMetadataInterface { |
12 |
|
|
13 |
/** The Name of the attribute. This is the 'primary key' **/ |
/** The Name of the attribute. This is the 'primary key' **/ |
14 |
protected NameImpl name; |
protected NameImpl name; |
44 |
public String getUnit() { |
public String getUnit() { |
45 |
return unit; |
return unit; |
46 |
} |
} |
47 |
|
|
48 |
|
@Override |
49 |
|
public void setTitle(final String title) { |
50 |
|
this.title = new Translation(title); |
51 |
|
} |
52 |
|
|
53 |
|
@Override |
54 |
|
public void setDesc(final String desc) { |
55 |
|
this.desc = new Translation(desc); |
56 |
|
} |
57 |
|
|
58 |
/** |
/** |
59 |
* When listed, the attributes are listed according to their {@link #weight} |
* When listed, the attributes are listed according to their {@link #weight} |
60 |
* (heavier => further down) |
* (heavier => further down) |