DLESE Tools
v1.6.0

org.dlese.dpc.standards.asn
Class AsnAuthors

java.lang.Object
  extended by 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 Summary
static void cacheAuthorsDoc(String srcDir)
          Utility to update cached Authors File
 String getAuthor(String purl)
          Returns a author for a given author purl (e.g., http://purl.org/ASN/scheme/ASNTopic/behavioralStudies)
static AsnAuthors getInstance()
          Gets the AsnAuthor instance
static void main(String[] args)
          The main program for the AsnAuthors class - runs cacheAuthorsDoc utility.
 void report()
          NOT YET DOCUMENTED
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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


DLESE Tools
v1.6.0