src/main/java/seedu/address/logic/parser/job/AddJobParser.java
@Override
    public AddJob parse(String args) throws ParseException {
        ArgumentMultimap argMultimap =
                ArgumentTokenizer.tokenize(args, PREFIX_JOBTITLE, PREFIX_COMPANY_NAME,
                        PREFIX_ADDRESS, PREFIX_QUALIFICATION,
                        PREFIX_JOB_POSITION, PREFIX_SALARY
                );

        if (!arePrefixesPresent(argMultimap, PREFIX_JOBTITLE, PREFIX_COMPANY_NAME, PREFIX_ADDRESS, PREFIX_QUALIFICATION,
                PREFIX_JOB_POSITION, PREFIX_SALARY)
                || !argMultimap.getPreamble().isEmpty()) {
            throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, AddJob.MESSAGE_USAGE));
        }

        JobTitle jobTitle = ParserUtil.parseJobTitle(argMultimap.getValue(PREFIX_JOBTITLE).get());
        CompanyName company = ParserUtil.parseCompanyName(argMultimap.getValue(PREFIX_COMPANY_NAME).get());
        Address address = ParserUtil.parseAddress(argMultimap.getValue(PREFIX_ADDRESS).get());
        Qualification qualification = ParserUtil.parseQualification(argMultimap.getValue(PREFIX_QUALIFICATION).get());
        Position position = ParserUtil.parsePosition(argMultimap.getValue(PREFIX_JOB_POSITION).get());
        Salary salary = ParserUtil.parseSalary(argMultimap.getValue(PREFIX_SALARY).get());

        Job job = new Job(jobTitle, company, address,
                qualification, position, salary
        );

        return new AddJob(job);
    }
/**
     * Parses the given {@code String} of arguments in the context of the AddJob
     * and returns an AddJob object for execution.
     * @throws ParseException if the user input does not conform the expected format
     */
Parses the given  String of arguments in the context of the AddJob
and returns an AddJob object for execution.
@throws ParseException if the user input does not conform the expected format
Parses the given String of arguments in the context of the AddJob and returns an AddJob object for execution . @throws ParseException if the user input does not conform the expected format
@Override
    public AddJob parse(String args) throws ParseException {
        ArgumentMultimap argMultimap =
                ArgumentTokenizer.tokenize(args, PREFIX_JOBTITLE, PREFIX_COMPANY_NAME,
                        PREFIX_ADDRESS, PREFIX_QUALIFICATION,
                        PREFIX_JOB_POSITION, PREFIX_SALARY
                );
        if (!arePrefixesPresent(argMultimap, PREFIX_JOBTITLE, PREFIX_COMPANY_NAME, PREFIX_ADDRESS, PREFIX_QUALIFICATION,
                PREFIX_JOB_POSITION, PREFIX_SALARY)
                || !argMultimap.getPreamble().isEmpty()) {
            throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, AddJob.MESSAGE_USAGE));
        }
        JobTitle jobTitle = ParserUtil.parseJobTitle(argMultimap.getValue(PREFIX_JOBTITLE).get());
        CompanyName company = ParserUtil.parseCompanyName(argMultimap.getValue(PREFIX_COMPANY_NAME).get());
        Address address = ParserUtil.parseAddress(argMultimap.getValue(PREFIX_ADDRESS).get());
        Qualification qualification = ParserUtil.parseQualification(argMultimap.getValue(PREFIX_QUALIFICATION).get());
        Position position = ParserUtil.parsePosition(argMultimap.getValue(PREFIX_JOB_POSITION).get());
        Salary salary = ParserUtil.parseSalary(argMultimap.getValue(PREFIX_SALARY).get());
        Job job = new Job(jobTitle, company, address,
                qualification, position, salary
        );
        return new AddJob(job);
    }
@ Override public AddJob parse ( String args ) throws ParseException { ArgumentMultimap argMultimap = ArgumentTokenizer . tokenize ( args , PREFIX_JOBTITLE , PREFIX_COMPANY_NAME , PREFIX_ADDRESS , PREFIX_QUALIFICATION , PREFIX_JOB_POSITION , PREFIX_SALARY ) ; if ( ! arePrefixesPresent ( argMultimap , PREFIX_JOBTITLE , PREFIX_COMPANY_NAME , PREFIX_ADDRESS , PREFIX_QUALIFICATION , PREFIX_JOB_POSITION , PREFIX_SALARY ) || ! argMultimap . getPreamble ( ) . isEmpty ( ) ) { throw new ParseException ( String . format ( MESSAGE_INVALID_COMMAND_FORMAT , AddJob . MESSAGE_USAGE ) ) ; } JobTitle jobTitle = ParserUtil . parseJobTitle ( argMultimap . getValue ( PREFIX_JOBTITLE ) . get ( ) ) ; CompanyName company = ParserUtil . parseCompanyName ( argMultimap . getValue ( PREFIX_COMPANY_NAME ) . get ( ) ) ; Address address = ParserUtil . parseAddress ( argMultimap . getValue ( PREFIX_ADDRESS ) . get ( ) ) ; Qualification qualification = ParserUtil . parseQualification ( argMultimap . getValue ( PREFIX_QUALIFICATION ) . get ( ) ) ; Position position = ParserUtil . parsePosition ( argMultimap . getValue ( PREFIX_JOB_POSITION ) . get ( ) ) ; Salary salary = ParserUtil . parseSalary ( argMultimap . getValue ( PREFIX_SALARY ) . get ( ) ) ; Job job = new Job ( jobTitle , company , address , qualification , position , salary ) ; return new AddJob ( job ) ; }
Parses the given {@code String} of arguments in the context of the AddJob
 and returns an AddJob object for execution.
Parses the given { @code String } of arguments in the context of the AddJob and returns an AddJob object for execution .