|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.model.cmmn.Cmmn
public class Cmmn
| Field Summary | |
|---|---|
static Cmmn |
INSTANCE
the singleton instance of Cmmn. |
| Constructor Summary | |
|---|---|
protected |
Cmmn()
Register known types of the Cmmn model |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static Cmmn INSTANCE
Cmmn. If you want to customize the behavior of Cmmn,
replace this instance with an instance of a custom subclass of Cmmn.
| Constructor Detail |
|---|
protected Cmmn()
| Method Detail |
|---|
public static CmmnModelInstance readModelFromFile(File file)
CmmnModelInstance from a File.
file - the File to read the CmmnModelInstance from
CmmnModelException - if the model cannot be readpublic static CmmnModelInstance readModelFromStream(InputStream stream)
CmmnModelInstance from an InputStream
stream - the InputStream to read the CmmnModelInstance from
org.camunda.bpm.model.xml.ModelParseException - if the model cannot be read
public 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 write
CmmnModelException - if the model cannot be written
org.camunda.bpm.model.xml.ModelValidationException - if the model is not valid
public 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 write
org.camunda.bpm.model.xml.ModelException - if the model cannot be written
org.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 convert
public static void validateModel(CmmnModelInstance modelInstance)
modelInstance - the CmmnModelInstance to validate
org.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 set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||