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 Name name; |
protected NameImpl name; |
15 |
|
|
16 |
/** {@link Translation}s of the attribute's title **/ |
/** {@link Translation}s of the attribute's title **/ |
17 |
protected Translation title = new Translation(); |
protected Translation title = new Translation(); |
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) |
104 |
* <code>org.bla.plo:blub</code> |
* <code>org.bla.plo:blub</code> |
105 |
*/ |
*/ |
106 |
@Override |
@Override |
107 |
public Name getName() { |
public NameImpl getName() { |
108 |
return name; |
return name; |
109 |
} |
} |
110 |
|
|
126 |
* <code>org.bla.plo:blub</code> |
* <code>org.bla.plo:blub</code> |
127 |
*/ |
*/ |
128 |
@Override |
@Override |
129 |
public void setName(final Name name) { |
public void setName(final NameImpl name) { |
130 |
this.name = name; |
this.name = name; |
131 |
} |
} |
132 |
|
|