Namespace org.accordproject.templatemark@0.2.0

Compatible with Concerto versions ^3.0.0. Has 17 declarations.

Concerto JSON AST UML JSON Schema XML Schema GraphQL TypeScript CSharp Java Go OData

Declared Types

      
      import org.accordproject.templatemark@0.2.0.ElementDefinition from /markdown/templatemark@0.2.0.cto
      import org.accordproject.templatemark@0.2.0.VariableDefinition from /markdown/templatemark@0.2.0.cto
      import org.accordproject.templatemark@0.2.0.FormattedVariableDefinition from /markdown/templatemark@0.2.0.cto
      import org.accordproject.templatemark@0.2.0.EnumVariableDefinition from /markdown/templatemark@0.2.0.cto
      import org.accordproject.templatemark@0.2.0.FormulaDefinition from /markdown/templatemark@0.2.0.cto
      import org.accordproject.templatemark@0.2.0.BlockDefinition from /markdown/templatemark@0.2.0.cto
      import org.accordproject.templatemark@0.2.0.ClauseDefinition from /markdown/templatemark@0.2.0.cto
      import org.accordproject.templatemark@0.2.0.ContractDefinition from /markdown/templatemark@0.2.0.cto
      import org.accordproject.templatemark@0.2.0.WithDefinition from /markdown/templatemark@0.2.0.cto
      import org.accordproject.templatemark@0.2.0.ConditionalDefinition from /markdown/templatemark@0.2.0.cto
      import org.accordproject.templatemark@0.2.0.OptionalDefinition from /markdown/templatemark@0.2.0.cto
      import org.accordproject.templatemark@0.2.0.JoinDefinition from /markdown/templatemark@0.2.0.cto
      import org.accordproject.templatemark@0.2.0.ListBlockDefinition from /markdown/templatemark@0.2.0.cto
      import org.accordproject.templatemark@0.2.0.ForeachBlockDefinition from /markdown/templatemark@0.2.0.cto
      import org.accordproject.templatemark@0.2.0.WithBlockDefinition from /markdown/templatemark@0.2.0.cto
      import org.accordproject.templatemark@0.2.0.ConditionalBlockDefinition from /markdown/templatemark@0.2.0.cto
      import org.accordproject.templatemark@0.2.0.OptionalBlockDefinition from /markdown/templatemark@0.2.0.cto
      
      

Dependencies

Source

    /*
 * 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
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
concerto version "^3.0.0"
namespace org.accordproject.templatemark@0.2.0

import org.accordproject.commonmark@0.5.0.Child from https://models.accordproject.org/markdown/commonmark@0.5.0.cto
import concerto.metamodel@0.4.0.Decorator from https://models.accordproject.org/concerto/metamodel@0.4.0.cto

/**
 * A model for Accord Project template extensions to commonmark
 */
abstract concept ElementDefinition extends Child {
  o String name // Add Concerto regex
  o String elementType optional
  o Decorator[] decorators 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 JoinDefinition extends BlockDefinition {
    o String separator
}

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

concept ForeachBlockDefinition extends BlockDefinition {
}

concept WithBlockDefinition extends BlockDefinition {
}

concept ConditionalBlockDefinition extends BlockDefinition {
    o Child[] whenTrue
    o Child[] whenFalse
}

concept OptionalBlockDefinition extends BlockDefinition {
    o Child[] whenSome
    o Child[] whenNone
}