anl.aida.reader
Class ParsedDate

java.lang.Object
  extended by anl.aida.reader.ParsedDate

public class ParsedDate
extends java.lang.Object

Encapsulates a Date metadata retrieved from a corpus document.


Field Summary
private static java.util.Calendar cal
           
private  java.util.Date date
           
 
Constructor Summary
ParsedDate(java.util.Date date)
           
 
Method Summary
 java.util.Date getJavaDate()
          Gets the date as a Java Date.
 Date toDateType(org.apache.uima.jcas.JCas cas)
          Creates an mifs UIMA Date type from the encapsulated date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cal

private static java.util.Calendar cal

date

private java.util.Date date
Constructor Detail

ParsedDate

public ParsedDate(java.util.Date date)
Method Detail

getJavaDate

public java.util.Date getJavaDate()
Gets the date as a Java Date.

Returns:
the date as a Java Date.

toDateType

public Date toDateType(org.apache.uima.jcas.JCas cas)
Creates an mifs UIMA Date type from the encapsulated date.

Parameters:
cas - the JCas to create the Date type with
Returns:
the created Date type.