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
public class CmmnModelInstanceImpl extends ModelInstanceImpl implements CmmnModelInstance
- Author:
- Roman Smirnov
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.model.xml.impl.ModelInstanceImpl
document, model, modelBuilder
-
-
Constructor Summary
Constructors Constructor Description CmmnModelInstanceImpl(ModelImpl model, ModelBuilder modelBuilder, DomDocument document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmmnModelInstance
clone()
Copies the model instance but not the model.Definitions
getDefinitions()
void
setDefinitions(Definitions definitions)
Set the Cmmn 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
-
CmmnModelInstanceImpl
public CmmnModelInstanceImpl(ModelImpl model, ModelBuilder modelBuilder, DomDocument document)
-
-
Method Detail
-
getDefinitions
public Definitions getDefinitions()
- Specified by:
getDefinitions
in interfaceCmmnModelInstance
- Returns:
- the
Definitions
, root element of the Cmmn Model.
-
setDefinitions
public void setDefinitions(Definitions definitions)
Description copied from interface:CmmnModelInstance
Set the Cmmn Definitions Root element- Specified by:
setDefinitions
in interfaceCmmnModelInstance
- Parameters:
definitions
- theDefinitions
element to set
-
clone
public CmmnModelInstance 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 interfaceCmmnModelInstance
- Specified by:
clone
in interfaceModelInstance
- Overrides:
clone
in classModelInstanceImpl
- Returns:
- the new model instance
-
-