org.gcube.indexmanagement.common
Class DateParser

java.lang.Object
  extended by org.gcube.indexmanagement.common.DateParser

public class DateParser
extends Object

A class used primarily in the initialize(String args[]) method of GeoIndexLookup plugins (rankers & refiners) in order to parse String arguments containing dates in the format "yyyy-MM-dd'T'HH:mm:ss.s" (where only yyyy is mandatory) into Date instances.

Version:
0.1
See Also:
Refiner, RankEvaluator

Constructor Summary
DateParser()
           
 
Method Summary
static Date parse(String dateString)
          A method used primarily in the initialize(String args[]) method of GeoIndexLookup plugins (rankers & refiners) in order to parse String arguments containing dates in the format "yyyy-MM-dd'T'HH:mm:ss.s" (where only yyyy is mandatory) into Date instances.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateParser

public DateParser()
Method Detail

parse

public static Date parse(String dateString)
                  throws ParseException
A method used primarily in the initialize(String args[]) method of GeoIndexLookup plugins (rankers & refiners) in order to parse String arguments containing dates in the format "yyyy-MM-dd'T'HH:mm:ss.s" (where only yyyy is mandatory) into Date instances. (where only yyyy is mandatory) into Date instances.

Parameters:
dateString - - The date string to parse and produce a date.
Returns:
- the parsed Date.
Throws:
ParseException - - in case of a parse error.
See Also:
Refiner, RankEvaluator


Copyright © 2013. All Rights Reserved.