package com.agco.json.generate;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

import com.agco.json.generate.helper.JsonSchemaHelper;
import com.agco.json.generate.integration.BKW01InventoryData;
import com.agco.json.generate.integration.BKW02CustomerOrder;
import com.agco.json.generate.integration.BKW03PurchaseOrder;
import com.agco.json.generate.integration.BKW04Items;
import com.agco.json.generate.integration.BKW05Franchise;
import com.agco.json.generate.integration.BKW06PriceList;
import com.agco.json.generate.integration.BKW07SuperSession;
import com.agco.json.generate.integration.BKW08Muo;
import com.agco.json.generate.integration.BKW13OrderRecommendation;

public class JsonGenerateMain {

	public static void main(String[] args) {
		
		generateSchema();
		generateJson();
	}

	private static void generateJson() {		
		List<Object> objJsons = new LinkedList<Object>();
		
		objJsons.add(new BKW01InventoryData());
		objJsons.add(new BKW02CustomerOrder());
		objJsons.add(new BKW03PurchaseOrder());
		
		objJsons.add(new BKW04Items());
		objJsons.add(new BKW05Franchise());
		objJsons.add(new BKW06PriceList());
		
		objJsons.add(new BKW07SuperSession());
		objJsons.add(new BKW08Muo());
		objJsons.add(new BKW13OrderRecommendation());
		
		JsonSchemaHelper.createJson(objJsons);

	}

	private static void generateSchema() {
		@SuppressWarnings("rawtypes")
		List<Class> listOfClass = new ArrayList<Class>();
		
		listOfClass.add(BKW01InventoryData.class);
		listOfClass.add(BKW02CustomerOrder.class);
		listOfClass.add(BKW03PurchaseOrder.class);
		listOfClass.add(BKW04Items.class);
		listOfClass.add(BKW05Franchise.class);
		listOfClass.add(BKW06PriceList.class);		
		listOfClass.add(BKW07SuperSession.class);
		listOfClass.add(BKW08Muo.class);
		listOfClass.add(BKW13OrderRecommendation.class);

		try {
			JsonSchemaHelper.createSchema(listOfClass);
		} catch (Exception e) {
			System.out.println(e.toString());
		}
	}

}

@@ -1037,27 +1037,24 @@
 seOrder());%0A
-%09%09%0A
 %09%09objJsons.a
@@ -1146,25 +1146,24 @@
 riceList());
-%0A
 %09%09%0A%09%09objJson

fix merge