package automaticResumeParser.service;

import java.util.List;

import automaticResumeParser.entity.ResumeSaveEntity;
import automaticResumeParser.execption.ParserException;
import automaticResumeParser.service.personal.ParseAddressService;
import automaticResumeParser.service.personal.ParseEmailIdService;
import automaticResumeParser.service.personal.ParseGenderOrMaritalService;
import automaticResumeParser.service.personal.ParseNameService;
import automaticResumeParser.service.personal.ParsePinOrPhoneService;
import automaticResumeParser.utilities.AddressUtility;

public class ParsePersonalDetailsService {

	public ResumeSaveEntity parsePersonalDetails(
			ResumeSaveEntity resumeSaveEntity, List<String> wordsList) throws ParserException {

		// ########################## GENDER AND MARITAL STATUS
		// ####################################
		ParseGenderOrMaritalService service = new ParseGenderOrMaritalService();
		resumeSaveEntity = service.parseGenderOrMarital(wordsList,
				resumeSaveEntity);

		// ####################### E-MAIL ID ###################################
		ParseEmailIdService emailIdService = new ParseEmailIdService();
		resumeSaveEntity = emailIdService.parseEmailId(wordsList,
				resumeSaveEntity);
		// ########################## NAME ####################################
		ParseNameService nameService = new ParseNameService();
		resumeSaveEntity = nameService.parseName(wordsList, resumeSaveEntity);
		System.out.println(resumeSaveEntity.getSex());
		System.out.println(resumeSaveEntity.getEmailId());
		// ############################ PINCODE OR PHONE NUMBER
		// ##########################################
		ParsePinOrPhoneService pinOrPhoneService = new ParsePinOrPhoneService();
		// resumeSaveEntity = pinOrPhoneService.parsePinCodeOrPhoneNo(wordsList,
		// resumeSaveEntity);
		// ######################## FIND STATE
		// ##################################
		if (resumeSaveEntity.getPinCode() != null) {
			resumeSaveEntity.setState(AddressUtility.FindState(Integer
					.parseInt(resumeSaveEntity.getPinCode())));
		}
		// ######################################################################
		ParseAddressService addressService = new ParseAddressService();
		resumeSaveEntity = addressService.parseAddress(resumeSaveEntity,
				wordsList);
		return resumeSaveEntity;
	}
}

@@ -115,131 +115,8 @@
 ty;%0A
-import automaticResumeParser.execption.ParserException;%0Aimport automaticResumeParser.service.personal.ParseAddressService;%0A
 impo
@@ -170,32 +170,32 @@
 EmailIdService;%0A
+
 import automatic
@@ -320,133 +320,8 @@
 ice;
-%0Aimport automaticResumeParser.service.personal.ParsePinOrPhoneService;%0Aimport automaticResumeParser.utilities.AddressUtility;
 %0A%0Apu
@@ -474,31 +474,8 @@
 ist)
- throws ParserException
  %7B%0A%0A
@@ -1166,857 +1166,9 @@
 y);%0A
+
 %09
-%09System.out.println(resumeSaveEntity.getSex());%0A%09%09System.out.println(resumeSaveEntity.getEmailId());%0A%09%09// ############################ PINCODE OR PHONE NUMBER%0A%09%09// ##########################################%0A%09%09ParsePinOrPhoneService pinOrPhoneService = new ParsePinOrPhoneService();%0A%09%09// resumeSaveEntity = pinOrPhoneService.parsePinCodeOrPhoneNo(wordsList,%0A%09%09// resumeSaveEntity);%0A%09%09// ######################## FIND STATE%0A%09%09// ##################################%0A%09%09if (resumeSaveEntity.getPinCode() != null) %7B%0A%09%09%09resumeSaveEntity.setState(AddressUtility.FindState(Integer%0A%09%09%09%09%09.parseInt(resumeSaveEntity.getPinCode())));%0A%09%09%7D%0A%09%09// ######################################################################%0A%09%09ParseAddressService addressService = new ParseAddressService();%0A%09%09resumeSaveEntity = addressService.parseAddress(resumeSaveEntity,%0A%09%09%09%09wordsList);
 %0A%09%09r

Update ParsePersonalDetailsService.java