Search in sources :

Example 1 with XStorePropertyMapping

use of org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.xStore.XStorePropertyMapping in project legend-pure by finos.

the class XStoreUnbind method run.

@Override
public void run(XStoreAssociationImplementation instance, MatcherState state, Matcher matcher, ModelRepository modelRepository, Context context) throws PureCompilationException {
    ProcessorSupport processorSupport = state.getProcessorSupport();
    Shared.cleanImportStub(instance._associationCoreInstance(), processorSupport);
    Shared.cleanImportStub(instance._parentCoreInstance(), processorSupport);
    for (PropertyMapping propertyMapping : instance._propertyMappings()) {
        Shared.cleanPropertyStub(propertyMapping._propertyCoreInstance(), processorSupport);
        matcher.fullMatch(((XStorePropertyMapping) propertyMapping)._crossExpression(), state);
        FunctionType functionType = (FunctionType) ImportStub.withImportStubByPass(((XStorePropertyMapping) propertyMapping)._crossExpression()._classifierGenericType()._typeArguments().toList().get(0)._rawTypeCoreInstance(), processorSupport);
        functionType._parametersRemove();
        functionType._functionRemove();
    }
}
Also used : ProcessorSupport(org.finos.legend.pure.m3.navigation.ProcessorSupport) FunctionType(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.FunctionType) PropertyMapping(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.PropertyMapping) XStorePropertyMapping(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.xStore.XStorePropertyMapping)

Example 2 with XStorePropertyMapping

use of org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.xStore.XStorePropertyMapping in project legend-pure by finos.

the class XStoreProcessor method process.

@Override
public void process(XStoreAssociationImplementation instance, ProcessorState state, Matcher matcher, ModelRepository repository, Context context, ProcessorSupport processorSupport) {
    Association association = (Association) ImportStub.withImportStubByPass(instance._associationCoreInstance(), processorSupport);
    Mapping mapping = (Mapping) ImportStub.withImportStubByPass(instance._parentCoreInstance(), processorSupport);
    MapIterable<String, SetImplementation> setImpl = org.finos.legend.pure.m2.dsl.mapping.Mapping.getClassMappingsByIdIncludeEmbedded(mapping, processorSupport);
    int i = 0;
    for (XStorePropertyMapping propertyMapping : (RichIterable<XStorePropertyMapping>) instance._propertyMappings()) {
        PropertyMappingProcessor.processPropertyMapping(propertyMapping, repository, processorSupport, association, instance);
        state.pushVariableContext();
        InstanceSetImplementation sourceSetImpl = (InstanceSetImplementation) MappingValidator.validateId(instance, propertyMapping, setImpl, propertyMapping._sourceSetImplementationId(), "source", processorSupport);
        InstanceSetImplementation targetSetImpl = (InstanceSetImplementation) MappingValidator.validateId(instance, propertyMapping, setImpl, propertyMapping._targetSetImplementationId(), "target", processorSupport);
        Class srcClass = getSetImplementationClass(sourceSetImpl, processorSupport);
        Class targetClass = getSetImplementationClass(targetSetImpl, processorSupport);
        VariableExpression thisParam = this.buildParam("this", srcClass, repository, processorSupport);
        VariableExpression thatParam = this.buildParam("that", targetClass, repository, processorSupport);
        FunctionType fType = (FunctionType) ImportStub.withImportStubByPass(propertyMapping._crossExpression()._classifierGenericType()._typeArguments().collect(new Function<GenericType, CoreInstance>() {

            @Override
            public CoreInstance valueOf(GenericType genericType) {
                return genericType._rawTypeCoreInstance();
            }
        }).toList().get(0), processorSupport);
        fType._parameters(Lists.immutable.withAll((ImmutableList<VariableExpression>) fType._parameters()).newWithAll(Lists.immutable.with(thisParam)));
        fType._parameters(Lists.immutable.withAll((ImmutableList<VariableExpression>) fType._parameters()).newWithAll(Lists.immutable.with(thatParam)));
        matcher.fullMatch(propertyMapping._crossExpression(), state);
        ValueSpecification expressionSequence = propertyMapping._crossExpression()._expressionSequence().toList().getFirst();
        if (expressionSequence != null) {
            PropertyMappingValueSpecificationContext usageContext = (PropertyMappingValueSpecificationContext) processorSupport.newAnonymousCoreInstance(null, M2MappingPaths.PropertyMappingValueSpecificationContext);
            usageContext._offset(i);
            usageContext._propertyMapping(propertyMapping);
            expressionSequence._usageContext(usageContext);
        }
        i++;
        state.popVariableContext();
    }
}
Also used : GenericType(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.generics.GenericType) XStorePropertyMapping(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.xStore.XStorePropertyMapping) FunctionType(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.FunctionType) ValueSpecification(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.valuespecification.ValueSpecification) Mapping(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.Mapping) XStorePropertyMapping(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.xStore.XStorePropertyMapping) VariableExpression(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.valuespecification.VariableExpression) RichIterable(org.eclipse.collections.api.RichIterable) Association(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.relationship.Association) InstanceSetImplementation(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.InstanceSetImplementation) CoreInstance(org.finos.legend.pure.m4.coreinstance.CoreInstance) MappingClass(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.MappingClass) Class(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.Class) InstanceSetImplementation(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.InstanceSetImplementation) SetImplementation(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.SetImplementation) PropertyMappingValueSpecificationContext(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.PropertyMappingValueSpecificationContext)

