Class BpmnModelInstanceImpl

  • All Implemented Interfaces:
    BpmnModelInstance, org.camunda.bpm.model.xml.ModelInstance

    public class BpmnModelInstanceImpl
    extends org.camunda.bpm.model.xml.impl.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​(org.camunda.bpm.model.xml.impl.ModelImpl model, org.camunda.bpm.model.xml.ModelBuilder modelBuilder, org.camunda.bpm.model.xml.instance.DomDocument document)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      BpmnModelInstance clone()
      Copies the BPMN model instance but not the model.
      Definitions getDefinitions()  
      void setDefinitions​(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 interface org.camunda.bpm.model.xml.ModelInstance

        getDocument, getDocumentElement, getModel, getModelElementById, getModelElementsByType, getModelElementsByType, newInstance, newInstance, newInstance, newInstance, setDocumentElement, validate
    • Constructor Detail

      • BpmnModelInstanceImpl

        public BpmnModelInstanceImpl​(org.camunda.bpm.model.xml.impl.ModelImpl model,
                                     org.camunda.bpm.model.xml.ModelBuilder modelBuilder,
                                     org.camunda.bpm.model.xml.instance.DomDocument document)
    • Method Detail

      • clone

        public BpmnModelInstance clone()
        Description copied from interface: BpmnModelInstance
        Copies the BPMN 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 interface BpmnModelInstance
        Specified by:
        clone in interface org.camunda.bpm.model.xml.ModelInstance
        Overrides:
        clone in class org.camunda.bpm.model.xml.impl.ModelInstanceImpl
        Returns:
        the new BPMN model instance