use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class ParticipantImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Participant.class, BPMN_ELEMENT_PARTICIPANT).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<Participant>() {
public Participant newInstance(ModelTypeInstanceContext instanceContext) {
return new ParticipantImpl(instanceContext);
}
});
nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build();
processRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_PROCESS_REF).qNameAttributeReference(Process.class).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
interfaceRefCollection = sequenceBuilder.elementCollection(InterfaceRef.class).qNameElementReferenceCollection(Interface.class).build();
endPointRefCollection = sequenceBuilder.elementCollection(EndPointRef.class).qNameElementReferenceCollection(EndPoint.class).build();
participantMultiplicityChild = sequenceBuilder.element(ParticipantMultiplicity.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class IoSpecificationImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(IoSpecification.class, BPMN_ELEMENT_IO_SPECIFICATION).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<IoSpecification>() {
public IoSpecification newInstance(ModelTypeInstanceContext instanceContext) {
return new IoSpecificationImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
dataInputCollection = sequenceBuilder.elementCollection(DataInput.class).build();
dataOutputCollection = sequenceBuilder.elementCollection(DataOutput.class).build();
inputSetCollection = sequenceBuilder.elementCollection(InputSet.class).required().build();
outputSetCollection = sequenceBuilder.elementCollection(OutputSet.class).required().build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class EventImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Event.class, BPMN_ELEMENT_EVENT).namespaceUri(BPMN20_NS).extendsType(FlowNode.class).abstractType();
SequenceBuilder sequence = typeBuilder.sequence();
propertyCollection = sequence.elementCollection(Property.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder 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();
}
use of org.camunda.bpm.model.xml.type.child.SequenceBuilder in project camunda-bpmn-model by camunda.
the class FlowElementImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(FlowElement.class, BPMN_ELEMENT_FLOW_ELEMENT).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).abstractType();
nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
auditingChild = sequenceBuilder.element(Auditing.class).build();
monitoringChild = sequenceBuilder.element(Monitoring.class).build();
categoryValueRefCollection = sequenceBuilder.elementCollection(CategoryValueRef.class).qNameElementReferenceCollection(CategoryValue.class).build();
typeBuilder.build();
}
Aggregations