org.finos.legend.pure.generated.Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState_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_generation_ServiceStoreQueryProcessedState_Impl extends Root_meta_pure_metamodel_type_Any_Impl implements Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState
{
public static final String tempTypeName = "ServiceStoreQueryProcessedState";
private static final String tempFullTypeId = "Root::meta::external::store::service::executionPlan::generation::ServiceStoreQueryProcessedState";
private static final KeyIndex KEY_INDEX = keyIndexBuilder(5)
.withKeys(tempFullTypeId, "executionNodes", "paramMap", "recordsToBeRead")
.withKeys("Root::meta::pure::metamodel::type::Any", "classifierGenericType", "elementOverride")
.build();
private CoreInstance classifier;
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState_Impl(String id)
{
super(id);
}
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState_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 "elementOverride":
{
return ValCoreInstance.toCoreInstance(_elementOverride());
}
case "paramMap":
{
return ValCoreInstance.toCoreInstance(_paramMap());
}
case "recordsToBeRead":
{
return ValCoreInstance.toCoreInstance(_recordsToBeRead());
}
default:
{
return super.getValueForMetaPropertyToOne(keyName);
}
}
}
@Override
public ListIterable getValueForMetaPropertyToMany(String keyName)
{
return "executionNodes".equals(keyName) ? ValCoreInstance.toCoreInstances(_executionNodes()) : super.getValueForMetaPropertyToMany(keyName);
}
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState _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_generation_ServiceStoreQueryProcessedState _elementOverride(RichIterable val)
{
return _elementOverride(val.getFirst());
}
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState _elementOverrideRemove()
{
this._elementOverride = null;
return this;
}
public org.finos.legend.pure.runtime.java.compiled.generation.processors.support.map.PureMap _paramMap;
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState _paramMap(org.finos.legend.pure.runtime.java.compiled.generation.processors.support.map.PureMap val)
{
this._paramMap = val;
return this;
}
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState _paramMap(RichIterable val)
{
return _paramMap(val.getFirst());
}
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState _paramMapRemove()
{
this._paramMap = null;
return this;
}
public void _reverse_paramMap(org.finos.legend.pure.runtime.java.compiled.generation.processors.support.map.PureMap val)
{
this._paramMap = val;
}
public void _sever_reverse_paramMap(org.finos.legend.pure.runtime.java.compiled.generation.processors.support.map.PureMap val)
{
this._paramMap = null;
}
public org.finos.legend.pure.runtime.java.compiled.generation.processors.support.map.PureMap _paramMap()
{
return this._elementOverride() == null || !GetterOverrideExecutor.class.isInstance(this._elementOverride()) ? this._paramMap : (org.finos.legend.pure.runtime.java.compiled.generation.processors.support.map.PureMap)((GetterOverrideExecutor)this._elementOverride()).executeToOne(this, "Root::meta::external::store::service::executionPlan::generation::ServiceStoreQueryProcessedState", "paramMap");
}
public RichIterable _executionNodes = Lists.mutable.with();
private Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState _executionNodes(org.finos.legend.pure.generated.Root_meta_pure_executionPlan_ExecutionNode val, boolean add)
{
if (val == null)
{
if (!add)
{
this._executionNodes = Lists.mutable.with();
}
return this;
}
if (add)
{
if (!(this._executionNodes instanceof MutableList))
{
this._executionNodes = this._executionNodes.toList();
}
((MutableList)this._executionNodes).add(val);
}
else
{
this._executionNodes = (val == null ? Lists.mutable.empty() : Lists.mutable.with(val));
}
return this;
}
private Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState _executionNodes(RichIterable val, boolean add)
{
if (add)
{
if (!(this._executionNodes instanceof MutableList))
{
this._executionNodes = this._executionNodes.toList();
}
((MutableList)this._executionNodes).addAllIterable(val);
}
else
{
this._executionNodes = val;
}
return this;
}
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState _executionNodes(RichIterable val)
{
return this._executionNodes(val, false);
}
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState _executionNodesAdd(org.finos.legend.pure.generated.Root_meta_pure_executionPlan_ExecutionNode val)
{
return this._executionNodes(Lists.immutable.with(val), true);
}
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState _executionNodesAddAll(RichIterable val)
{
return this._executionNodes(val, true);
}
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState _executionNodesRemove()
{
this._executionNodes = Lists.mutable.empty();
return this;
}
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState _executionNodesRemove(org.finos.legend.pure.generated.Root_meta_pure_executionPlan_ExecutionNode val)
{
if (!(this._executionNodes instanceof MutableList))
{
this._executionNodes = this._executionNodes.toList();
}
((MutableList)this._executionNodes).remove(val);
return this;
}
public void _reverse_executionNodes(org.finos.legend.pure.generated.Root_meta_pure_executionPlan_ExecutionNode val)
{
if (!(this._executionNodes instanceof MutableList))
{
this._executionNodes = this._executionNodes.toList();
}
((MutableList)this._executionNodes).add(val);
}
public void _sever_reverse_executionNodes(org.finos.legend.pure.generated.Root_meta_pure_executionPlan_ExecutionNode val)
{
if (!(this._executionNodes instanceof MutableList))
{
this._executionNodes = this._executionNodes.toList();
}
((MutableList)this._executionNodes).remove(val);
}
public RichIterable _executionNodes()
{
return this._elementOverride() == null || !GetterOverrideExecutor.class.isInstance(this._elementOverride()) ? this._executionNodes : (RichIterable)((GetterOverrideExecutor)this._elementOverride()).executeToMany(this, "Root::meta::external::store::service::executionPlan::generation::ServiceStoreQueryProcessedState", "executionNodes");
}
public java.lang.Long _recordsToBeRead;
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState _recordsToBeRead(java.lang.Long val)
{
this._recordsToBeRead = val;
return this;
}
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState _recordsToBeRead(RichIterable val)
{
return _recordsToBeRead(val.getFirst());
}
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState _recordsToBeReadRemove()
{
this._recordsToBeRead = 0L;
return this;
}
public java.lang.Long _recordsToBeRead()
{
return this._recordsToBeRead;
}
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState _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_generation_ServiceStoreQueryProcessedState _classifierGenericType(RichIterable val)
{
return _classifierGenericType(val.getFirst());
}
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState _classifierGenericTypeRemove()
{
this._classifierGenericType = null;
return this;
}
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState copy()
{
return new Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState_Impl(this);
}
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState_Impl(Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState src)
{
this("Anonymous_NoCounter");
this.classifier = ((Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState_Impl)src).classifier;
this._elementOverride = (org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.ElementOverride)((Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState_Impl)src)._elementOverride;
this._paramMap = (org.finos.legend.pure.runtime.java.compiled.generation.processors.support.map.PureMap)((Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState_Impl)src)._paramMap;
this._executionNodes = Lists.mutable.ofAll(((Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState_Impl)src)._executionNodes);
this._recordsToBeRead = (java.lang.Long)((Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState_Impl)src)._recordsToBeRead;
this._classifierGenericType = (org.finos.legend.pure.m3.coreinstance.meta.pure.metamodel.type.generics.GenericType)((Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState_Impl)src)._classifierGenericType;
}
@Override
public String getFullSystemPath()
{
return tempFullTypeId;
}
public Root_meta_external_store_service_executionPlan_generation_ServiceStoreQueryProcessedState_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_pure_executionPlan_ExecutionNode o : this._executionNodes())
{
o._validate(goDeep, sourceInformation, es);
}
}
}
return this;
}
}