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
The Bpmn Model
- Author:
- Daniel Meyer
-
Field Summary
Fields inherited from class org.camunda.bpm.model.xml.impl.ModelInstanceImpl
document, model, modelBuilder
-
Constructor Summary
ConstructorDescriptionBpmnModelInstanceImpl
(ModelImpl model, ModelBuilder modelBuilder, DomDocument document) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Copies the model instance but not the model.void
setDefinitions
(Definitions definitions) Set the Bpmn Definitions Root elementMethods 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 Details
-
BpmnModelInstanceImpl
-
-
Method Details
-
getDefinitions
- Specified by:
getDefinitions
in interfaceBpmnModelInstance
- Returns:
- the
Definitions
, root element of the Bpmn Model.
-
setDefinitions
Description copied from interface:BpmnModelInstance
Set the Bpmn Definitions Root element- Specified by:
setDefinitions
in interfaceBpmnModelInstance
- Parameters:
definitions
- theDefinitions
element to set
-
clone
Description copied from interface:ModelInstance
Copies 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:
clone
in interfaceBpmnModelInstance
- Specified by:
clone
in interfaceModelInstance
- Overrides:
clone
in classModelInstanceImpl
- Returns:
- the new model instance
-