/** * Utility method to add fields to an ISAFieldMapping object * * @param fieldsToMapTo - Array of MappingField objects to be mapped to * @param type - type of mapping, e.g. date, unit, field or provider from ISAFieldMapping public * static integers. * @param currentMapping - current mapping being dealt with. */ private void processFieldMappings( MappedField[] fieldsToMapTo, int type, ISAFieldMapping currentMapping) { for (MappedField mf : fieldsToMapTo) { currentMapping.addToISAField( new ISAField(MappingTypes.resolveTypeFromString(mf.getType().toString()), mf.getValue()), type); } }