models.autoRealization.Tests.M1.Containment.Containment_ContainingRefs.yaml Maven / Gradle / Ivy
$schema: ../../../../../../com.modelsolv.reprezen.realization/schema/auto-realization-config-schema.json
_type: RealizationModel
_documentation: |
* Root objects and containing references have all properties
* Non-containing references have only key properties.
name: Containment_ContainingRefs
realizationRules:
RootObjects:
_type: RealizationRule
namingPattern: ${TypeName}_Root
appliesTo:
- _type: ContextPattern
level:
_type: RootObjectContext
realization:
_type: ObjectRealizationSpec
propertySet:
_type: InclusivePropertySet
ContainingRefs:
_type: RealizationRule
namingPattern: ${TypeName}_ContainingRef
appliesTo:
- _type: ContextPattern
level:
_type: ReferencePropertyContext
containment: CONTAINING
realization:
_type: ObjectRealizationSpec
propertySet:
_type: InclusivePropertySet
NonContainingRefs:
_type: RealizationRule
namingPattern: ${TypeName}_NonContainingRef
appliesTo:
- _type: ContextPattern
level:
_type: ReferencePropertyContext
containment: NON_CONTAINING
realization:
_type: ObjectRealizationSpec
propertySet:
_type: ExclusivePropertySet
includedProperties:
- _type: PropertyRealization
propertyType:
_type: PrimitivePropertyRealization
isKey: true