Example 3 with XStorePropertyMapping

use of org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.xStore.XStorePropertyMapping in project legend-pure by finos.

the class XStoreParser method parseMapping.

public String parseMapping(String content, String id, String extendsId, String setSourceInfo, boolean root, String classPath, String classSourceInfo, String mappingPath, String sourceName, int offsetLine, String importId, ModelRepository repository, Context context) throws PureParserException {
    M3AntlrParser parser = new M3AntlrParser();
    M3ProcessorSupport processorSupport = new M3ProcessorSupport(context, repository);
    String mappingName = mappingPath.replace("::", "_");
    String classMappingName = classPath.replace("::", "_");
    AntlrContextToM3CoreInstance.LambdaContext lambdaContext = new AntlrContextToM3CoreInstance.LambdaContext(mappingName + '_' + classMappingName + (id == null ? "" : '_' + id));
    TemporaryPureSetImplementation arg = parser.parseMappingInfo(content, classPath, lambdaContext, sourceName, offsetLine, importId, repository, processorSupport, context);
    return "^meta::pure::mapping::xStore::XStoreAssociationImplementation" + setSourceInfo + "(" + ((id == null) ? "" : ("id = '" + id + "',")) + "association = ^meta::pure::metamodel::import::ImportStub " + classSourceInfo + " (importGroup=system::imports::" + importId + ", idOrPath='" + classPath + "')," + "parent = ^meta::pure::metamodel::import::ImportStub (importGroup=system::imports::" + importId + ", idOrPath='" + mappingPath + "')," + "propertyMappings = [" + arg.propertyMappings.collect(propertyStubCoreInstancePair -> "^meta::pure::mapping::xStore::XStorePropertyMapping " + propertyStubCoreInstancePair.sourceInformation.toM4String() + " (property='" + propertyStubCoreInstancePair.property + "'," + (propertyStubCoreInstancePair.sourceMappingId == null ? "" : "                                         sourceSetImplementationId='" + propertyStubCoreInstancePair.sourceMappingId + "',") + (propertyStubCoreInstancePair.targetMappingId == null ? "" : "                                         targetSetImplementationId='" + propertyStubCoreInstancePair.targetMappingId + "',") + "                                         crossExpression=^meta::pure::metamodel::function::LambdaFunction " + lambdaContext.getLambdaFunctionUniqueName() + ' ' + propertyStubCoreInstancePair.expression.getSourceInformation().toM4String() + " (" + "                                                           classifierGenericType=^meta::pure::metamodel::type::generics::GenericType " + propertyStubCoreInstancePair.expression.getSourceInformation().toM4String() + " (rawType=meta::pure::metamodel::function::LambdaFunction, typeArguments=^meta::pure::metamodel::type::generics::GenericType " + propertyStubCoreInstancePair.expression.getSourceInformation().toM4String() + " (rawType = ^meta::pure::metamodel::type::FunctionType " + propertyStubCoreInstancePair.expression.getSourceInformation().toM4String() + " ()))," + "                                                           expressionSequence=" + M3AntlrParser.process(propertyStubCoreInstancePair.expression, processorSupport) + ")" + "                                                                   )\n").makeString(",") + "])";
}
Also used : M3M4StateListener(org.finos.legend.pure.m3.statelistener.M3M4StateListener) XStoreProcessor(org.finos.legend.pure.m2.dsl.mapping.serialization.grammar.v1.processor.XStoreProcessor) XStoreUnbind(org.finos.legend.pure.m2.dsl.mapping.serialization.grammar.v1.unloader.XStoreUnbind) ParserLibrary(org.finos.legend.pure.m3.serialization.grammar.ParserLibrary) Lists(org.eclipse.collections.api.factory.Lists) SetIterable(org.eclipse.collections.api.set.SetIterable) MutableList(org.eclipse.collections.api.list.MutableList) Context(org.finos.legend.pure.m3.compiler.Context) MatchRunner(org.finos.legend.pure.m3.tools.matcher.MatchRunner) RichIterable(org.eclipse.collections.api.RichIterable) Parser(org.finos.legend.pure.m3.serialization.grammar.Parser) Sets(org.eclipse.collections.api.factory.Sets) XStoreValidator(org.finos.legend.pure.m2.dsl.mapping.serialization.grammar.v1.validator.XStoreValidator) ModelRepository(org.finos.legend.pure.m4.ModelRepository) PureParserException(org.finos.legend.pure.m4.serialization.grammar.antlr.PureParserException) ExternalReferenceSerializer(org.finos.legend.pure.m3.serialization.runtime.binary.reference.ExternalReferenceSerializer) TemporaryPureSetImplementation(org.finos.legend.pure.m3.serialization.grammar.m3parser.antlr.TemporaryPureSetImplementation) NavigationHandler(org.finos.legend.pure.m3.serialization.runtime.navigation.NavigationHandler) CoreInstance(org.finos.legend.pure.m4.coreinstance.CoreInstance) CoreInstanceFactoryRegistry(org.finos.legend.pure.m3.coreinstance.CoreInstanceFactoryRegistry) SourceState(org.finos.legend.pure.m3.serialization.runtime.SourceState) M3AntlrParser(org.finos.legend.pure.m3.serialization.grammar.m3parser.antlr.M3AntlrParser) M3ProcessorSupport(org.finos.legend.pure.m3.navigation.M3ProcessorSupport) ListIterable(org.eclipse.collections.api.list.ListIterable) AntlrContextToM3CoreInstance(org.finos.legend.pure.m3.serialization.grammar.m3parser.antlr.AntlrContextToM3CoreInstance) M3AntlrParser(org.finos.legend.pure.m3.serialization.grammar.m3parser.antlr.M3AntlrParser) M3ProcessorSupport(org.finos.legend.pure.m3.navigation.M3ProcessorSupport) TemporaryPureSetImplementation(org.finos.legend.pure.m3.serialization.grammar.m3parser.antlr.TemporaryPureSetImplementation) AntlrContextToM3CoreInstance(org.finos.legend.pure.m3.serialization.grammar.m3parser.antlr.AntlrContextToM3CoreInstance)

