// Generated by Haxe 4.3.3
package model;

import haxe.root.*;

@SuppressWarnings(value={"rawtypes", "unchecked"})
public class ObjectsIterator extends haxe.lang.HxObject
{
	public ObjectsIterator(haxe.lang.EmptyObject empty)
	{
	}
	
	
	public ObjectsIterator(model.Diagram diagram)
	{
		//line 58 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
		model.ObjectsIterator.__hx_ctor_model_ObjectsIterator(this, diagram);
	}
	
	
	protected static void __hx_ctor_model_ObjectsIterator(model.ObjectsIterator __hx_this, model.Diagram diagram)
	{
		//line 59 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
		haxe.root.Array<model.Set> sets = ((haxe.root.Array<model.Set>) (((haxe.root.Array) (haxe.root.Lambda.array(((java.lang.Object) (diagram.sets) ))) )) );
		//line 60 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
		haxe.root.Array<model.Set> associations = ((haxe.root.Array<model.Set>) (((haxe.root.Array) (((haxe.root.Array<model.Association>) (((haxe.root.Array) (haxe.root.Lambda.array(((java.lang.Object) (diagram.associations) ))) )) )) )) );
		//line 61 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
		__hx_this.objects = ((haxe.root.Array<model.Set>) (((haxe.root.Array) (haxe.root.Lambda.concat(((java.lang.Object) (sets) ), ((java.lang.Object) (associations) ))) )) );
		//line 62 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
		__hx_this.i = 0;
	}
	
	
	public haxe.root.Array<model.Set> objects;
	
	public int i;
	
	public boolean hasNext()
	{
		//line 66 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
		return ( this.i != this.objects.length );
	}
	
	
	public model.Set next()
	{
		//line 70 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
		this.i++;
		//line 71 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
		return this.objects.__get(( this.i - 1 ));
	}
	
	
	@Override public double __hx_setField_f(java.lang.String field, double value, boolean handleProperties)
	{
		//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
		{
			//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
			boolean __temp_executeDef1 = true;
			//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
			if (( field != null )) 
			{
				//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
				switch (field.hashCode())
				{
					case 105:
					{
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						if (field.equals("i")) 
						{
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							__temp_executeDef1 = false;
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							this.i = ((int) (value) );
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							return value;
						}
						
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						break;
					}
					
					
				}
				
			}
			
			//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
			if (__temp_executeDef1) 
			{
				//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
				return super.__hx_setField_f(field, value, handleProperties);
			}
			else
			{
				//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
				throw null;
			}
			
		}
		
	}
	
	
	@Override public java.lang.Object __hx_setField(java.lang.String field, java.lang.Object value, boolean handleProperties)
	{
		//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
		{
			//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
			boolean __temp_executeDef1 = true;
			//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
			if (( field != null )) 
			{
				//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
				switch (field.hashCode())
				{
					case 105:
					{
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						if (field.equals("i")) 
						{
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							__temp_executeDef1 = false;
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							this.i = ((int) (haxe.lang.Runtime.toInt(value)) );
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							return value;
						}
						
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						break;
					}
					
					
					case -1659648748:
					{
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						if (field.equals("objects")) 
						{
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							__temp_executeDef1 = false;
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							this.objects = ((haxe.root.Array<model.Set>) (value) );
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							return value;
						}
						
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						break;
					}
					
					
				}
				
			}
			
			//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
			if (__temp_executeDef1) 
			{
				//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
				return super.__hx_setField(field, value, handleProperties);
			}
			else
			{
				//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
				throw null;
			}
			
		}
		
	}
	
	
	@Override public java.lang.Object __hx_getField(java.lang.String field, boolean throwErrors, boolean isCheck, boolean handleProperties)
	{
		//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
		{
			//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
			boolean __temp_executeDef1 = true;
			//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
			if (( field != null )) 
			{
				//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
				switch (field.hashCode())
				{
					case 3377907:
					{
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						if (field.equals("next")) 
						{
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							__temp_executeDef1 = false;
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							return ((haxe.lang.Function) (new haxe.lang.Closure(this, "next")) );
						}
						
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						break;
					}
					
					
					case -1659648748:
					{
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						if (field.equals("objects")) 
						{
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							__temp_executeDef1 = false;
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							return this.objects;
						}
						
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						break;
					}
					
					
					case 696759469:
					{
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						if (field.equals("hasNext")) 
						{
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							__temp_executeDef1 = false;
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							return ((haxe.lang.Function) (new haxe.lang.Closure(this, "hasNext")) );
						}
						
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						break;
					}
					
					
					case 105:
					{
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						if (field.equals("i")) 
						{
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							__temp_executeDef1 = false;
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							return this.i;
						}
						
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						break;
					}
					
					
				}
				
			}
			
			//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
			if (__temp_executeDef1) 
			{
				//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
				return super.__hx_getField(field, throwErrors, isCheck, handleProperties);
			}
			else
			{
				//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
				throw null;
			}
			
		}
		
	}
	
	
	@Override public double __hx_getField_f(java.lang.String field, boolean throwErrors, boolean handleProperties)
	{
		//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
		{
			//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
			boolean __temp_executeDef1 = true;
			//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
			if (( field != null )) 
			{
				//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
				switch (field.hashCode())
				{
					case 105:
					{
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						if (field.equals("i")) 
						{
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							__temp_executeDef1 = false;
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							return ((double) (this.i) );
						}
						
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						break;
					}
					
					
				}
				
			}
			
			//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
			if (__temp_executeDef1) 
			{
				//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
				return super.__hx_getField_f(field, throwErrors, handleProperties);
			}
			else
			{
				//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
				throw null;
			}
			
		}
		
	}
	
	
	@Override public java.lang.Object __hx_invokeField(java.lang.String field, java.lang.Object[] dynargs)
	{
		//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
		{
			//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
			boolean __temp_executeDef1 = true;
			//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
			if (( field != null )) 
			{
				//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
				switch (field.hashCode())
				{
					case 3377907:
					{
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						if (field.equals("next")) 
						{
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							__temp_executeDef1 = false;
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							return this.next();
						}
						
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						break;
					}
					
					
					case 696759469:
					{
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						if (field.equals("hasNext")) 
						{
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							__temp_executeDef1 = false;
							//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
							return this.hasNext();
						}
						
						//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
						break;
					}
					
					
				}
				
			}
			
			//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
			if (__temp_executeDef1) 
			{
				//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
				return super.__hx_invokeField(field, dynargs);
			}
			else
			{
				//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
				throw null;
			}
			
		}
		
	}
	
	
	@Override public void __hx_getFields(haxe.root.Array<java.lang.String> baseArr)
	{
		//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
		baseArr.push("i");
		//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
		baseArr.push("objects");
		//line 54 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/model/Diagram.hx"
		super.__hx_getFields(baseArr);
	}
	
	
}


