public String toString(){
		String str="";
		String tab = "     ";
		str += "ENTITY " + name + " IS";
		
		if (generics.size() > 0){
			str += tab + "\nGENERIC (";
			Generic gen;
			for(int i=0;i<generics.size();i++){
				gen = (Generic) generics.get(i);
				str += "\n" + tab + gen.toString()+";";
			}
			str = str.substring(0, str.length() - 1) + "\n" + tab + ");";
		}
		
		if (ports.size() > 0){
			str += tab +tab+ "\nPORT (";
			Port sgl;
			for(int i=0;i<ports.size();i++){
				sgl = (Port) ports.get(i);
				str += "\n" + tab +tab + sgl.toString()+";";
			}
			str = str.substring(0, str.length() - 1) + "\n" + tab + ");";
		}
		str += "\nEND ENTITY " + name + " ;";
		return str;
	}