Example 4 with XStorePropertyMapping

use of org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.xStore.XStorePropertyMapping in project legend-engine by finos.

the class PropertyMappingBuilder method visit.

@Override
public PropertyMapping visit(XStorePropertyMapping propertyMapping) {
    ProcessingContext ctx = new ProcessingContext("Create Xstore Property Mapping");
    InstanceSetImplementation sourceSet = (InstanceSetImplementation) allClassMappings.detect(c -> c._id().equals(propertyMapping.source));
    if (sourceSet == null) {
        throw new EngineException("Can't find class mapping '" + propertyMapping.source + "' in mapping '" + HelperModelBuilder.getElementFullPath(mapping, this.context.pureModel.getExecutionSupport()) + "'", propertyMapping.sourceInformation, EngineErrorType.COMPILATION);
    }
    InstanceSetImplementation targetSet = (InstanceSetImplementation) allClassMappings.detect(c -> c._id().equals(HelperMappingBuilder.getPropertyMappingTargetId(propertyMapping)));
    if (targetSet == null) {
        throw new EngineException("Can't find class mapping '" + propertyMapping.target + "' in mapping '" + HelperModelBuilder.getElementFullPath(mapping, this.context.pureModel.getExecutionSupport()) + "'", propertyMapping.sourceInformation, EngineErrorType.COMPILATION);
    }
    Class thisClass = sourceSet._mappingClass() == null ? sourceSet._class() : sourceSet._mappingClass();
    Class thatClass = targetSet._mappingClass() == null ? targetSet._class() : targetSet._mappingClass();
    org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.multiplicity.Multiplicity oneMultiplicity = this.context.pureModel.getMultiplicity("one");
    org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.valuespecification.VariableExpression thisVariable = new Root_meta_pure_metamodel_valuespecification_VariableExpression_Impl("")._name("this");
    thisVariable._genericType(new Root_meta_pure_metamodel_type_generics_GenericType_Impl("")._rawType(thisClass));
    thisVariable._multiplicity(oneMultiplicity);
    org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.valuespecification.VariableExpression thatVariable = new Root_meta_pure_metamodel_valuespecification_VariableExpression_Impl("")._name("that");
    thatVariable._genericType(new Root_meta_pure_metamodel_type_generics_GenericType_Impl("")._rawType(thatClass));
    thatVariable._multiplicity(oneMultiplicity);
    MutableList<VariableExpression> pureParameters = FastList.newListWith(thisVariable, thatVariable);
    ctx.addInferredVariables("this", thisVariable);
    ctx.addInferredVariables("that", thatVariable);
    MutableList<String> openVariables = Lists.mutable.empty();
    MutableList<org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.valuespecification.ValueSpecification> valueSpecifications = ListIterate.collect(propertyMapping.crossExpression.body, p -> p.accept(new ValueSpecificationBuilder(this.context, openVariables, ctx)));
    MutableList<String> cleanedOpenVariables = openVariables.distinct();
    cleanedOpenVariables.removeAll(pureParameters.collect(e -> e._name()));
    GenericType functionType = PureModel.buildFunctionType(pureParameters, valueSpecifications.getLast()._genericType(), valueSpecifications.getLast()._multiplicity());
    String mappingPath = HelperModelBuilder.getElementFullPath(mapping, this.context.pureModel.getExecutionSupport()).replace("::", "_");
    ctx.flushVariable("that");
    ctx.flushVariable("this");
    if (!valueSpecifications.getLast()._genericType()._rawType().equals(context.pureModel.getType("Boolean")) || !valueSpecifications.getLast()._multiplicity().equals(context.pureModel.getMultiplicity("one"))) {
        throw new EngineException("XStore property mapping function should return 'Boolean[1]'", propertyMapping.crossExpression.body.get(propertyMapping.crossExpression.body.size() - 1).sourceInformation, EngineErrorType.COMPILATION);
    }
    LambdaFunction lambda = new Root_meta_pure_metamodel_function_LambdaFunction_Impl(parent._id() + "." + propertyMapping.property.property, new SourceInformation(mappingPath, 0, 0, 0, 0), null)._classifierGenericType(new Root_meta_pure_metamodel_type_generics_GenericType_Impl("")._rawType(this.context.pureModel.getType("meta::pure::metamodel::function::LambdaFunction"))._typeArguments(FastList.newListWith(functionType)))._openVariables(cleanedOpenVariables)._expressionSequence(valueSpecifications);
    org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.xStore.XStorePropertyMapping xpm = new Root_meta_pure_mapping_xStore_XStorePropertyMapping_Impl("");
    String propertyName = propertyMapping.property.property;
    String edgePointPropertyName = MilestoningFunctions.getEdgePointPropertyName(propertyName);
    Function<Type, Boolean> isTypeTemporalMilestoned = type -> !Milestoning.temporalStereotypes(type._stereotypes()).isEmpty();
    Property property = parent._association()._properties().detect(p -> (propertyName.equals(p.getName())) || (isTypeTemporalMilestoned.apply(p._genericType()._rawType()) && edgePointPropertyName.equals(p.getName())));
    Assert.assertTrue(property != null, () -> "Can't find property '" + propertyName + "' in association '" + (HelperModelBuilder.getElementFullPath(parent._association(), context.pureModel.getExecutionSupport())) + "'", propertyMapping.property.sourceInformation, EngineErrorType.COMPILATION);
    return xpm._property(property)._localMappingProperty(propertyMapping.localMappingProperty != null)._sourceSetImplementationId(propertyMapping.source == null ? parent._id() : propertyMapping.source)._targetSetImplementationId(HelperMappingBuilder.getPropertyMappingTargetId(propertyMapping))._owner(parent)._crossExpression(lambda);
}
Also used : Assert(org.finos.legend.engine.shared.core.operational.Assert) VariableExpression(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.valuespecification.VariableExpression) EngineErrorType(org.finos.legend.engine.protocol.pure.v1.model.context.EngineErrorType) PurePropertyMapping(org.finos.legend.engine.protocol.pure.v1.model.packageableElement.store.modelToModel.mapping.PurePropertyMapping) PropertyMappingsImplementation(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.PropertyMappingsImplementation) Root_meta_pure_mapping_modelToModel_PurePropertyMapping_Impl(org.finos.legend.pure.generated.Root_meta_pure_mapping_modelToModel_PurePropertyMapping_Impl) XStoreAssociationImplementation(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.xStore.XStoreAssociationImplementation) MutableList(org.eclipse.collections.api.list.MutableList) Function(java.util.function.Function) FastList(org.eclipse.collections.impl.list.mutable.FastList) PropertyMapping(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.PropertyMapping) RichIterable(org.eclipse.collections.api.RichIterable) EnumerationMapping(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.EnumerationMapping) Property(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.function.property.Property) Root_meta_pure_metamodel_function_LambdaFunction_Impl(org.finos.legend.pure.generated.Root_meta_pure_metamodel_function_LambdaFunction_Impl) InstanceSetImplementation(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.InstanceSetImplementation) PureInstanceSetImplementation(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.modelToModel.PureInstanceSetImplementation) Root_meta_pure_mapping_aggregationAware_AggregationAwarePropertyMapping_Impl(org.finos.legend.pure.generated.Root_meta_pure_mapping_aggregationAware_AggregationAwarePropertyMapping_Impl) Root_meta_pure_metamodel_type_generics_GenericType_Impl(org.finos.legend.pure.generated.Root_meta_pure_metamodel_type_generics_GenericType_Impl) SourceInformation(org.finos.legend.pure.m4.coreinstance.SourceInformation) MilestoningFunctions(org.finos.legend.pure.m3.compiler.postprocessing.processor.milestoning.MilestoningFunctions) Root_meta_pure_metamodel_valuespecification_VariableExpression_Impl(org.finos.legend.pure.generated.Root_meta_pure_metamodel_valuespecification_VariableExpression_Impl) XStorePropertyMapping(org.finos.legend.engine.protocol.pure.v1.model.packageableElement.mapping.xStore.XStorePropertyMapping) Root_meta_pure_mapping_xStore_XStorePropertyMapping_Impl(org.finos.legend.pure.generated.Root_meta_pure_mapping_xStore_XStorePropertyMapping_Impl) Class(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.Class) ListIterate(org.eclipse.collections.impl.utility.ListIterate) Type(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.Type) AggregationAwarePropertyMapping(org.finos.legend.engine.protocol.pure.v1.model.packageableElement.mapping.aggregationAware.AggregationAwarePropertyMapping) SetImplementation(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.SetImplementation) LambdaFunction(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.function.LambdaFunction) Mapping(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.Mapping) GenericType(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.generics.GenericType) Lists(org.eclipse.collections.impl.factory.Lists) EngineException(org.finos.legend.engine.shared.core.operational.errorManagement.EngineException) Optional(java.util.Optional) PropertyMappingVisitor(org.finos.legend.engine.protocol.pure.v1.model.packageableElement.mapping.PropertyMappingVisitor) VariableExpression(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.valuespecification.VariableExpression) EngineException(org.finos.legend.engine.shared.core.operational.errorManagement.EngineException) Root_meta_pure_mapping_xStore_XStorePropertyMapping_Impl(org.finos.legend.pure.generated.Root_meta_pure_mapping_xStore_XStorePropertyMapping_Impl) InstanceSetImplementation(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.InstanceSetImplementation) PureInstanceSetImplementation(org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.modelToModel.PureInstanceSetImplementation) Root_meta_pure_metamodel_type_generics_GenericType_Impl(org.finos.legend.pure.generated.Root_meta_pure_metamodel_type_generics_GenericType_Impl) Property(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.function.property.Property) Root_meta_pure_metamodel_valuespecification_VariableExpression_Impl(org.finos.legend.pure.generated.Root_meta_pure_metamodel_valuespecification_VariableExpression_Impl) GenericType(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.generics.GenericType) Root_meta_pure_metamodel_function_LambdaFunction_Impl(org.finos.legend.pure.generated.Root_meta_pure_metamodel_function_LambdaFunction_Impl) VariableExpression(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.valuespecification.VariableExpression) LambdaFunction(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.function.LambdaFunction) SourceInformation(org.finos.legend.pure.m4.coreinstance.SourceInformation) EngineErrorType(org.finos.legend.engine.protocol.pure.v1.model.context.EngineErrorType) Type(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.Type) GenericType(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.generics.GenericType) Class(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.Class)

