public class SignalEventDefinitionImpl extends EventDefinitionImpl implements SignalEventDefinition {
protected static AttributeReference<Signal> signalRefAttribute;
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(SignalEventDefinition.class, BPMN_ELEMENT_SIGNAL_EVENT_DEFINITION)
.namespaceUri(BPMN20_NS)
.extendsType(EventDefinition.class)
.instanceProvider(new ModelTypeInstanceProvider<SignalEventDefinition>() {
public SignalEventDefinition newInstance(ModelTypeInstanceContext instanceContext) {
return new SignalEventDefinitionImpl(instanceContext);
}
});
signalRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_SIGNAL_REF)
.qNameAttributeReference(Signal.class)
.build();
typeBuilder.build();
}