diff --git a/citydb-model/src/main/java/org/citydb/model/appearance/TextureImageProperty.java b/citydb-model/src/main/java/org/citydb/model/appearance/TextureImageProperty.java index b2f83189..76aacfe5 100644 --- a/citydb-model/src/main/java/org/citydb/model/appearance/TextureImageProperty.java +++ b/citydb-model/src/main/java/org/citydb/model/appearance/TextureImageProperty.java @@ -34,12 +34,12 @@ public class TextureImageProperty implements InlineOrByReferenceProperty elements) { } } + public boolean remove(T element) { + return elements.getOrDefault(element.getName().getNamespace(), Collections.emptyMap()) + .getOrDefault(element.getName().getLocalName(), Collections.emptyList()) + .remove(element); + } + public List remove(Name name) { return elements.getOrDefault(name.getNamespace(), Collections.emptyMap()) .remove(name.getLocalName());