org.deegree_impl.services
Class TimeExtent_Impl

java.lang.Object
  extended byorg.deegree_impl.services.TimeExtent_Impl
All Implemented Interfaces:
Extent, TimeExtent

public class TimeExtent_Impl
extends java.lang.Object
implements TimeExtent

TimeExtent implements the ISO extended time format The syntax for expressing Time constraints and date / time values is specified in WMS 1.1 Annexes B


Nested Class Summary
 
Nested classes inherited from class org.deegree.services.TimeExtent
TimeExtent.TimePeriod
 
Field Summary
protected  java.util.Calendar _enddate
           
protected  boolean _endIsNow
           
protected  java.util.ArrayList _multidate
           
protected  TimeExtent.TimePeriod _period
           
protected  java.util.Calendar _singledate
           
protected  java.util.Calendar _startdate
           
 
Constructor Summary
TimeExtent_Impl(java.lang.String isoTime)
          Creates a new TimeExtent object.
 
Method Summary
 java.util.Calendar getDate()
          Used for single valued time extents
 java.util.Calendar getDate(int i)
          Used for listed time extents
 java.util.Calendar getEndDate()
          Used for periodic time extents
 java.util.List getList()
          Used for listed time extents
 int getListLength()
          Used for listed extents
 TimeExtent.TimePeriod getPeriod()
          Used for periodic time extents
 java.util.Calendar getStartDate()
          Used for periodic time extents
 boolean isMulti()
           
 boolean isPeriodic()
           
 boolean isSingle()
           
private  boolean parseMultiDate(java.lang.String isoTime)
           
private  boolean parsePeriodicDate(java.lang.String isoTime)
          Method parsePeriodicDate
private  boolean parseSingleDate(java.lang.String isoTime)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_multidate

protected java.util.ArrayList _multidate

_enddate

protected java.util.Calendar _enddate

_singledate

protected java.util.Calendar _singledate

_startdate

protected java.util.Calendar _startdate

_period

protected TimeExtent.TimePeriod _period

_endIsNow

protected boolean _endIsNow
Constructor Detail

TimeExtent_Impl

public TimeExtent_Impl(java.lang.String isoTime)
Creates a new TimeExtent object.

Parameters:
isoTime -
Method Detail

parsePeriodicDate

private boolean parsePeriodicDate(java.lang.String isoTime)
Method parsePeriodicDate

Parameters:
isoTime - a String
Returns:
a boolean

parseMultiDate

private boolean parseMultiDate(java.lang.String isoTime)
Parameters:
isoTime - a String
Returns:
true if isoTime is parsable as a multi date list

parseSingleDate

private boolean parseSingleDate(java.lang.String isoTime)
Parameters:
isoTime - a String to be parsed
Returns:
true if isoTime is parsable as a single date

isSingle

public boolean isSingle()
Specified by:
isSingle in interface Extent
Returns:

isMulti

public boolean isMulti()
Specified by:
isMulti in interface Extent
Returns:

isPeriodic

public boolean isPeriodic()
Specified by:
isPeriodic in interface Extent
Returns:

getDate

public java.util.Calendar getDate()
Used for single valued time extents

Specified by:
getDate in interface TimeExtent

getList

public java.util.List getList()
Used for listed time extents

Specified by:
getList in interface Extent

getListLength

public int getListLength()
Description copied from interface: Extent
Used for listed extents

Specified by:
getListLength in interface Extent
Returns:

getDate

public java.util.Calendar getDate(int i)
Used for listed time extents

Specified by:
getDate in interface TimeExtent

getPeriod

public TimeExtent.TimePeriod getPeriod()
Used for periodic time extents

Specified by:
getPeriod in interface TimeExtent

getStartDate

public java.util.Calendar getStartDate()
Used for periodic time extents

Specified by:
getStartDate in interface TimeExtent

getEndDate

public java.util.Calendar getEndDate()
Used for periodic time extents

Specified by:
getEndDate in interface TimeExtent

toString

public java.lang.String toString()
Returns: