Package org.camunda.bpm.model.cmmn.impl
Class CmmnModelInstanceImpl
java.lang.Object
org.camunda.bpm.model.xml.impl.ModelInstanceImpl
org.camunda.bpm.model.cmmn.impl.CmmnModelInstanceImpl
- All Implemented Interfaces:
CmmnModelInstance,ModelInstance
- Author:
- Roman Smirnov
-
Field Summary
Fields inherited from class org.camunda.bpm.model.xml.impl.ModelInstanceImpl
document, model, modelBuilder -
Constructor Summary
ConstructorsConstructorDescriptionCmmnModelInstanceImpl(ModelImpl model, ModelBuilder modelBuilder, DomDocument document) -
Method Summary
Modifier and TypeMethodDescriptionclone()Copies the model instance but not the model.voidsetDefinitions(Definitions definitions) Set the Cmmn 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, validateMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.camunda.bpm.model.xml.ModelInstance
getDocument, getDocumentElement, getModel, getModelElementById, getModelElementsByType, getModelElementsByType, newInstance, newInstance, newInstance, newInstance, setDocumentElement, validate
-
Constructor Details
-
CmmnModelInstanceImpl
-
-
Method Details
-
getDefinitions
- Specified by:
getDefinitionsin interfaceCmmnModelInstance- Returns:
- the
Definitions, root element of the Cmmn Model.
-
setDefinitions
Description copied from interface:CmmnModelInstanceSet the Cmmn Definitions Root element- Specified by:
setDefinitionsin interfaceCmmnModelInstance- Parameters:
definitions- theDefinitionselement to set
-
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 interfaceCmmnModelInstance- Specified by:
clonein interfaceModelInstance- Overrides:
clonein classModelInstanceImpl- Returns:
- the new model instance
-