Search in sources :

Example 1 with Description

use of org.camunda.bpm.model.xml.testmodel.instance.Description in project camunda-xml-model by camunda.

the class DomTest method createModel.

private static Object[] createModel() {
    TestModelParser modelParser = new TestModelParser();
    ModelInstance modelInstance = modelParser.getEmptyModel();
    Animals animals = modelInstance.newInstance(Animals.class);
    modelInstance.setDocumentElement(animals);
    Description description = modelInstance.newInstance(Description.class);
    description.getDomElement().addCDataSection("CDATA <test>");
    animals.addChildElement(description);
    return new Object[] { "created", modelInstance, modelParser };
}
Also used : ModelInstance(org.camunda.bpm.model.xml.ModelInstance) Animals(org.camunda.bpm.model.xml.testmodel.instance.Animals) Description(org.camunda.bpm.model.xml.testmodel.instance.Description) TestModelParser(org.camunda.bpm.model.xml.testmodel.TestModelParser)

Aggregations

ModelInstance (org.camunda.bpm.model.xml.ModelInstance)1 TestModelParser (org.camunda.bpm.model.xml.testmodel.TestModelParser)1 Animals (org.camunda.bpm.model.xml.testmodel.instance.Animals)1 Description (org.camunda.bpm.model.xml.testmodel.instance.Description)1