protected static ElementReference<Participant, InnerParticipantRef> innerParticipantRefChild;
protected static ElementReference<Participant, OuterParticipantRef> outerParticipantRefChild;
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ParticipantAssociation.class, BPMN_ELEMENT_PARTICIPANT_ASSOCIATION)
.namespaceUri(BPMN20_NS)
.extendsType(BaseElement.class)
.instanceProvider(new ModelTypeInstanceProvider<ParticipantAssociation>() {
public ParticipantAssociation newInstance(ModelTypeInstanceContext instanceContext) {
return new ParticipantAssociationImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
innerParticipantRefChild = sequenceBuilder.element(InnerParticipantRef.class)
.required()
.qNameElementReference(Participant.class)
.build();
outerParticipantRefChild = sequenceBuilder.element(OuterParticipantRef.class)
.required()
.qNameElementReference(Participant.class)
.build();
typeBuilder.build();
}