public class Cmmn extends Object
| Modifier and Type | Field and Description |
|---|---|
static Cmmn |
INSTANCE
the singleton instance of
Cmmn. |
| Modifier | Constructor and Description |
|---|---|
protected |
Cmmn()
Register known types of the Cmmn model
|
| Modifier and Type | Method and Description |
|---|---|
static String |
convertToString(CmmnModelInstance modelInstance)
Allows the conversion of a
CmmnModelInstance to an String. |
static CmmnModelInstance |
createEmptyModel()
Allows creating an new, empty
CmmnModelInstance. |
protected String |
doConvertToString(CmmnModelInstance modelInstance) |
protected CmmnModelInstance |
doCreateEmptyModel() |
protected CmmnModelInstance |
doReadModelFromFile(File file) |
protected CmmnModelInstance |
doReadModelFromInputStream(InputStream is) |
protected void |
doRegisterTypes(org.camunda.bpm.model.xml.ModelBuilder modelBuilder) |
protected void |
doValidateModel(CmmnModelInstance modelInstance) |
protected void |
doWriteModelToFile(File file,
CmmnModelInstance modelInstance) |
protected void |
doWriteModelToOutputStream(OutputStream os,
CmmnModelInstance modelInstance) |
org.camunda.bpm.model.xml.Model |
getCmmnModel() |
org.camunda.bpm.model.xml.ModelBuilder |
getCmmnModelBuilder() |
static CmmnModelInstance |
readModelFromFile(File file)
Allows reading a
CmmnModelInstance from a File. |
static CmmnModelInstance |
readModelFromStream(InputStream stream)
Allows reading a
CmmnModelInstance from an InputStream |
void |
setCmmnModel(org.camunda.bpm.model.xml.Model cmmnModel) |
static void |
validateModel(CmmnModelInstance modelInstance)
Validate model DOM document
|
static void |
writeModelToFile(File file,
CmmnModelInstance modelInstance)
Allows writing a
CmmnModelInstance to a File. |
static void |
writeModelToStream(OutputStream stream,
CmmnModelInstance modelInstance)
Allows writing a
CmmnModelInstance to an OutputStream. |
public static Cmmn INSTANCE
public static CmmnModelInstance readModelFromFile(File file)
CmmnModelInstance from a File.file - the File to read the CmmnModelInstance fromCmmnModelException - if the model cannot be readpublic static CmmnModelInstance readModelFromStream(InputStream stream)
CmmnModelInstance from an InputStreamstream - the InputStream to read the CmmnModelInstance fromorg.camunda.bpm.model.xml.ModelParseException - if the model cannot be readpublic static void writeModelToFile(File file, CmmnModelInstance modelInstance)
CmmnModelInstance to a File. It will be
validated before writing.file - the File to write the CmmnModelInstance tomodelInstance - the CmmnModelInstance to writeCmmnModelException - if the model cannot be writtenorg.camunda.bpm.model.xml.ModelValidationException - if the model is not validpublic static void writeModelToStream(OutputStream stream, CmmnModelInstance modelInstance)
CmmnModelInstance to an OutputStream. It will be
validated before writing.stream - the OutputStream to write the CmmnModelInstance tomodelInstance - the CmmnModelInstance to writeorg.camunda.bpm.model.xml.ModelException - if the model cannot be writtenorg.camunda.bpm.model.xml.ModelValidationException - if the model is not validpublic static String convertToString(CmmnModelInstance modelInstance)
CmmnModelInstance to an String. It will
be validated before conversion.modelInstance - the model instance to convertpublic static void validateModel(CmmnModelInstance modelInstance)
modelInstance - the CmmnModelInstance to validateorg.camunda.bpm.model.xml.ModelValidationException - if the model is not validpublic static CmmnModelInstance createEmptyModel()
CmmnModelInstance.protected CmmnModelInstance doReadModelFromFile(File file)
protected CmmnModelInstance doReadModelFromInputStream(InputStream is)
protected void doWriteModelToFile(File file, CmmnModelInstance modelInstance)
protected void doWriteModelToOutputStream(OutputStream os, CmmnModelInstance modelInstance)
protected String doConvertToString(CmmnModelInstance modelInstance)
protected void doValidateModel(CmmnModelInstance modelInstance)
protected CmmnModelInstance doCreateEmptyModel()
protected void doRegisterTypes(org.camunda.bpm.model.xml.ModelBuilder modelBuilder)
public org.camunda.bpm.model.xml.Model getCmmnModel()
Model instance to usepublic org.camunda.bpm.model.xml.ModelBuilder getCmmnModelBuilder()
public void setCmmnModel(org.camunda.bpm.model.xml.Model cmmnModel)
cmmnModel - the cmmnModel to setCopyright © 2014–2019 camunda services GmbH. All rights reserved.