/[schmitzm]/trunk/src/skrueger/AbstractAttributeMetadata.java
ViewVC logotype

Diff of /trunk/src/skrueger/AbstractAttributeMetadata.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 769 by alfonx, Sun Mar 21 11:02:34 2010 UTC revision 772 by alfonx, Sun Mar 21 14:05:26 2010 UTC
# Line 8  import org.opengis.feature.type.Name; Line 8  import org.opengis.feature.type.Name;
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();
# Line 44  public abstract class AbstractAttributeM Line 44  public abstract class AbstractAttributeM
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)
# Line 94  public abstract class AbstractAttributeM Line 104  public abstract class AbstractAttributeM
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    
# Line 116  public abstract class AbstractAttributeM Line 126  public abstract class AbstractAttributeM
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    

Legend:
Removed from v.769  
changed lines
  Added in v.772

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26