/[schmitzm]/branches/2.2.x/src/skrueger/AttributeMetadataInterface.java
ViewVC logotype

Diff of /branches/2.2.x/src/skrueger/AttributeMetadataInterface.java

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

revision 471 by alfonx, Wed Oct 14 16:20:26 2009 UTC revision 472 by alfonx, Wed Oct 14 22:48:50 2009 UTC
# Line 77  public class AttributeMetadata implement Line 77  public class AttributeMetadata implement
77                  this.setName(name);                  this.setName(name);
78                  this.title = title;                  this.title = title;
79                  this.desc = desc;                  this.desc = desc;
80                    
81                  // The THE_GEOM and shall never be visible!                  // The THE_GEOM and shall never be visible!
82                  if (name.getLocalPart().equalsIgnoreCase("the_geom")) this.visible = false;                  if (name.getLocalPart().equalsIgnoreCase("the_geom"))
83                                            this.visible = false;
84                    else
85                            this.visible = visible;
86    
87                  this.unit = unit;                  this.unit = unit;
88          }          }
89    
# Line 147  public class AttributeMetadata implement Line 150  public class AttributeMetadata implement
150          public void setVisible(final Boolean visible) {          public void setVisible(final Boolean visible) {
151                  this.visible = visible;                  this.visible = visible;
152          }          }
153  //  
154  //      /** @return the index of this attribute in the underlying table/dbf **/          //
155  //      public int getColIdx() {          // /** @return the index of this attribute in the underlying table/dbf **/
156  //              return colIdx;          // public int getColIdx() {
157  //      }          // return colIdx;
158            // }
159    
160          public Translation getTitle() {          public Translation getTitle() {
161                  return title;                  return title;
# Line 183  public class AttributeMetadata implement Line 187  public class AttributeMetadata implement
187                  getDesc().copyTo(amd.getDesc());                  getDesc().copyTo(amd.getDesc());
188                  amd.setUnit(getUnit());                  amd.setUnit(getUnit());
189                  amd.setVisible(isVisible());                  amd.setVisible(isVisible());
190                  amd.setName(new NameImpl(getName().getNamespaceURI(), getName().getLocalPart()));                  amd.setName(new NameImpl(getName().getNamespaceURI(), getName()
191                                    .getLocalPart()));
192    
193                  return amd;                  return amd;
194          }          }
195    
196          @Override          @Override
197          public AttributeMetadata copy() {          public AttributeMetadata copy() {
198                  return copyTo( new AttributeMetadata());                  return copyTo(new AttributeMetadata());
199          }          }
200    
201          /**          /**

Legend:
Removed from v.471  
changed lines
  Added in v.472

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26