All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.finos.legend.pure.generated.Root_meta_external_store_service_metamodel_ServiceStore_Impl Maven / Gradle / Ivy

The newest version!
package org.finos.legend.pure.generated;
import org.eclipse.collections.api.RichIterable;
import org.eclipse.collections.api.factory.Lists;
import org.eclipse.collections.api.factory.Maps;
import org.eclipse.collections.api.list.ListIterable;
import org.eclipse.collections.api.list.MutableList;
import org.eclipse.collections.api.map.MutableMap;
import org.finos.legend.pure.m3.execution.ExecutionSupport;
import org.finos.legend.pure.m4.ModelRepository;
import org.finos.legend.pure.m4.coreinstance.CoreInstance;
import org.finos.legend.pure.m4.coreinstance.SourceInformation;
import org.finos.legend.pure.m4.coreinstance.factory.CoreInstanceFactory;
import org.finos.legend.pure.runtime.java.compiled.execution.*;
import org.finos.legend.pure.runtime.java.compiled.execution.sourceInformation.E_;
import org.finos.legend.pure.runtime.java.compiled.generation.processors.support.*;
import org.finos.legend.pure.runtime.java.compiled.generation.processors.support.coreinstance.ReflectiveCoreInstance;
import org.finos.legend.pure.runtime.java.compiled.generation.processors.support.coreinstance.ValCoreInstance;
import org.finos.legend.pure.runtime.java.compiled.generation.processors.support.coreinstance.GetterOverrideExecutor;
import org.finos.legend.pure.runtime.java.compiled.generation.processors.support.function.*;
import org.finos.legend.pure.runtime.java.compiled.generation.processors.support.function.defended.*;
import org.eclipse.collections.api.block.function.Function0;
import org.eclipse.collections.api.block.function.Function;
import org.eclipse.collections.api.block.function.Function2;
import org.finos.legend.pure.runtime.java.compiled.generation.processors.support.map.PureMap;
public class Root_meta_external_store_service_metamodel_ServiceStore_Impl extends Root_meta_pure_store_set_SetBasedStore_Impl implements Root_meta_external_store_service_metamodel_ServiceStore
{
    public static final String tempTypeName = "ServiceStore";
    private static final String tempFullTypeId = "Root::meta::external::store::service::metamodel::ServiceStore";
    private static final KeyIndex KEY_INDEX = keyIndexBuilder(12)
           .withKey("Root::meta::pure::store::set::SetBasedStore", "namespaces")
           .withKey("Root::meta::pure::store::Store", "includes")
           .withKey("Root::meta::pure::metamodel::extension::ElementWithStereotypes", "stereotypes")
           .withKey("Root::meta::pure::metamodel::ModelElement", "name")
           .withKey("Root::meta::pure::metamodel::PackageableElement", "package")
           .withKey("Root::meta::pure::metamodel::extension::ElementWithTaggedValues", "taggedValues")
           .withKeys("Root::meta::pure::metamodel::type::Any", "classifierGenericType", "elementOverride")
           .withKey("Root::meta::pure::metamodel::Referenceable", "referenceUsages")
           .withKeys(tempFullTypeId, "description", "elements", "securitySchemes")
           .build();
    private CoreInstance classifier;
    public Root_meta_external_store_service_metamodel_ServiceStore_Impl(String id)
    {
        super(id);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore_Impl(String name, SourceInformation sourceInformation, CoreInstance classifier)
    {
        this(name == null ? "Anonymous_NoCounter": name);
        this.setSourceInformation(sourceInformation);
        this.classifier = classifier;
    }

    @Override
    public CoreInstance getClassifier()
    {
        return this.classifier;
    }

    @Override
    public RichIterable getKeys()
    {
        return KEY_INDEX.getKeys();
    }

    @Override
    public ListIterable getRealKeyByName(String name)
    {
        return KEY_INDEX.getRealKeyByName(name);
    }

    @Override
    public CoreInstance getValueForMetaPropertyToOne(String keyName)
    {
        switch (keyName)
        {
            case "classifierGenericType":
            {
                return ValCoreInstance.toCoreInstance(_classifierGenericType());
            }
            case "description":
            {
                return ValCoreInstance.toCoreInstance(_description());
            }
            case "elementOverride":
            {
                return ValCoreInstance.toCoreInstance(_elementOverride());
            }
            case "name":
            {
                return ValCoreInstance.toCoreInstance(_name());
            }
            case "package":
            {
                return ValCoreInstance.toCoreInstance(_package());
            }
            case "securitySchemes":
            {
                return ValCoreInstance.toCoreInstance(_securitySchemes());
            }
            default:
            {
                return super.getValueForMetaPropertyToOne(keyName);
            }
        }
    }

    @Override
    public ListIterable getValueForMetaPropertyToMany(String keyName)
    {
        switch (keyName)
        {
            case "elements":
            {
                return ValCoreInstance.toCoreInstances(_elements());
            }
            case "includes":
            {
                return ValCoreInstance.toCoreInstances(_includes());
            }
            case "namespaces":
            {
                return ValCoreInstance.toCoreInstances(_namespaces());
            }
            case "referenceUsages":
            {
                return ValCoreInstance.toCoreInstances(_referenceUsages());
            }
            case "stereotypes":
            {
                return ValCoreInstance.toCoreInstances(_stereotypes());
            }
            case "taggedValues":
            {
                return ValCoreInstance.toCoreInstances(_taggedValues());
            }
            default:
            {
                return super.getValueForMetaPropertyToMany(keyName);
            }
        }
    }

    private Root_meta_external_store_service_metamodel_ServiceStore _taggedValues(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.extension.TaggedValue val, boolean add)
    {
        if (val == null)
        {
            if (!add)
            {
                this._taggedValues = Lists.mutable.with();
            }
            return this;
        }
        if (add)
        {
            if (!(this._taggedValues instanceof MutableList))
            {
                this._taggedValues = this._taggedValues.toList();
            }
            ((MutableList)this._taggedValues).add(val);
        }
        else
        {
            this._taggedValues = (val == null ? Lists.mutable.empty() : Lists.mutable.with(val));
        }
        return this;
    }

    private Root_meta_external_store_service_metamodel_ServiceStore _taggedValues(RichIterable val, boolean add)
    {
        if (add)
        {
            if (!(this._taggedValues instanceof MutableList))
            {
                this._taggedValues = this._taggedValues.toList();
            }
            ((MutableList)this._taggedValues).addAllIterable(val);
        }
        else
        {
            this._taggedValues = val;
        }
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _taggedValues(RichIterable val)
    {
        return this._taggedValues(val, false);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _taggedValuesAdd(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.extension.TaggedValue val)
    {
        return this._taggedValues(Lists.immutable.with(val), true);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _taggedValuesAddAll(RichIterable val)
    {
        return this._taggedValues(val, true);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _taggedValuesRemove()
    {
        this._taggedValues = Lists.mutable.empty();
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _taggedValuesRemove(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.extension.TaggedValue val)
    {
        if (!(this._taggedValues instanceof MutableList))
        {
            this._taggedValues = this._taggedValues.toList();
        }
        ((MutableList)this._taggedValues).remove(val);
        return this;
    }


    public Root_meta_external_store_service_metamodel_ServiceStore _elementOverride(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.ElementOverride val)
    {
        this._elementOverride = val;
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _elementOverride(RichIterable val)
    {
        return _elementOverride(val.getFirst());
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _elementOverrideRemove()
    {
        this._elementOverride = null;
        return this;
    }


    private Root_meta_external_store_service_metamodel_ServiceStore _stereotypes(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.extension.Stereotype val, boolean add)
    {
        if (val == null)
        {
            if (!add)
            {
                this._stereotypes = Lists.mutable.with();
            }
            return this;
        }
        if (add)
        {
            if (!(this._stereotypes instanceof MutableList))
            {
                this._stereotypes = this._stereotypes.toList();
            }
            ((MutableList)this._stereotypes).add(val);
        }
        else
        {
            this._stereotypes = (val == null ? Lists.mutable.empty() : Lists.mutable.with(val));
        }
        return this;
    }

    private Root_meta_external_store_service_metamodel_ServiceStore _stereotypes(RichIterable val, boolean add)
    {
        if (add)
        {
            if (!(this._stereotypes instanceof MutableList))
            {
                this._stereotypes = this._stereotypes.toList();
            }
            ((MutableList)this._stereotypes).addAllIterable(val);
        }
        else
        {
            this._stereotypes = val;
        }
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _stereotypes(RichIterable val)
    {
        return this._stereotypes(val, false);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _stereotypesAdd(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.extension.Stereotype val)
    {
        return this._stereotypes(Lists.immutable.with(val), true);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _stereotypesAddAll(RichIterable val)
    {
        return this._stereotypes(val, true);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _stereotypesRemove()
    {
        this._stereotypes = Lists.mutable.empty();
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _stereotypesRemove(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.extension.Stereotype val)
    {
        if (!(this._stereotypes instanceof MutableList))
        {
            this._stereotypes = this._stereotypes.toList();
        }
        ((MutableList)this._stereotypes).remove(val);
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _stereotypesAddCoreInstance(CoreInstance val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _stereotypesAddAllCoreInstance(RichIterable val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _stereotypesCoreInstance(RichIterable val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _stereotypesRemoveCoreInstance(CoreInstance val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public RichIterable _stereotypesCoreInstance()
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }


    public java.lang.String _description;
    public Root_meta_external_store_service_metamodel_ServiceStore _description(java.lang.String val)
    {
        this._description = val;
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _description(RichIterable val)
    {
        return _description(val.getFirst());
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _descriptionRemove()
    {
        this._description = null;
        return this;
    }


    public java.lang.String _description()
    {
        return this._description;
    }

    public org.finos.legend.pure.runtime.java.compiled.generation.processors.support.map.PureMap _securitySchemes;
    public Root_meta_external_store_service_metamodel_ServiceStore _securitySchemes(org.finos.legend.pure.runtime.java.compiled.generation.processors.support.map.PureMap val)
    {
        this._securitySchemes = val;
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _securitySchemes(RichIterable val)
    {
        return _securitySchemes(val.getFirst());
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _securitySchemesRemove()
    {
        this._securitySchemes = null;
        return this;
    }


    public void _reverse_securitySchemes(org.finos.legend.pure.runtime.java.compiled.generation.processors.support.map.PureMap val)
    {
        this._securitySchemes = val;
    }

    public void _sever_reverse_securitySchemes(org.finos.legend.pure.runtime.java.compiled.generation.processors.support.map.PureMap val)
    {
        this._securitySchemes = null;
    }

    public org.finos.legend.pure.runtime.java.compiled.generation.processors.support.map.PureMap _securitySchemes()
    {
        return this._elementOverride() == null || !GetterOverrideExecutor.class.isInstance(this._elementOverride()) ? this._securitySchemes : (org.finos.legend.pure.runtime.java.compiled.generation.processors.support.map.PureMap)((GetterOverrideExecutor)this._elementOverride()).executeToOne(this, "Root::meta::external::store::service::metamodel::ServiceStore", "securitySchemes");
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _name(java.lang.String val)
    {
        this._name = val;
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _name(RichIterable val)
    {
        return _name(val.getFirst());
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _nameRemove()
    {
        this._name = null;
        return this;
    }


    public Root_meta_external_store_service_metamodel_ServiceStore _package(org.finos.legend.pure.m3.coreinstance.Package val)
    {
        this._package = val;
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _package(RichIterable val)
    {
        return _package(val.getFirst());
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _packageRemove()
    {
        this._package = null;
        return this;
    }


    private Root_meta_external_store_service_metamodel_ServiceStore _includes(org.finos.legend.pure.m3.coreinstance.meta.pure.store.Store val, boolean add)
    {
        if (val == null)
        {
            if (!add)
            {
                this._includes = Lists.mutable.with();
            }
            return this;
        }
        if (add)
        {
            if (!(this._includes instanceof MutableList))
            {
                this._includes = this._includes.toList();
            }
            ((MutableList)this._includes).add(val);
        }
        else
        {
            this._includes = (val == null ? Lists.mutable.empty() : Lists.mutable.with(val));
        }
        return this;
    }

    private Root_meta_external_store_service_metamodel_ServiceStore _includes(RichIterable val, boolean add)
    {
        if (add)
        {
            if (!(this._includes instanceof MutableList))
            {
                this._includes = this._includes.toList();
            }
            ((MutableList)this._includes).addAllIterable(val);
        }
        else
        {
            this._includes = val;
        }
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _includes(RichIterable val)
    {
        return this._includes(val, false);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _includesAdd(org.finos.legend.pure.m3.coreinstance.meta.pure.store.Store val)
    {
        return this._includes(Lists.immutable.with(val), true);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _includesAddAll(RichIterable val)
    {
        return this._includes(val, true);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _includesRemove()
    {
        this._includes = Lists.mutable.empty();
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _includesRemove(org.finos.legend.pure.m3.coreinstance.meta.pure.store.Store val)
    {
        if (!(this._includes instanceof MutableList))
        {
            this._includes = this._includes.toList();
        }
        ((MutableList)this._includes).remove(val);
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _includesAddCoreInstance(CoreInstance val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _includesAddAllCoreInstance(RichIterable val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _includesCoreInstance(RichIterable val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _includesRemoveCoreInstance(CoreInstance val)
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }

    public RichIterable _includesCoreInstance()
    {
        throw new UnsupportedOperationException("Not supported in Compiled Mode at this time");
    }


    private Root_meta_external_store_service_metamodel_ServiceStore _referenceUsages(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.ReferenceUsage val, boolean add)
    {
        if (val == null)
        {
            if (!add)
            {
                this._referenceUsages = Lists.mutable.with();
            }
            return this;
        }
        if (add)
        {
            if (!(this._referenceUsages instanceof MutableList))
            {
                this._referenceUsages = this._referenceUsages.toList();
            }
            ((MutableList)this._referenceUsages).add(val);
        }
        else
        {
            this._referenceUsages = (val == null ? Lists.mutable.empty() : Lists.mutable.with(val));
        }
        return this;
    }

    private Root_meta_external_store_service_metamodel_ServiceStore _referenceUsages(RichIterable val, boolean add)
    {
        if (add)
        {
            if (!(this._referenceUsages instanceof MutableList))
            {
                this._referenceUsages = this._referenceUsages.toList();
            }
            ((MutableList)this._referenceUsages).addAllIterable(val);
        }
        else
        {
            this._referenceUsages = val;
        }
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _referenceUsages(RichIterable val)
    {
        return this._referenceUsages(val, false);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _referenceUsagesAdd(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.ReferenceUsage val)
    {
        return this._referenceUsages(Lists.immutable.with(val), true);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _referenceUsagesAddAll(RichIterable val)
    {
        return this._referenceUsages(val, true);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _referenceUsagesRemove()
    {
        this._referenceUsages = Lists.mutable.empty();
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _referenceUsagesRemove(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.ReferenceUsage val)
    {
        if (!(this._referenceUsages instanceof MutableList))
        {
            this._referenceUsages = this._referenceUsages.toList();
        }
        ((MutableList)this._referenceUsages).remove(val);
        return this;
    }


    public RichIterable _elements = Lists.mutable.with();
    private Root_meta_external_store_service_metamodel_ServiceStore _elements(org.finos.legend.pure.generated.Root_meta_external_store_service_metamodel_ServiceStoreElement val, boolean add)
    {
        if (val == null)
        {
            if (!add)
            {
                this._elements = Lists.mutable.with();
            }
            return this;
        }
        if (add)
        {
            if (!(this._elements instanceof MutableList))
            {
                this._elements = this._elements.toList();
            }
            ((MutableList)this._elements).add(val);
        }
        else
        {
            this._elements = (val == null ? Lists.mutable.empty() : Lists.mutable.with(val));
        }
        return this;
    }

    private Root_meta_external_store_service_metamodel_ServiceStore _elements(RichIterable val, boolean add)
    {
        if (add)
        {
            if (!(this._elements instanceof MutableList))
            {
                this._elements = this._elements.toList();
            }
            ((MutableList)this._elements).addAllIterable(val);
        }
        else
        {
            this._elements = val;
        }
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _elements(RichIterable val)
    {
        return this._elements(val, false);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _elementsAdd(org.finos.legend.pure.generated.Root_meta_external_store_service_metamodel_ServiceStoreElement val)
    {
        return this._elements(Lists.immutable.with(val), true);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _elementsAddAll(RichIterable val)
    {
        return this._elements(val, true);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _elementsRemove()
    {
        this._elements = Lists.mutable.empty();
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _elementsRemove(org.finos.legend.pure.generated.Root_meta_external_store_service_metamodel_ServiceStoreElement val)
    {
        if (!(this._elements instanceof MutableList))
        {
            this._elements = this._elements.toList();
        }
        ((MutableList)this._elements).remove(val);
        return this;
    }


    public void _reverse_elements(org.finos.legend.pure.generated.Root_meta_external_store_service_metamodel_ServiceStoreElement val)
    {
        if (!(this._elements instanceof MutableList))
        {
            this._elements = this._elements.toList();
        }
        ((MutableList)this._elements).add(val);
    }

    public void _sever_reverse_elements(org.finos.legend.pure.generated.Root_meta_external_store_service_metamodel_ServiceStoreElement val)
    {
        if (!(this._elements instanceof MutableList))
        {
            this._elements = this._elements.toList();
        }
        ((MutableList)this._elements).remove(val);
    }

    public RichIterable _elements()
    {
        return this._elementOverride() == null || !GetterOverrideExecutor.class.isInstance(this._elementOverride()) ? this._elements : (RichIterable)((GetterOverrideExecutor)this._elementOverride()).executeToMany(this, "Root::meta::external::store::service::metamodel::ServiceStore", "elements");
    }

    private Root_meta_external_store_service_metamodel_ServiceStore _namespaces(org.finos.legend.pure.m3.coreinstance.meta.pure.store.set.Namespace val, boolean add)
    {
        if (val == null)
        {
            if (!add)
            {
                this._namespaces = Lists.mutable.with();
            }
            return this;
        }
        if (add)
        {
            if (!(this._namespaces instanceof MutableList))
            {
                this._namespaces = this._namespaces.toList();
            }
            ((MutableList)this._namespaces).add(val);
        }
        else
        {
            this._namespaces = (val == null ? Lists.mutable.empty() : Lists.mutable.with(val));
        }
        return this;
    }

    private Root_meta_external_store_service_metamodel_ServiceStore _namespaces(RichIterable val, boolean add)
    {
        if (add)
        {
            if (!(this._namespaces instanceof MutableList))
            {
                this._namespaces = this._namespaces.toList();
            }
            ((MutableList)this._namespaces).addAllIterable(val);
        }
        else
        {
            this._namespaces = val;
        }
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _namespaces(RichIterable val)
    {
        return this._namespaces(val, false);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _namespacesAdd(org.finos.legend.pure.m3.coreinstance.meta.pure.store.set.Namespace val)
    {
        return this._namespaces(Lists.immutable.with(val), true);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _namespacesAddAll(RichIterable val)
    {
        return this._namespaces(val, true);
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _namespacesRemove()
    {
        this._namespaces = Lists.mutable.empty();
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _namespacesRemove(org.finos.legend.pure.m3.coreinstance.meta.pure.store.set.Namespace val)
    {
        if (!(this._namespaces instanceof MutableList))
        {
            this._namespaces = this._namespaces.toList();
        }
        ((MutableList)this._namespaces).remove(val);
        return this;
    }


    public Root_meta_external_store_service_metamodel_ServiceStore _classifierGenericType(org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.generics.GenericType val)
    {
        this._classifierGenericType = val;
        return this;
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _classifierGenericType(RichIterable val)
    {
        return _classifierGenericType(val.getFirst());
    }

    public Root_meta_external_store_service_metamodel_ServiceStore _classifierGenericTypeRemove()
    {
        this._classifierGenericType = null;
        return this;
    }


    public org.finos.legend.pure.generated.Root_meta_external_store_service_metamodel_ServiceStoreElement getServiceStoreElementById(final java.lang.String _id,final ExecutionSupport es)
    {
        return CompiledSupport.toOne(CompiledSupport.toPureCollection(Root_meta_external_store_service_metamodel_ServiceStore_Impl.this._elements()).select(new DefendedPredicate(){public boolean accept(final org.finos.legend.pure.generated.Root_meta_external_store_service_metamodel_ServiceStoreElement _e){return CompiledSupport.equal(_e._id(), _id);}}), new org.finos.legend.pure.m4.coreinstance.SourceInformation("/core_servicestore/metamodel/serviceStore.pure", -1, -1, 26, 49, -1, -1));
    }


    public Root_meta_external_store_service_metamodel_ServiceStore copy()
    {
        return new Root_meta_external_store_service_metamodel_ServiceStore_Impl(this);
    }
    public Root_meta_external_store_service_metamodel_ServiceStore_Impl(Root_meta_external_store_service_metamodel_ServiceStore src)
    {
        this("Anonymous_NoCounter");
        this.classifier = ((Root_meta_external_store_service_metamodel_ServiceStore_Impl)src).classifier;
        this._taggedValues = Lists.mutable.ofAll(((Root_meta_external_store_service_metamodel_ServiceStore_Impl)src)._taggedValues);
        this._elementOverride = (org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.ElementOverride)((Root_meta_external_store_service_metamodel_ServiceStore_Impl)src)._elementOverride;
        this._stereotypes = Lists.mutable.ofAll(((Root_meta_external_store_service_metamodel_ServiceStore_Impl)src)._stereotypes);
        this._description = (java.lang.String)((Root_meta_external_store_service_metamodel_ServiceStore_Impl)src)._description;
        this._securitySchemes = (org.finos.legend.pure.runtime.java.compiled.generation.processors.support.map.PureMap)((Root_meta_external_store_service_metamodel_ServiceStore_Impl)src)._securitySchemes;
        this._name = (java.lang.String)((Root_meta_external_store_service_metamodel_ServiceStore_Impl)src)._name;
        this._package = (org.finos.legend.pure.m3.coreinstance.Package)((Root_meta_external_store_service_metamodel_ServiceStore_Impl)src)._package;
        this._includes = Lists.mutable.ofAll(((Root_meta_external_store_service_metamodel_ServiceStore_Impl)src)._includes);
        this._referenceUsages = Lists.mutable.ofAll(((Root_meta_external_store_service_metamodel_ServiceStore_Impl)src)._referenceUsages);
        this._elements = Lists.mutable.ofAll(((Root_meta_external_store_service_metamodel_ServiceStore_Impl)src)._elements);
        this._namespaces = Lists.mutable.ofAll(((Root_meta_external_store_service_metamodel_ServiceStore_Impl)src)._namespaces);
        this._classifierGenericType = (org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.generics.GenericType)((Root_meta_external_store_service_metamodel_ServiceStore_Impl)src)._classifierGenericType;
    }
    @Override
    public String getFullSystemPath()
    {
         return tempFullTypeId;
    }
    public Root_meta_external_store_service_metamodel_ServiceStore_Impl _validate(boolean goDeep, org.finos.legend.pure.m4.coreinstance.SourceInformation sourceInformation, final ExecutionSupport es)
    {
        if (!this.hasCompileState(CompiledSupport.CONSTRAINTS_VALIDATED))
        {
            this.addCompileState(CompiledSupport.CONSTRAINTS_VALIDATED);
            if (goDeep)
            {
                for (org.finos.legend.pure.generated.Root_meta_external_store_service_metamodel_ServiceStoreElement o : this._elements())
                {
                    o._validate(goDeep, sourceInformation, es);
                }
            }
        }
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy