use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-xml-model by camunda.
the class FlyingAnimal method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(FlyingAnimal.class, TYPE_NAME_FLYING_ANIMAL).namespaceUri(MODEL_NAMESPACE).extendsType(Animal.class).abstractType();
wingspanAttribute = typeBuilder.doubleAttribute(ATTRIBUTE_NAME_WINGSPAN).build();
SequenceBuilder sequence = typeBuilder.sequence();
flightInstructorChild = sequence.element(FlightInstructor.class).idElementReference(FlyingAnimal.class).build();
flightPartnerRefsColl = sequence.elementCollection(FlightPartnerRef.class).idElementReferenceCollection(FlyingAnimal.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder 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.type.ModelElementTypeBuilder in project camunda-xml-model by camunda.
the class RelationshipDefinition method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(RelationshipDefinition.class, TYPE_NAME_RELATIONSHIP_DEFINITION).namespaceUri(MODEL_NAMESPACE).abstractType();
idAttr = typeBuilder.stringAttribute(ATTRIBUTE_NAME_ID).idAttribute().build();
animalRef = typeBuilder.stringAttribute(ATTRIBUTE_NAME_ANIMAL_REF).idAttributeReference(Animal.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-cmmn-model by camunda.
the class ArtifactImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Artifact.class, CMMN_ELEMENT_ARTIFACT).abstractType().namespaceUri(CMMN11_NS);
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder 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