String xmlstr = Util.getFileContentAsString(xml); Element doc = Util.parseDocument(xmlstr.trim()); this.metadata = new UseMetadata(); Element element = null; String value = null, name = null; if (UseMetadata.FLAGS.equals(name)) { try { this.metadata.setSearchflags(Integer.parseInt(value)); } catch (NumberFormatException nfe) { this.metadata.setRunAtDate(value); continue; this.metadata.setDescription(value); continue; this.metadata.setBaselineLocation(value); continue; this.metadata.setReportLocation(value); continue; this.metadata.setScopePattern(value); continue; this.metadata.setReferencePattern(value); continue;
buffer.append(OPEN_TR); buffer.append(openTD(14)).append(SearchMessages.UseReportConverter_scan_date).append(CLOSE_TD); buffer.append(openTD(36)).append(this.metadata.getRunAtDate()).append(CLOSE_TD); buffer.append(CLOSE_TR); buffer.append(OPEN_TR); buffer.append(openTD(14)).append(SearchMessages.UseReportConverter_description).append(CLOSE_TD); String desc = this.metadata.getDescription(); buffer.append(openTD(36)).append((desc != null ? desc : SearchMessages.UseReportConverter_none)).append(CLOSE_TD); buffer.append(CLOSE_TR); buffer.append(OPEN_TR); buffer.append(openTD(14)).append(SearchMessages.UseReportConverter_includes_API_refs).append(CLOSE_TD); buffer.append(openTD(36)).append(this.metadata.includesAPI() ? SearchMessages.UseReportConverter_includes_true : SearchMessages.UseReportConverter_includes_false).append(CLOSE_TD); buffer.append(CLOSE_TR); buffer.append(OPEN_TR); buffer.append(openTD(14)).append(SearchMessages.UseReportConverter_includes_internal_refs).append(CLOSE_TD); buffer.append(openTD(36)).append(this.metadata.includesInternal() ? SearchMessages.UseReportConverter_includes_true : SearchMessages.UseReportConverter_includes_false).append(CLOSE_TD); buffer.append(CLOSE_TR); buffer.append(OPEN_TR); buffer.append(openTD(14)).append(SearchMessages.UseReportConverter_includes_illegal_use).append(CLOSE_TD); buffer.append(openTD(36)).append(this.metadata.includesIllegalUse() ? SearchMessages.UseReportConverter_includes_true : SearchMessages.UseReportConverter_includes_false).append(CLOSE_TD); buffer.append(CLOSE_TR); buffer.append(OPEN_TR); buffer.append(openTD(14)).append(SearchMessages.UseReportConverter_baseline_loc).append(CLOSE_TD); buffer.append(openTD(36)).append(TextProcessor.process(this.metadata.getBaselineLocation())).append(CLOSE_TD); buffer.append(CLOSE_TR); buffer.append(OPEN_TR); buffer.append(openTD(14)).append(SearchMessages.UseReportConverter_scope_pattern).append(CLOSE_TD); buffer.append(openTD(36)).append(this.metadata.getScopePattern()).append(CLOSE_TD); buffer.append(CLOSE_TR);
scrubReportLocation(new File(xmlPath), localmonitor.split(1)); UseMetadata data = new UseMetadata(kinds, this.configuration.getAttribute(ApiUseLaunchDelegate.TARGET_SCOPE, (String) null), this.configuration.getAttribute(ApiUseLaunchDelegate.SEARCH_SCOPE, (String) null), baseline.getLocation(), xmlPath, sapi, sinternal, sjars, this.configuration.getAttribute(ApiUseLaunchDelegate.FILTER_ROOT, (String) null), DateFormat.getDateTimeInstance().format(Calendar.getInstance().getTime()), this.configuration.getAttribute(ApiUseLaunchDelegate.DESCRIPTION, (String) null)); IApiSearchReporter reporter = new XmlSearchReporter(xmlPath, false); try {
void writeFilterCount(StringBuilder buffer) throws Exception { boolean isAdditionFilterProvided = this.metadata.getAdditionalfilters() != null && !this.metadata.getAdditionalfilters().isEmpty(); if (this.filteredCount != -1 && isAdditionFilterProvided) { buffer.append(OPEN_H4).append(SearchMessages.UseReportConverter_filter_information).append(CLOSE_H4); buffer.append(OPEN_TR); buffer.append(openTD(14)).append(SearchMessages.UseReportConverter_number_filtered).append(CLOSE_TD); buffer.append(openTD(36)).append(this.filteredCount).append(CLOSE_TD); buffer.append(CLOSE_TR); } } /**
scrubReportLocation(new File(xmlPath), localmonitor.newChild(1)); UseMetadata data = new UseMetadata( kinds, this.configuration.getAttribute(ApiUseLaunchDelegate.TARGET_SCOPE, (String)null),