Namespace org.accordproject.templatemark(0.1.1)

Found 17 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 https://models.accordproject.org/markdown/templatemark@0.1.1.cto
      import org.accordproject.templatemark.VariableDefinition from https://models.accordproject.org/markdown/templatemark@0.1.1.cto
      import org.accordproject.templatemark.FormattedVariableDefinition from https://models.accordproject.org/markdown/templatemark@0.1.1.cto
      import org.accordproject.templatemark.EnumVariableDefinition from https://models.accordproject.org/markdown/templatemark@0.1.1.cto
      import org.accordproject.templatemark.FormulaDefinition from https://models.accordproject.org/markdown/templatemark@0.1.1.cto
      import org.accordproject.templatemark.BlockDefinition from https://models.accordproject.org/markdown/templatemark@0.1.1.cto
      import org.accordproject.templatemark.ClauseDefinition from https://models.accordproject.org/markdown/templatemark@0.1.1.cto
      import org.accordproject.templatemark.ContractDefinition from https://models.accordproject.org/markdown/templatemark@0.1.1.cto
      import org.accordproject.templatemark.WithDefinition from https://models.accordproject.org/markdown/templatemark@0.1.1.cto
      import org.accordproject.templatemark.ConditionalDefinition from https://models.accordproject.org/markdown/templatemark@0.1.1.cto
      import org.accordproject.templatemark.OptionalDefinition from https://models.accordproject.org/markdown/templatemark@0.1.1.cto
      import org.accordproject.templatemark.JoinDefinition from https://models.accordproject.org/markdown/templatemark@0.1.1.cto
      import org.accordproject.templatemark.ListBlockDefinition from https://models.accordproject.org/markdown/templatemark@0.1.1.cto
      import org.accordproject.templatemark.ForeachBlockDefinition from https://models.accordproject.org/markdown/templatemark@0.1.1.cto
      import org.accordproject.templatemark.WithBlockDefinition from https://models.accordproject.org/markdown/templatemark@0.1.1.cto
      import org.accordproject.templatemark.ConditionalBlockDefinition from https://models.accordproject.org/markdown/templatemark@0.1.1.cto
      import org.accordproject.templatemark.OptionalBlockDefinition from https://models.accordproject.org/markdown/templatemark@0.1.1.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.
 */

namespace org.accordproject.templatemark

import org.accordproject.commonmark.Child from https://models.accordproject.org/markdown/commonmark@0.2.0.cto
import concerto.metamodel.Decorator from https://models.accordproject.org/concerto/metamodel.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
}