edu.ucsb.adl.reports
Class BucketReportIdentifierRenamer

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

public final class BucketReportIdentifierRenamer
extends java.lang.Object

Transforms ADL bucket 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/BucketReportIdentifierRenamer.java,v 1.1 2003/04/05 14:54:35 gjanee Exp $

$Log: BucketReportIdentifierRenamer.java,v $ Revision 1.1 2003/04/05 14:54:35 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 bucket 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 bucket 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 bucket 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