edu.ucsb.adl.reports
Class AccessReportIdentifierRenamer

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

public final class AccessReportIdentifierRenamer
extends java.lang.Object

Transforms ADL access 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/AccessReportIdentifierRenamer.java,v 1.2 2003/03/18 03:08:54 gjanee Exp $

$Log: AccessReportIdentifierRenamer.java,v $ Revision 1.2 2003/03/18 03:08:54 gjanee
Complete rewrite.

Revision 1.1 2000/11/14 18:44:15 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 access 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 access 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 access 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