public List<JobType> getJobs() throws BadFieldValueException { List<AbstractField> tmp = getUnqualifiedArrayList(JOB_REF); if (tmp != null) { List<JobType> layers = new ArrayList<>(); for (AbstractField abstractField : tmp) { if (abstractField instanceof JobType) { layers.add((JobType) abstractField); } else { throw new BadFieldValueException("Job expected and " + abstractField.getClass().getName() + " found."); } } return layers; } return null; }
public List<JobType> getJobs() throws BadFieldValueException { List<AbstractField> tmp = getUnqualifiedArrayList(JOB_REF); if (tmp != null) { List<JobType> layers = new ArrayList<JobType>(); for (AbstractField abstractField : tmp) { if (abstractField instanceof JobType) { layers.add((JobType) abstractField); } else { throw new BadFieldValueException("Job expected and " + abstractField.getClass().getName() + " found."); } } return layers; } return null; }
public List<JobType> getJobs() throws BadFieldValueException { List<AbstractField> tmp = getUnqualifiedArrayList(JOB_REF); if (tmp != null) { List<JobType> layers = new ArrayList<>(); for (AbstractField abstractField : tmp) { if (abstractField instanceof JobType) { layers.add((JobType) abstractField); } else { throw new BadFieldValueException("Job expected and " + abstractField.getClass().getName() + " found."); } } return layers; } return null; }