Package org.flowable.bpmn.model
Class BaseElement
- java.lang.Object
-
- org.flowable.bpmn.model.BaseElement
-
- All Implemented Interfaces:
HasExtensionAttributes
- Direct Known Subclasses:
AbstractFlowableHttpHandler,Artifact,Assignment,CollectionHandler,CustomProperty,DataAssociation,DataGridField,DataSpec,DataStore,Escalation,EventDefinition,EventListener,ExtensionElement,FieldExtension,FlowableListener,FlowElement,FormProperty,FormValue,Import,Interface,IOParameter,IOSpecification,ItemDefinition,Lane,Message,MessageFlow,MultiInstanceLoopCharacteristics,Operation,Pool,Process,Resource,ScriptInfo,Signal
public abstract class BaseElement extends Object implements HasExtensionAttributes
- Author:
- Tijs Rademakers
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,List<ExtensionAttribute>>attributesextension attributes could be part of each elementprotected Map<String,List<ExtensionElement>>extensionElementsprotected Stringidprotected intxmlColumnNumberprotected intxmlRowNumber
-
Constructor Summary
Constructors Constructor Description BaseElement()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(ExtensionAttribute attribute)add attribute to the objectvoidaddExtensionElement(ExtensionElement extensionElement)abstract BaseElementclone()Map<String,List<ExtensionAttribute>>getAttributes()get element's attributesStringgetAttributeValue(String namespace, String name)return value of the attribute from given namespace with given name.Map<String,List<ExtensionElement>>getExtensionElements()StringgetId()intgetXmlColumnNumber()intgetXmlRowNumber()voidsetAttributes(Map<String,List<ExtensionAttribute>> attributes)set all object's attributesvoidsetExtensionElements(Map<String,List<ExtensionElement>> extensionElements)voidsetId(String id)voidsetValues(BaseElement otherElement)voidsetXmlColumnNumber(int xmlColumnNumber)voidsetXmlRowNumber(int xmlRowNumber)
-
-
-
Field Detail
-
id
protected String id
-
xmlRowNumber
protected int xmlRowNumber
-
xmlColumnNumber
protected int xmlColumnNumber
-
extensionElements
protected Map<String,List<ExtensionElement>> extensionElements
-
attributes
protected Map<String,List<ExtensionAttribute>> attributes
extension attributes could be part of each element
-
-
Method Detail
-
getId
public String getId()
-
setId
public void setId(String id)
-
getXmlRowNumber
public int getXmlRowNumber()
-
setXmlRowNumber
public void setXmlRowNumber(int xmlRowNumber)
-
getXmlColumnNumber
public int getXmlColumnNumber()
-
setXmlColumnNumber
public void setXmlColumnNumber(int xmlColumnNumber)
-
getExtensionElements
public Map<String,List<ExtensionElement>> getExtensionElements()
-
addExtensionElement
public void addExtensionElement(ExtensionElement extensionElement)
-
setExtensionElements
public void setExtensionElements(Map<String,List<ExtensionElement>> extensionElements)
-
getAttributes
public Map<String,List<ExtensionAttribute>> getAttributes()
Description copied from interface:HasExtensionAttributesget element's attributes- Specified by:
getAttributesin interfaceHasExtensionAttributes
-
getAttributeValue
public String getAttributeValue(String namespace, String name)
Description copied from interface:HasExtensionAttributesreturn value of the attribute from given namespace with given name.- Specified by:
getAttributeValuein interfaceHasExtensionAttributes- Returns:
- attribute value or null in case when attribute was not found
-
addAttribute
public void addAttribute(ExtensionAttribute attribute)
Description copied from interface:HasExtensionAttributesadd attribute to the object- Specified by:
addAttributein interfaceHasExtensionAttributes
-
setAttributes
public void setAttributes(Map<String,List<ExtensionAttribute>> attributes)
Description copied from interface:HasExtensionAttributesset all object's attributes- Specified by:
setAttributesin interfaceHasExtensionAttributes
-
setValues
public void setValues(BaseElement otherElement)
-
clone
public abstract BaseElement clone()
-
-