diff --git a/open-bpmn.metamodel/src/main/java/org/openbpmn/bpmn/elements/core/BPMNElement.java b/open-bpmn.metamodel/src/main/java/org/openbpmn/bpmn/elements/core/BPMNElement.java index b3eceafd..aa1da252 100644 --- a/open-bpmn.metamodel/src/main/java/org/openbpmn/bpmn/elements/core/BPMNElement.java +++ b/open-bpmn.metamodel/src/main/java/org/openbpmn/bpmn/elements/core/BPMNElement.java @@ -347,6 +347,17 @@ public boolean hasAttribute(String name) { return this.getElementNode().hasAttribute(name); } + /** + * This method removes a specific attribute. + * + * @param extensionNamespace + * @param attribute + * @param value + */ + public void removeAttribute(String attribute) { + this.getElementNode().removeAttribute(attribute); + } + /** * Returns the corresponding dom element node * @@ -380,6 +391,18 @@ public void setExtensionAttribute(String extensionNamespace, String attribute, S setAttribute(extensionNamespace + ":" + attribute, value); } + /** + * This method removes a specific extension attribute. The extensionNamespace + * defines the attribute prefix within the BPMNElement: + * + * @param extensionNamespace + * @param attribute + * @param value + */ + public void removeExtensionAttribute(String extensionNamespace, String attribute) { + this.getElementNode().removeAttribute(extensionNamespace + ":" + attribute); + } + /** * Returns the value of a given extension attribute by name. If empty or not * set, the method returns null.