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 |
|
|
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; |
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 |
/** |
/** |