use of org.camunda.bpm.model.cmmn.instance.Property in project camunda-cmmn-model by camunda.
the class PropertyImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Property.class, CMMN_ELEMENT_PROPERTY).namespaceUri(CMMN11_NS).extendsType(CmmnElement.class).instanceProvider(new ModelTypeInstanceProvider<Property>() {
public Property newInstance(ModelTypeInstanceContext instanceContext) {
return new PropertyImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_NAME).build();
typeAttribte = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_TYPE).build();
typeBuilder.build();
}
Aggregations