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 };
}
Aggregations