Namespace org.accordproject.templatemark0.1.0

Compatible with Concerto versions . Has 13 declarations.

Concerto JSON AST PlantUML XML Schema Typescript C# OData JSON Schema GraphQL Java Go Avro Markdown OpenAPI Protobuf Mermaid

Declared Types

      import org.accordproject.templatemark.ElementDefinition from /markdown/templatemark.cto
      import org.accordproject.templatemark.VariableDefinition from /markdown/templatemark.cto
      import org.accordproject.templatemark.FormattedVariableDefinition from /markdown/templatemark.cto
      import org.accordproject.templatemark.EnumVariableDefinition from /markdown/templatemark.cto
      import org.accordproject.templatemark.FormulaDefinition from /markdown/templatemark.cto
      import org.accordproject.templatemark.BlockDefinition from /markdown/templatemark.cto
      import org.accordproject.templatemark.ClauseDefinition from /markdown/templatemark.cto
      import org.accordproject.templatemark.ContractDefinition from /markdown/templatemark.cto
      import org.accordproject.templatemark.WithDefinition from /markdown/templatemark.cto
      import org.accordproject.templatemark.ConditionalDefinition from /markdown/templatemark.cto
      import org.accordproject.templatemark.OptionalDefinition from /markdown/templatemark.cto
      import org.accordproject.templatemark.ListBlockDefinition from /markdown/templatemark.cto
      import org.accordproject.templatemark.JoinDefinition from /markdown/templatemark.cto



 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.

namespace org.accordproject.templatemark

import org.accordproject.commonmark.Child from

 * A model for Accord Project template extensions to commonmark
abstract concept ElementDefinition extends Child {
  o String name // Add Concerto regex
  o String elementType optional

concept VariableDefinition extends ElementDefinition {
  o String identifiedBy optional

concept FormattedVariableDefinition extends VariableDefinition {
  o String format

concept EnumVariableDefinition extends VariableDefinition {
  o String[] enumValues

concept FormulaDefinition extends ElementDefinition {
  o String[] dependencies optional // name of variables on which the formula depends
  o String code // Ergo expression

abstract concept BlockDefinition extends ElementDefinition {

concept ClauseDefinition extends BlockDefinition {

concept ContractDefinition extends BlockDefinition {

concept WithDefinition extends BlockDefinition {

concept ConditionalDefinition extends BlockDefinition {
    o Child[] whenTrue
    o Child[] whenFalse

concept OptionalDefinition extends BlockDefinition {
    o Child[] whenSome
    o Child[] whenNone

concept ListBlockDefinition extends BlockDefinition {
    o String type
    o String tight
    o String start optional
    o String delimiter optional

concept JoinDefinition extends BlockDefinition {
    o String separator