org.activiti.bpmn.model.HasExtensionAttributes Maven / Gradle / Ivy
The newest version!
package org.activiti.bpmn.model;
import java.util.List;
import java.util.Map;
/**
* interface for accessing Element attributes.
*
* @author Martin Grofcik
*/
public interface HasExtensionAttributes {
/** get element's attributes */
Map> getAttributes();
/**
* return value of the attribute from given namespace with given name.
*
* @param namespace
* @param name
* @return attribute value or null in case when attribute was not found
*/
String getAttributeValue(String namespace, String name);
/** add attribute to the object */
void addAttribute(ExtensionAttribute attribute);
/** set all object's attributes */
void setAttributes(Map> attributes);
}