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