Package org.camunda.bpm.model.bpmn.impl
Class BpmnModelInstanceImpl
- java.lang.Object
-
- org.camunda.bpm.model.xml.impl.ModelInstanceImpl
-
- org.camunda.bpm.model.bpmn.impl.BpmnModelInstanceImpl
-
- All Implemented Interfaces:
BpmnModelInstance,ModelInstance
public class BpmnModelInstanceImpl extends ModelInstanceImpl implements BpmnModelInstance
The Bpmn Model
- Author:
- Daniel Meyer
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.model.xml.impl.ModelInstanceImpl
document, model, modelBuilder
-
-
Constructor Summary
Constructors Constructor Description BpmnModelInstanceImpl(ModelImpl model, ModelBuilder modelBuilder, DomDocument document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BpmnModelInstanceclone()Copies the model instance but not the model.DefinitionsgetDefinitions()voidsetDefinitions(Definitions definitions)Set the Bpmn Definitions Root element-
Methods inherited from class org.camunda.bpm.model.xml.impl.ModelInstanceImpl
getDocument, getDocumentElement, getModel, getModelElementById, getModelElementsByType, getModelElementsByType, newInstance, newInstance, newInstance, newInstance, registerGenericType, setDocumentElement, validate
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.model.xml.ModelInstance
getDocument, getDocumentElement, getModel, getModelElementById, getModelElementsByType, getModelElementsByType, newInstance, newInstance, newInstance, newInstance, setDocumentElement, validate
-
-
-
-
Constructor Detail
-
BpmnModelInstanceImpl
public BpmnModelInstanceImpl(ModelImpl model, ModelBuilder modelBuilder, DomDocument document)
-
-
Method Detail
-
getDefinitions
public Definitions getDefinitions()
- Specified by:
getDefinitionsin interfaceBpmnModelInstance- Returns:
- the
Definitions, root element of the Bpmn Model.
-
setDefinitions
public void setDefinitions(Definitions definitions)
Description copied from interface:BpmnModelInstanceSet the Bpmn Definitions Root element- Specified by:
setDefinitionsin interfaceBpmnModelInstance- Parameters:
definitions- theDefinitionselement to set
-
clone
public BpmnModelInstance clone()
Description copied from interface:ModelInstanceCopies the model instance but not the model. So only the wrapped DOM document is cloned. Changes of the model are persistent between multiple model instances.- Specified by:
clonein interfaceBpmnModelInstance- Specified by:
clonein interfaceModelInstance- Overrides:
clonein classModelInstanceImpl- Returns:
- the new model instance
-
-