org.n52.oxf.valueDomains.time
Class TimeFactory
java.lang.Object
org.n52.oxf.valueDomains.time.TimeFactory
public class TimeFactory
- extends Object
Creates an appropriate ITime object, (--> TimePeriod or TimePosition)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ISO8601LocalFormat
public static DateFormat ISO8601LocalFormat
TimeFactory
public TimeFactory()
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.