edu.ucdenver.ccp.medline.parser
Class MedlineCitation.PubDate

java.lang.Object
  extended by edu.ucdenver.ccp.medline.parser.MedlineCitation.Date
      extended by edu.ucdenver.ccp.medline.parser.MedlineCitation.PubDate
Enclosing class:
MedlineCitation

public static class MedlineCitation.PubDate
extends MedlineCitation.Date

 
 
 
 

Author:
Center for Computational Pharmacology, UC Denver; ccpsupport@ucdenver.edu

Constructor Summary
MedlineCitation.PubDate()
           
 
Method Summary
 String getDateStr()
           
 
Methods inherited from class edu.ucdenver.ccp.medline.parser.MedlineCitation.Date
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MedlineCitation.PubDate

public MedlineCitation.PubDate()
Method Detail

getDateStr

public String getDateStr()
Returns:
a string represenation of the publication date. If there is a "medline date" then it is returned. If not, then we check to see if there is a "year". If there is a year, then we return a string formatted to "M/D/Y" depending on the availablity of the month and day. If there is no year, then we check for a "season" returning it if it exists. If none of the previous cases pass then we return null. I don't think this method should ever return null however.


Copyright © 2012. All Rights Reserved.