Namespace org.accordproject.templatemark(0.1.0)

Found 13 declarations!

Download CTO Download UML Download JSON Schema Download Typescript Download Java Download Go Download XML Schema

Declared Types

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



 * 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