|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.model.dmn.Dmn
public class Dmn
| Field Summary | |
|---|---|
static Dmn |
INSTANCE
the singleton instance of Dmn. |
| Constructor Summary | |
|---|---|
protected |
Dmn()
Register known types of the Dmn model |
| Method Summary | |
|---|---|
static String |
convertToString(DmnModelInstance modelInstance)
Allows the conversion of a DmnModelInstance to an String. |
static DmnModelInstance |
createEmptyModel()
Allows creating an new, empty DmnModelInstance. |
protected String |
doConvertToString(DmnModelInstance modelInstance)
|
protected DmnModelInstance |
doCreateEmptyModel()
|
protected DmnModelInstance |
doReadModelFromFile(File file)
|
protected DmnModelInstance |
doReadModelFromInputStream(InputStream is)
|
protected void |
doRegisterTypes(org.camunda.bpm.model.xml.ModelBuilder modelBuilder)
|
protected void |
doValidateModel(DmnModelInstance modelInstance)
|
protected void |
doWriteModelToFile(File file,
DmnModelInstance modelInstance)
|
protected void |
doWriteModelToOutputStream(OutputStream os,
DmnModelInstance modelInstance)
|
org.camunda.bpm.model.xml.Model |
getDmnModel()
|
org.camunda.bpm.model.xml.ModelBuilder |
getDmnModelBuilder()
|
static DmnModelInstance |
readModelFromFile(File file)
Allows reading a DmnModelInstance from a File. |
static DmnModelInstance |
readModelFromStream(InputStream stream)
Allows reading a DmnModelInstance from an InputStream |
void |
setDmnModel(org.camunda.bpm.model.xml.Model dmnModel)
|
static void |
validateModel(DmnModelInstance modelInstance)
Validate model DOM document |
static void |
writeModelToFile(File file,
DmnModelInstance modelInstance)
Allows writing a DmnModelInstance to a File. |
static void |
writeModelToStream(OutputStream stream,
DmnModelInstance modelInstance)
Allows writing a DmnModelInstance 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 Dmn INSTANCE
Dmn. If you want to customize the behavior of Dmn,
replace this instance with an instance of a custom subclass of Dmn.
| Constructor Detail |
|---|
protected Dmn()
| Method Detail |
|---|
public static DmnModelInstance readModelFromFile(File file)
DmnModelInstance from a File.
file - the File to read the DmnModelInstance from
DmnModelException - if the model cannot be readpublic static DmnModelInstance readModelFromStream(InputStream stream)
DmnModelInstance from an InputStream
stream - the InputStream to read the DmnModelInstance from
org.camunda.bpm.model.xml.ModelParseException - if the model cannot be read
public static void writeModelToFile(File file,
DmnModelInstance modelInstance)
DmnModelInstance to a File. It will be
validated before writing.
file - the File to write the DmnModelInstance tomodelInstance - the DmnModelInstance to write
DmnModelException - if the model cannot be written
org.camunda.bpm.model.xml.ModelValidationException - if the model is not valid
public static void writeModelToStream(OutputStream stream,
DmnModelInstance modelInstance)
DmnModelInstance to an OutputStream. It will be
validated before writing.
stream - the OutputStream to write the DmnModelInstance tomodelInstance - the DmnModelInstance 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(DmnModelInstance modelInstance)
DmnModelInstance to an String. It will
be validated before conversion.
modelInstance - the model instance to convert
public static void validateModel(DmnModelInstance modelInstance)
modelInstance - the DmnModelInstance to validate
org.camunda.bpm.model.xml.ModelValidationException - if the model is not validpublic static DmnModelInstance createEmptyModel()
DmnModelInstance.
protected DmnModelInstance doReadModelFromFile(File file)
protected DmnModelInstance doReadModelFromInputStream(InputStream is)
protected void doWriteModelToFile(File file,
DmnModelInstance modelInstance)
protected void doWriteModelToOutputStream(OutputStream os,
DmnModelInstance modelInstance)
protected String doConvertToString(DmnModelInstance modelInstance)
protected void doValidateModel(DmnModelInstance modelInstance)
protected DmnModelInstance doCreateEmptyModel()
protected void doRegisterTypes(org.camunda.bpm.model.xml.ModelBuilder modelBuilder)
public org.camunda.bpm.model.xml.Model getDmnModel()
Model instance to usepublic org.camunda.bpm.model.xml.ModelBuilder getDmnModelBuilder()
public void setDmnModel(org.camunda.bpm.model.xml.Model dmnModel)
dmnModel - the cmmnModel to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||