/** * Finds the DataRequestType enum which matches the data-request-type * in the Part's properties. * @param part * @return DataRequestType matching the Part's data-request-type; null if no match exists */ private static DataRequestType getType(final Part part) { final String targetDataRequestType = part.getProperties().getProperty("data-request-type"); for (DataRequestType candidateType : values()) { if (candidateType.dataRequestType.equals(targetDataRequestType)) { return candidateType; } } return null; } }
DataRequestType drt = DataRequestType.getType(part); if (drt != null) { result.put(drt.processPart(this, part, part.getName()), part.getProperties()); isReportProcessed |= (drt == DataRequestType.REPORT); uploadedEntryNames.append(part.getName()).append(" "); DataRequestType.REPORT.processPart(this, possibleUnrecognizedReportPart, possibleUnrecognizedReportPart.getName()); isReportProcessed = true;
DataRequestType drt = DataRequestType.getType(part); if (drt != null) { result.put(drt.processPart(this, part, part.getName()), part.getProperties()); isReportProcessed |= (drt == DataRequestType.REPORT); uploadedEntryNames.append(part.getName()).append(" "); DataRequestType.REPORT.processPart(this, possibleUnrecognizedReportPart, possibleUnrecognizedReportPart.getName()); isReportProcessed = true;
DataRequestType drt = DataRequestType.getType(part); if (drt != null) { result.put(drt.processPart(this, part, part.getName()), part.getProperties()); isReportProcessed |= (drt == DataRequestType.REPORT); uploadedEntryNames.append(part.getName()).append(" "); DataRequestType.REPORT.processPart(this, possibleUnrecognizedReportPart, possibleUnrecognizedReportPart.getName()); isReportProcessed = true;
/** * Finds the DataRequestType enum which matches the data-request-type * in the Part's properties. * @param part * @return DataRequestType matching the Part's data-request-type; null if no match exists */ private static DataRequestType getType(final Part part) { final String targetDataRequestType = part.getProperties().getProperty("data-request-type"); for (DataRequestType candidateType : values()) { if (candidateType.dataRequestType.equals(targetDataRequestType)) { return candidateType; } } return null; } }
/** * Finds the DataRequestType enum which matches the data-request-type * in the Part's properties. * @param part * @return DataRequestType matching the Part's data-request-type; null if no match exists */ private static DataRequestType getType(final Part part) { final String targetDataRequestType = part.getProperties().getProperty("data-request-type"); for (DataRequestType candidateType : values()) { if (candidateType.dataRequestType.equals(targetDataRequestType)) { return candidateType; } } return null; } }