Class AsnAuthors

java.lang.Object
org.dlese.dpc.standards.asn.AsnAuthors

public class AsnAuthors extends Object
Class to read the ASN authors document from ASN web service and provide author lookup by author purl. In event ASN webservice is not available, used cached version.
Author:
Jonathan Ostwald
  • Method Details

    • getInstance

      public static AsnAuthors getInstance() throws Exception
      Gets the AsnAuthor instance
      Returns:
      The instance value
      Throws:
      Exception - NOT YET DOCUMENTED
    • getAuthor

      public String getAuthor(String purl)
      Returns a author for a given author purl (e.g., http://purl.org/ASN/scheme/ASNTopic/behavioralStudies)
      Parameters:
      purl - NOT YET DOCUMENTED
      Returns:
      The author value
    • cacheAuthorsDoc

      public static void cacheAuthorsDoc(String srcDir) throws Exception
      Utility to update cached Authors File
      Parameters:
      srcDir - path to local src directory
      Throws:
      Exception - if file cannot be written
    • main

      public static void main(String[] args)
      The main program for the AsnAuthors class - runs cacheAuthorsDoc utility.
      Parameters:
      args - The command line arguments
    • report

      public void report()
      NOT YET DOCUMENTED