use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-dmn-model by camunda.
the class InputDataImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(InputData.class, DMN_ELEMENT_INPUT_DATA).namespaceUri(DMN11_NS).extendsType(DrgElement.class).instanceProvider(new ModelTypeInstanceProvider<InputData>() {
public InputData newInstance(ModelTypeInstanceContext instanceContext) {
return new InputDataImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
informationItemChild = sequenceBuilder.element(InformationItem.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-dmn-model by camunda.
the class InputDataReferenceImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(InputDataReference.class, DMN_ELEMENT_INPUT_DATA_REFERENCE).namespaceUri(DMN11_NS).extendsType(DmnElementReference.class).instanceProvider(new ModelTypeInstanceProvider<InputDataReference>() {
public InputDataReference newInstance(ModelTypeInstanceContext instanceContext) {
return new InputDataReferenceImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-dmn-model by camunda.
the class InputDecisionReferenceImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(InputDecisionReference.class, DMN_ELEMENT_INPUT_DECISION_REFERENCE).namespaceUri(DMN11_NS).extendsType(DmnElementReference.class).instanceProvider(new ModelTypeInstanceProvider<InputDecisionReference>() {
public InputDecisionReference newInstance(ModelTypeInstanceContext instanceContext) {
return new InputDecisionReferenceImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-dmn-model by camunda.
the class ItemDefinitionReferenceImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ItemDefinitionReference.class, DMN_ELEMENT_ITEM_DEFINITION_REFERENCE).namespaceUri(DMN11_NS).extendsType(DmnElementReference.class).instanceProvider(new ModelTypeInstanceProvider<ItemDefinitionReference>() {
public ItemDefinitionReference newInstance(ModelTypeInstanceContext instanceContext) {
return new ItemDefinitionReferenceImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-dmn-model by camunda.
the class KnowledgeSourceImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(KnowledgeSource.class, DMN_ELEMENT_KNOWLEDGE_SOURCE).namespaceUri(DMN11_NS).extendsType(DrgElement.class).instanceProvider(new ModelTypeInstanceProvider<KnowledgeSource>() {
public KnowledgeSource newInstance(ModelTypeInstanceContext instanceContext) {
return new KnowledgeSourceImpl(instanceContext);
}
});
locationUriAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_LOCATION_URI).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
authorityRequirementCollection = sequenceBuilder.elementCollection(AuthorityRequirement.class).build();
typeChild = sequenceBuilder.element(Type.class).build();
ownerRef = sequenceBuilder.element(OwnerReference.class).uriElementReference(OrganizationUnit.class).build();
typeBuilder.build();
}
Aggregations