use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-xml-model by camunda.
the class ChildRelationshipDefinition method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ChildRelationshipDefinition.class, TYPE_NAME_CHILD_RELATIONSHIP_DEFINITION).namespaceUri(MODEL_NAMESPACE).extendsType(RelationshipDefinition.class).instanceProvider(new ModelTypeInstanceProvider<ChildRelationshipDefinition>() {
public ChildRelationshipDefinition newInstance(ModelTypeInstanceContext instanceContext) {
return new ChildRelationshipDefinition(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-xml-model by camunda.
the class Egg method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Egg.class, ELEMENT_NAME_EGG).namespaceUri(MODEL_NAMESPACE).instanceProvider(new ModelElementTypeBuilder.ModelTypeInstanceProvider<Egg>() {
public Egg newInstance(ModelTypeInstanceContext instanceContext) {
return new Egg(instanceContext);
}
});
idAttr = typeBuilder.stringAttribute(ATTRIBUTE_NAME_ID).idAttribute().build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
motherRefChild = sequenceBuilder.element(Mother.class).uriElementReference(Animal.class).build();
guardianRefCollection = sequenceBuilder.elementCollection(Guardian.class).uriElementReferenceCollection(Animal.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-xml-model by camunda.
the class FlightInstructor method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(FlightInstructor.class, ELEMENT_NAME_FLIGHT_INSTRUCTOR).namespaceUri(MODEL_NAMESPACE).instanceProvider(new ModelTypeInstanceProvider<FlightInstructor>() {
public FlightInstructor newInstance(ModelTypeInstanceContext instanceContext) {
return new FlightInstructor(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-xml-model by camunda.
the class Mother method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Mother.class, ELEMENT_NAME_MOTHER).namespaceUri(MODEL_NAMESPACE).extendsType(AnimalReference.class).instanceProvider(new ModelTypeInstanceProvider<Mother>() {
public Mother newInstance(ModelTypeInstanceContext instanceContext) {
return new Mother(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-cmmn-model by camunda.
the class CaseFileItemOnPartImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CaseFileItemOnPart.class, CMMN_ELEMENT_CASE_FILE_ITEM_ON_PART).extendsType(OnPart.class).namespaceUri(CMMN11_NS).instanceProvider(new ModelTypeInstanceProvider<CaseFileItemOnPart>() {
public CaseFileItemOnPart newInstance(ModelTypeInstanceContext instanceContext) {
return new CaseFileItemOnPartImpl(instanceContext);
}
});
sourceRefAttribute = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_SOURCE_REF).idAttributeReference(CaseFileItem.class).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
standardEventChild = sequenceBuilder.element(CaseFileItemTransitionStandardEvent.class).build();
typeBuilder.build();
}
Aggregations