// Generated by Haxe 4.3.3
package transform;

import haxe.root.*;

@SuppressWarnings(value={"rawtypes", "unchecked"})
public class DiagramToMLD_supersetToChildren_213__Fun extends haxe.lang.Function
{
	public DiagramToMLD_supersetToChildren_213__Fun(haxe.root.Array<java.lang.String> subsetsNames, model.Relation pr)
	{
		//line 213 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/transform/DiagramToMLD.hx"
		super(1, 0);
		//line 213 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/transform/DiagramToMLD.hx"
		this.subsetsNames = subsetsNames;
		//line 213 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/transform/DiagramToMLD.hx"
		this.pr = pr;
	}
	
	
	@Override public java.lang.Object __hx_invoke1_o(double __fn_float1, java.lang.Object __fn_dyn1)
	{
		//line 213 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/transform/DiagramToMLD.hx"
		model.Relation r = ( (( __fn_dyn1 == haxe.lang.Runtime.undefined )) ? (((model.Relation) (((java.lang.Object) (__fn_float1) )) )) : (((model.Relation) (__fn_dyn1) )) );
		//line 213 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/transform/DiagramToMLD.hx"
		if (( this.subsetsNames.indexOf(r.name, null) == -1 )) 
		{
			//line 214 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/transform/DiagramToMLD.hx"
			return haxe.lang.Runtime.toBool(((java.lang.Boolean) (haxe.root.Lambda.exists(((java.lang.Object) (r.foreignKeys) ), ((haxe.lang.Function) (new transform.DiagramToMLD_supersetToChildren_214__Fun(this.pr)) ))) ));
		}
		else
		{
			//line 213 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/transform/DiagramToMLD.hx"
			return false;
		}
		
	}
	
	
	public haxe.root.Array<java.lang.String> subsetsNames;
	
	public model.Relation pr;
	
}


