use of org.camunda.bpm.model.bpmn.instance.Extension in project camunda-bpmn-model by camunda.
the class ExtensionImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Extension.class, BPMN_ELEMENT_EXTENSION).namespaceUri(BPMN20_NS).instanceProvider(new ModelTypeInstanceProvider<Extension>() {
public Extension newInstance(ModelTypeInstanceContext instanceContext) {
return new ExtensionImpl(instanceContext);
}
});
// TODO: qname reference extension definition
definitionAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_DEFINITION).build();
mustUnderstandAttribute = typeBuilder.booleanAttribute(BPMN_ATTRIBUTE_MUST_UNDERSTAND).defaultValue(false).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
documentationCollection = sequenceBuilder.elementCollection(Documentation.class).build();
typeBuilder.build();
}
Aggregations