コード例 #1
0
  /**
   * _more_
   *
   * @param properties _more_
   * @return _more_
   */
  public String makePropertiesString(Hashtable properties) {
    StringBuffer sb = new StringBuffer();
    for (java.util.Enumeration keys = properties.keys(); keys.hasMoreElements(); ) {
      Object key = keys.nextElement();
      sb.append(key);
      sb.append("=");
      sb.append(properties.get(key));
      sb.append("\n");
    }

    return sb.toString();
  }
コード例 #2
0
 /**
  * _more_
  *
  * @param request _more_
  * @param entry _more_
  * @param tabTitles _more_
  * @param tabContents _more_
  */
 public void addToInformationTabs(
     Request request, Entry entry, List<String> tabTitles, List<String> tabContents) {
   //        super.addToInformationTabs(request, entry, tabTitles, tabContents);
   try {
     RecordOutputHandler outputHandler = getRecordOutputHandler();
     if (outputHandler != null) {
       tabTitles.add(msg("File Format"));
       StringBuffer sb = new StringBuffer();
       RecordEntry recordEntry = outputHandler.doMakeEntry(request, entry);
       outputHandler.getFormHandler().getEntryMetadata(request, recordEntry, sb);
       tabContents.add(sb.toString());
     }
   } catch (Exception exc) {
     throw new RuntimeException(exc);
   }
 }