/[schmitzm]/trunk/src/skrueger/geotools/StyledLayerUtil.java
ViewVC logotype

Diff of /trunk/src/skrueger/geotools/StyledLayerUtil.java

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

revision 526 by alfonx, Wed Nov 18 15:45:01 2009 UTC revision 534 by alfonx, Fri Nov 20 10:28:01 2009 UTC
# Line 245  public class StyledLayerUtil { Line 245  public class StyledLayerUtil {
245           * @param visible           * @param visible
246           *            indicated whether the visible or invisible entries are           *            indicated whether the visible or invisible entries are
247           *            returned           *            returned
248             *            
249             * TODO replace with {@link AttributeMetadataMap#sortedValuesVisibleOnly()}
250           */           */
251          public static AttributeMetadataMap getVisibleAttributeMetaData(          public static AttributeMetadataMap getVisibleAttributeMetaData(
252                          final AttributeMetadataMap amdMap, final boolean visible) {                          final AttributeMetadataMap amdMap, final boolean visible) {
253    
254                  final AttributeMetadataMap filteredMap = new AttributeMetadataMap();                  final AttributeMetadataMap filteredMap = new AttributeMetadataMap(amdMap.getLanguages());
255                  for (final AttributeMetadata amd : amdMap.values())                  for (final AttributeMetadata amd : amdMap.values())
256                          if (amd.isVisible() == visible)                          if (amd.isVisible() == visible)
257                                  filteredMap.put(amd.getName(), amd);                                  filteredMap.put(amd.getName(), amd);
# Line 262  public class StyledLayerUtil { Line 264  public class StyledLayerUtil {
264           * This method works like {@link           * This method works like {@link
265           * AMLImport#parseDataAttribute(org.w3c.dom.Node}, but for JDOM.           * AMLImport#parseDataAttribute(org.w3c.dom.Node}, but for JDOM.
266           *           *
267             * TODO 20.11.2009, SK: There are some new attribute weight, functiona,
268             * functionX and nodata in AttributeMetaData that should be parsed/exported
269             * too. but this method is only used by ISDSS, which is not supporting that
270             * stuff anyways.
271             *
272           * @param element           * @param element
273           *            {@link Element} to parse           *            {@link Element} to parse
274           */           */

Legend:
Removed from v.526  
changed lines
  Added in v.534

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26