use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class AllowedAnswersImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(AllowedAnswers.class, DMN_ELEMENT_ALLOWED_ANSWERS).namespaceUri(DMN11_NS).instanceProvider(new ModelTypeInstanceProvider<AllowedAnswers>() {
public AllowedAnswers newInstance(ModelTypeInstanceContext instanceContext) {
return new AllowedAnswersImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class AllowedValuesImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(AllowedValues.class, DMN_ELEMENT_ALLOWED_VALUE).namespaceUri(DMN11_NS).extendsType(LiteralExpression.class).instanceProvider(new ModelTypeInstanceProvider<AllowedValues>() {
public AllowedValues newInstance(ModelTypeInstanceContext instanceContext) {
return new AllowedValuesImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class AssociationImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Association.class, DMN_ELEMENT_ASSOCIATION).namespaceUri(DMN11_NS).extendsType(Artifact.class).instanceProvider(new ModelTypeInstanceProvider<Association>() {
public Association newInstance(ModelTypeInstanceContext instanceContext) {
return new AssociationImpl(instanceContext);
}
});
associationDirectionAttribute = typeBuilder.enumAttribute(DMN_ATTRIBUTE_ASSOCIATION_DIRECTION, AssociationDirection.class).defaultValue(AssociationDirection.None).build();
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
sourceRef = sequenceBuilder.element(SourceRef.class).required().uriElementReference(DmnElement.class).build();
targetRef = sequenceBuilder.element(TargetRef.class).required().uriElementReference(DmnElement.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class AuthorityRequirementImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(AuthorityRequirement.class, DMN_ELEMENT_AUTHORITY_REQUIREMENT).namespaceUri(DMN11_NS).instanceProvider(new ModelTypeInstanceProvider<AuthorityRequirement>() {
public AuthorityRequirement newInstance(ModelTypeInstanceContext instanceContext) {
return new AuthorityRequirementImpl(instanceContext);
}
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
requiredDecisionRef = sequenceBuilder.element(RequiredDecisionReference.class).uriElementReference(Decision.class).build();
requiredInputRef = sequenceBuilder.element(RequiredInputReference.class).uriElementReference(InputData.class).build();
requiredAuthorityRef = sequenceBuilder.element(RequiredAuthorityReference.class).uriElementReference(KnowledgeSource.class).build();
typeBuilder.build();
}
use of org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext in project camunda-dmn-model by camunda.
the class ColumnImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Column.class, DMN_ELEMENT_COLUMN).namespaceUri(DMN11_NS).extendsType(InformationItem.class).instanceProvider(new ModelTypeInstanceProvider<Column>() {
public Column newInstance(ModelTypeInstanceContext instanceContext) {
return new ColumnImpl(instanceContext);
}
});
typeBuilder.build();
}
Aggregations