protected static ElementReferenceCollection<DataInput, OptionalInputRefs> optionalInputRefsCollection;
protected static ElementReferenceCollection<DataInput, WhileExecutingInputRefs> whileExecutingInputRefsCollection;
protected static ElementReferenceCollection<OutputSet, OutputSetRefs> outputSetOutputSetRefsCollection;
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(InputSet.class, BPMN_ELEMENT_INPUT_SET)
.namespaceUri(BPMN20_NS)
.extendsType(BaseElement.class)
.instanceProvider(new ModelTypeInstanceProvider<InputSet>() {
public InputSet newInstance(ModelTypeInstanceContext instanceContext) {
return new InputSetImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute("name")
.build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
dataInputDataInputRefsCollection = sequenceBuilder.elementCollection(DataInputRefs.class)
.idElementReferenceCollection(DataInput.class)
.build();
optionalInputRefsCollection = sequenceBuilder.elementCollection(OptionalInputRefs.class)
.idElementReferenceCollection(DataInput.class)
.build();
whileExecutingInputRefsCollection = sequenceBuilder.elementCollection(WhileExecutingInputRefs.class)
.idElementReferenceCollection(DataInput.class)
.build();
outputSetOutputSetRefsCollection = sequenceBuilder.elementCollection(OutputSetRefs.class)
.idElementReferenceCollection(OutputSet.class)
.build();
typeBuilder.build();
}