Revision 44346 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeature.java
DefaultFeature.java | ||
---|---|---|
1059 | 1059 |
public boolean containsKey(String key) { |
1060 | 1060 |
return this.data.getType().get(key)!=null; |
1061 | 1061 |
} |
1062 |
|
|
1063 |
@Override |
|
1064 |
public String getLabelOfValue(String name) { |
|
1065 |
FeatureAttributeDescriptor attrdesc = this.data.getType().getAttributeDescriptor(name); |
|
1066 |
if( attrdesc==null ) { |
|
1067 |
throw new IllegalArgumentException("Attribute name '"+name+"' not found in the feature."); |
|
1068 |
} |
|
1069 |
Object value = this.get(attrdesc.getIndex()); |
|
1070 |
String label = attrdesc.getLabelOfValue(value); |
|
1071 |
return label; |
|
1072 |
} |
|
1073 |
|
|
1062 | 1074 |
} |
Also available in: Unified diff