Aggregations

RichIterable (org.eclipse.collections.api.RichIterable)3 MutableList (org.eclipse.collections.api.list.MutableList)2 InstanceSetImplementation (org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.InstanceSetImplementation)2 Mapping (org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.Mapping)2 PropertyMapping (org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.PropertyMapping)2 SetImplementation (org.finos.legend.pure.m3.coreinstance.meta.pure.mapping.SetImplementation)2 Class (org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.Class)2 GenericType (org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.generics.GenericType)2 VariableExpression (org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.valuespecification.VariableExpression)2 CoreInstance (org.finos.legend.pure.m4.coreinstance.CoreInstance)2 Optional (java.util.Optional)1 Function (java.util.function.Function)1 Lists (org.eclipse.collections.api.factory.Lists)1 Sets (org.eclipse.collections.api.factory.Sets)1 ListIterable (org.eclipse.collections.api.list.ListIterable)1 SetIterable (org.eclipse.collections.api.set.SetIterable)1 Lists (org.eclipse.collections.impl.factory.Lists)1 FastList (org.eclipse.collections.impl.list.mutable.FastList)1 ListIterate (org.eclipse.collections.impl.utility.ListIterate)1 EngineErrorType (org.finos.legend.engine.protocol.pure.v1.model.context.EngineErrorType)1