use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class DmnElementReferenceImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(DmnElementReference.class, DMN_ELEMENT_REFERENCE).namespaceUri(DMN11_NS).instanceProvider(new ModelTypeInstanceProvider<DmnElementReference>() {
public DmnElementReference newInstance(ModelTypeInstanceContext instanceContext) {
return new DmnElementReferenceImpl(instanceContext);
}
});
hrefAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_HREF).required().build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class DrgElementReferenceImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(DrgElementReference.class, DMN_ELEMENT_DRG_ELEMENT_REFERENCE).namespaceUri(DMN11_NS).extendsType(DmnElementReference.class).instanceProvider(new ModelTypeInstanceProvider<DrgElementReference>() {
public DrgElementReference newInstance(ModelTypeInstanceContext instanceContext) {
return new DrgElementReferenceImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class ExtensionElementsImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ExtensionElements.class, DMN_ELEMENT_EXTENSION_ELEMENTS).namespaceUri(DMN11_NS).instanceProvider(new ModelElementTypeBuilder.ModelTypeInstanceProvider<ExtensionElements>() {
public ExtensionElements newInstance(ModelTypeInstanceContext instanceContext) {
return new ExtensionElementsImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class ImpactingDecisionReferenceImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ImpactingDecisionReference.class, DMN_ELEMENT_IMPACTING_DECISION).namespaceUri(DMN11_NS).extendsType(DmnElementReference.class).instanceProvider(new ModelTypeInstanceProvider<ImpactingDecisionReference>() {
public ImpactingDecisionReference newInstance(ModelTypeInstanceContext instanceContext) {
return new ImpactingDecisionReferenceImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class ImportImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Import.class, DMN_ELEMENT_IMPORT).namespaceUri(DMN11_NS).instanceProvider(new ModelTypeInstanceProvider<Import>() {
public Import newInstance(ModelTypeInstanceContext instanceContext) {
return new ImportImpl(instanceContext);
}
});
namespaceAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_NAMESPACE).required().build();
locationUriAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_LOCATION_URI).build();
importTypeAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_IMPORT_TYPE).required().build();
typeBuilder.build();
}
Aggregations