org.deegree_impl.services
Class DoubleExtent_Impl

java.lang.Object
  extended byorg.deegree_impl.services.DoubleExtent_Impl
All Implemented Interfaces:
DoubleExtent, Extent
Direct Known Subclasses:
ElevationExtent_Impl

public class DoubleExtent_Impl
extends java.lang.Object
implements DoubleExtent

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

Author:
Emanuele Tajariol

Field Summary
protected  java.lang.Double _higher
           
protected  java.lang.Double _lower
           
protected  java.util.ArrayList _multi
           
protected  java.lang.Double _period
           
protected  java.lang.Double _single
           
 
Constructor Summary
DoubleExtent_Impl(java.lang.String extent)
          Creates a new DoubleExtent_Impl object.
 
Method Summary
 java.lang.Double getHigher()
          Used for periodic extents
 java.util.List getList()
          Used for listed extents
 java.lang.Double getListItem(int i)
          Used for listed extents
 int getListLength()
          Used for listed extents
 java.lang.Double getLower()
          Used for periodic extents
 java.lang.Double getPeriod()
          Used for periodic extents
 java.lang.Double getSingleValue()
          Used for single valued extents
 boolean isMulti()
           
 boolean isPeriodic()
           
 boolean isSingle()
           
private  boolean parseMulti(java.lang.String extent)
           
private  boolean parsePeriodic(java.lang.String extent)
          Method parsePeriodic
private  boolean parseSingle(java.lang.String extent)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_multi

protected java.util.ArrayList _multi

_higher

protected java.lang.Double _higher

_lower

protected java.lang.Double _lower

_period

protected java.lang.Double _period

_single

protected java.lang.Double _single
Constructor Detail

DoubleExtent_Impl

public DoubleExtent_Impl(java.lang.String extent)
Creates a new DoubleExtent_Impl object.

Parameters:
extent -
Method Detail

parsePeriodic

private boolean parsePeriodic(java.lang.String extent)
Method parsePeriodic

Parameters:
extent -
Returns:
a boolean

parseMulti

private boolean parseMulti(java.lang.String extent)
Parameters:
extent - a String
Returns:
true if extent is parsable as a multi double list

parseSingle

private boolean parseSingle(java.lang.String extent)
Parameters:
extent - a String to be parsed
Returns:
true if extent is parsable as a single double

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:

getSingleValue

public java.lang.Double getSingleValue()
Used for single valued extents

Specified by:
getSingleValue in interface DoubleExtent

getList

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

Specified by:
getList in interface Extent

getListLength

public int getListLength()
Used for listed extents

Specified by:
getListLength in interface Extent

getListItem

public java.lang.Double getListItem(int i)
Used for listed extents

Specified by:
getListItem in interface DoubleExtent

getLower

public java.lang.Double getLower()
Used for periodic extents

Specified by:
getLower in interface DoubleExtent

getHigher

public java.lang.Double getHigher()
Used for periodic extents

Specified by:
getHigher in interface DoubleExtent

getPeriod

public java.lang.Double getPeriod()
Used for periodic extents

Specified by:
getPeriod in interface DoubleExtent

toString

public java.lang.String toString()
Returns: