Namespace org.accordproject.ciceromark(0.3.1)

Found 10 declarations!

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

Declared Types

      
      import org.accordproject.ciceromark.Element from https://models.accordproject.org/markdown/ciceromark@0.3.1.cto
      import org.accordproject.ciceromark.Variable from https://models.accordproject.org/markdown/ciceromark@0.3.1.cto
      import org.accordproject.ciceromark.FormattedVariable from https://models.accordproject.org/markdown/ciceromark@0.3.1.cto
      import org.accordproject.ciceromark.EnumVariable from https://models.accordproject.org/markdown/ciceromark@0.3.1.cto
      import org.accordproject.ciceromark.Formula from https://models.accordproject.org/markdown/ciceromark@0.3.1.cto
      import org.accordproject.ciceromark.Block from https://models.accordproject.org/markdown/ciceromark@0.3.1.cto
      import org.accordproject.ciceromark.Clause from https://models.accordproject.org/markdown/ciceromark@0.3.1.cto
      import org.accordproject.ciceromark.Conditional from https://models.accordproject.org/markdown/ciceromark@0.3.1.cto
      import org.accordproject.ciceromark.Optional from https://models.accordproject.org/markdown/ciceromark@0.3.1.cto
      import org.accordproject.ciceromark.ListBlock from https://models.accordproject.org/markdown/ciceromark@0.3.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.ciceromark

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 extensions to commonmark
 */

abstract concept Element extends Child {
  o String name
  o String elementType optional
  o Decorator[] decorators optional
}

concept Variable extends Element {
  o String value
  o String identifiedBy optional
}

concept FormattedVariable extends Variable {
  o String format
}

concept EnumVariable extends Variable {
  o String[] enumValues
}

concept Formula extends Element {
  o String value
  o String[] dependencies optional
  o String code optional
}

abstract concept Block extends Element {
}

concept Clause extends Block {
  o String src optional
}

concept Conditional extends Block {
  o Boolean isTrue
  o Child[] whenTrue
  o Child[] whenFalse
}

concept Optional extends Block {
  o Boolean hasSome
  o Child[] whenSome
  o Child[] whenNone
}

concept ListBlock extends Block {
    o String type
    o String tight
    o String start optional
    o String delimiter optional
}