Skip to content

Commit

Permalink
update metamodel
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Selman <[email protected]>
  • Loading branch information
dselman committed Nov 7, 2024
1 parent 31c00c5 commit f37eb81
Showing 1 changed file with 31 additions and 9 deletions.
40 changes: 31 additions & 9 deletions src/concerto/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -73,24 +73,41 @@ abstract concept Declaration {
o Range location optional
}

abstract concept MapKeyType {
o Decorator[] decorators optional
o Range location optional
}

abstract concept MapValueType {
o Decorator[] decorators optional
o Range location optional
}

concept MapDeclaration extends Declaration {
o MapKeyType key
o AggregateValueType value
o MapValueType value
}

concept MapKeyType {
concept StringMapKeyType extends MapKeyType {}
concept DateTimeMapKeyType extends MapKeyType {}

concept ObjectMapKeyType extends MapKeyType {
o TypeIdentifier type
o Decorator[] decorators optional
o Range location optional
}

concept AggregateValueType {
concept BooleanMapValueType extends MapValueType {}
concept DateTimeMapValueType extends MapValueType {}
concept StringMapValueType extends MapValueType {}
concept IntegerMapValueType extends MapValueType {}
concept LongMapValueType extends MapValueType {}
concept DoubleMapValueType extends MapValueType {}

concept ObjectMapValueType extends MapValueType {
o TypeIdentifier type
o Decorator[] decorators optional
o Range location optional
}

concept AggregateRelationshipValueType extends AggregateValueType {
concept RelationshipMapValueType extends MapValueType {
o TypeIdentifier type
}

concept EnumDeclaration extends Declaration {
Expand Down Expand Up @@ -192,6 +209,10 @@ concept LongDomainValidator {
o Long upper optional
}

concept AliasedType{
o String name
o String aliasedName
}
abstract concept Import {
o String namespace
o String uri optional
Expand All @@ -206,6 +227,7 @@ concept ImportType extends Import {

concept ImportTypes extends Import {
o String[] types
o AliasedType[] aliasedTypes optional
}

concept Model {
Expand All @@ -225,7 +247,7 @@ abstract concept ScalarDeclaration extends Declaration {
}

concept BooleanScalar extends ScalarDeclaration {
o Boolean defaultValue
o Boolean defaultValue optional
}

concept IntegerScalar extends ScalarDeclaration {
Expand Down

0 comments on commit f37eb81

Please sign in to comment.