edu.ucsb.adl.reports
Class BrowseReportIdentifierRenamer

java.lang.Object
  |
  +--edu.ucsb.adl.reports.BrowseReportIdentifierRenamer

public final class BrowseReportIdentifierRenamer
extends java.lang.Object

Transforms ADL browse reports by renaming collection names that appear in ADL identifiers. If the "from" collection name is F and the "to" collection name is T, then the following transformation is performed:

FROM TO
<identifier>F:V</identifier> <identifier>T:V</identifier>

Version:
$Header: /export/home/gjanee/utils/reports/edu/ucsb/adl/reports/RCS/BrowseReportIdentifierRenamer.java,v 1.1 2003/03/17 22:18:18 gjanee Exp $

$Log: BrowseReportIdentifierRenamer.java,v $ Revision 1.1 2003/03/17 22:18:18 gjanee Initial revision

Author:
Greg Janée
Alexandria Digital Library

Method Summary
static void main(java.lang.String[] args)
          Test driver.
static java.lang.String renameIdentifier(java.lang.String report, java.lang.String from, java.lang.String to)
          Transforms an ADL browse report by renaming the collection name that appears in the ADL identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

renameIdentifier

public static java.lang.String renameIdentifier(java.lang.String report,
                                                java.lang.String from,
                                                java.lang.String to)
Transforms an ADL browse report by renaming the collection name that appears in the ADL identifier. The report is returned unmodified if it is syntactically invalid.

Parameters:
report - The browse report.
from - The "from" collection name.
to - The "to" collection name.
Returns:
The transformed report.

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Test driver.

java.io.IOException