org.n52.oxf.valueDomains.time
Class TimeFactory

java.lang.Object
  extended by org.n52.oxf.valueDomains.time.TimeFactory

public class TimeFactory
extends Object

Creates an appropriate ITime object, (--> TimePeriod or TimePosition)


Field Summary
static DateFormat ISO8601LocalFormat
           
 
Constructor Summary
TimeFactory()
           
 
Method Summary
static ITime createTime(String timeString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ISO8601LocalFormat

public static DateFormat ISO8601LocalFormat
Constructor Detail

TimeFactory

public TimeFactory()
Method Detail

createTime

public static ITime createTime(String timeString)
                        throws IllegalArgumentException
Parameters:
timeString -
Returns:
an appropriate ITime object depending on the timeString that may be "now" for the most recent available data, a TimePosition (e.g. "2005-08-04") or "min/max(/res)" to create a TimePeriod.
Throws:
IllegalArgumentException - if timeString is not in correct format.


Copyright © 2012-2013 52north.org. All Rights Reserved.