use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder in project camunda-dmn-model by camunda.
the class DmnElementImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(DmnElement.class, DMN_ELEMENT).namespaceUri(DMN11_NS).abstractType();
idAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_ID).idAttribute().build();
labelAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_LABEL).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
descriptionChild = sequenceBuilder.element(Description.class).build();
extensionElementsChild = sequenceBuilder.element(ExtensionElements.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder 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.type.ModelElementTypeBuilder 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.type.ModelElementTypeBuilder in project camunda-dmn-model by camunda.
the class ExpressionImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Expression.class, DMN_ELEMENT_EXPRESSION).namespaceUri(DMN11_NS).extendsType(DmnElement.class).abstractType();
typeRefAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_TYPE_REF).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.type.ModelElementTypeBuilder 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();
}
Aggregations