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

org.finos.legend.pure.generated.Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement_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.*;
public class Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement_Impl extends Root_meta_external_store_service_executionPlan_nodes_AuthenticationSchemeRequirement_Impl implements Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement
{
    public static final String tempTypeName = "SingleAuthenticationSchemeRequirement";
    private static final String tempFullTypeId = "Root::meta::external::store::service::executionPlan::nodes::SingleAuthenticationSchemeRequirement";
    private static final KeyIndex KEY_INDEX = keyIndexBuilder(4)
           .withKeys("Root::meta::pure::metamodel::type::Any", "classifierGenericType", "elementOverride")
           .withKeys(tempFullTypeId, "authenticationSpecification", "securityScheme")
           .build();
    private CoreInstance classifier;
    public Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement_Impl(String id)
    {
        super(id);
    }

    public Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement_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 "authenticationSpecification":
            {
                return ValCoreInstance.toCoreInstance(_authenticationSpecification());
            }
            case "classifierGenericType":
            {
                return ValCoreInstance.toCoreInstance(_classifierGenericType());
            }
            case "elementOverride":
            {
                return ValCoreInstance.toCoreInstance(_elementOverride());
            }
            case "securityScheme":
            {
                return ValCoreInstance.toCoreInstance(_securityScheme());
            }
            default:
            {
                return super.getValueForMetaPropertyToOne(keyName);
            }
        }
    }

    public org.finos.legend.pure.generated.Root_meta_external_store_service_metamodel_SecurityScheme _securityScheme;
    public Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement _securityScheme(org.finos.legend.pure.generated.Root_meta_external_store_service_metamodel_SecurityScheme val)
    {
        this._securityScheme = val;
        return this;
    }

    public Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement _securityScheme(RichIterable val)
    {
        return _securityScheme(val.getFirst());
    }

    public Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement _securitySchemeRemove()
    {
        this._securityScheme = null;
        return this;
    }


    public void _reverse_securityScheme(org.finos.legend.pure.generated.Root_meta_external_store_service_metamodel_SecurityScheme val)
    {
        this._securityScheme = val;
    }

    public void _sever_reverse_securityScheme(org.finos.legend.pure.generated.Root_meta_external_store_service_metamodel_SecurityScheme val)
    {
        this._securityScheme = null;
    }

    public org.finos.legend.pure.generated.Root_meta_external_store_service_metamodel_SecurityScheme _securityScheme()
    {
        return this._elementOverride() == null || !GetterOverrideExecutor.class.isInstance(this._elementOverride()) ? this._securityScheme : (org.finos.legend.pure.generated.Root_meta_external_store_service_metamodel_SecurityScheme)((GetterOverrideExecutor)this._elementOverride()).executeToOne(this, "Root::meta::external::store::service::executionPlan::nodes::SingleAuthenticationSchemeRequirement", "securityScheme");
    }

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

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

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


    public org.finos.legend.pure.generated.Root_meta_pure_runtime_connection_authentication_AuthenticationSpecification _authenticationSpecification;
    public Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement _authenticationSpecification(org.finos.legend.pure.generated.Root_meta_pure_runtime_connection_authentication_AuthenticationSpecification val)
    {
        this._authenticationSpecification = val;
        return this;
    }

    public Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement _authenticationSpecification(RichIterable val)
    {
        return _authenticationSpecification(val.getFirst());
    }

    public Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement _authenticationSpecificationRemove()
    {
        this._authenticationSpecification = null;
        return this;
    }


    public void _reverse_authenticationSpecification(org.finos.legend.pure.generated.Root_meta_pure_runtime_connection_authentication_AuthenticationSpecification val)
    {
        this._authenticationSpecification = val;
    }

    public void _sever_reverse_authenticationSpecification(org.finos.legend.pure.generated.Root_meta_pure_runtime_connection_authentication_AuthenticationSpecification val)
    {
        this._authenticationSpecification = null;
    }

    public org.finos.legend.pure.generated.Root_meta_pure_runtime_connection_authentication_AuthenticationSpecification _authenticationSpecification()
    {
        return this._elementOverride() == null || !GetterOverrideExecutor.class.isInstance(this._elementOverride()) ? this._authenticationSpecification : (org.finos.legend.pure.generated.Root_meta_pure_runtime_connection_authentication_AuthenticationSpecification)((GetterOverrideExecutor)this._elementOverride()).executeToOne(this, "Root::meta::external::store::service::executionPlan::nodes::SingleAuthenticationSchemeRequirement", "authenticationSpecification");
    }

    public Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement _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_executionPlan_nodes_SingleAuthenticationSchemeRequirement _classifierGenericType(RichIterable val)
    {
        return _classifierGenericType(val.getFirst());
    }

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


    
    public Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement copy()
    {
        return new Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement_Impl(this);
    }
    public Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement_Impl(Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement src)
    {
        this("Anonymous_NoCounter");
        this.classifier = ((Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement_Impl)src).classifier;
        this._securityScheme = (org.finos.legend.pure.generated.Root_meta_external_store_service_metamodel_SecurityScheme)((Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement_Impl)src)._securityScheme;
        this._elementOverride = (org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.ElementOverride)((Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement_Impl)src)._elementOverride;
        this._authenticationSpecification = (org.finos.legend.pure.generated.Root_meta_pure_runtime_connection_authentication_AuthenticationSpecification)((Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement_Impl)src)._authenticationSpecification;
        this._classifierGenericType = (org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.generics.GenericType)((Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement_Impl)src)._classifierGenericType;
    }
    @Override
    public String getFullSystemPath()
    {
         return tempFullTypeId;
    }
    public Root_meta_external_store_service_executionPlan_nodes_SingleAuthenticationSchemeRequirement_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)
            {
                if (this._securityScheme() != null){this._securityScheme()._validate(goDeep, sourceInformation, es);}
                if (this._authenticationSpecification() != null){this._authenticationSpecification()._validate(goDeep, sourceInformation, es);}
            }
        }
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy