org.deegree.services.wms.model
Class Dimension<T>

java.lang.Object
  extended by org.deegree.services.wms.model.Dimension<T>
Type Parameters:
T -

public class Dimension<T>
extends Object

Dimension

Version:
$Revision: 24761 $, $Date: 2010-06-08 15:36:32 +0200 (Tue, 08 Jun 2010) $
Author:
Andreas Schmitz, last edited by: $Author: aschmitz $

Constructor Summary
Dimension(String name, List<?> defaultValue, boolean current, boolean nearestValue, boolean multipleValues, String units, String unitSymbol, QName property, List<?> extent)
           
 
Method Summary
static String formatDimensionValueList(List<?> list, boolean time)
           
 boolean getCurrent()
           
 List<?> getDefaultValue()
           
 List<?> getExtent()
           
 String getExtentAsString()
           
 boolean getMultipleValues()
           
 boolean getNearestValue()
           
 Object getNearestValue(Object val)
           
 QName getPropertyName()
           
 String getUnits()
           
 String getUnitSymbol()
           
 boolean isValid(Object val)
           
static Object parseTyped(Object o, boolean time)
          Parses a dimension value (eg. a List of or individual values of String or DimensionInterval) into the appropriate Date/Double/Integer values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dimension

public Dimension(String name,
                 List<?> defaultValue,
                 boolean current,
                 boolean nearestValue,
                 boolean multipleValues,
                 String units,
                 String unitSymbol,
                 QName property,
                 List<?> extent)
Parameters:
name -
defaultValue -
current -
nearestValue -
multipleValues -
units -
unitSymbol -
property -
extent -
Method Detail

getDefaultValue

public List<?> getDefaultValue()
Returns:
the default value, if set

getPropertyName

public QName getPropertyName()
Returns:
the property name

getCurrent

public boolean getCurrent()
Returns:
whether current is allowed

getMultipleValues

public boolean getMultipleValues()
Returns:
whether multiple values are allowed

getNearestValue

public boolean getNearestValue()
Returns:
whether nearest values will be used

getUnits

public String getUnits()
Returns:
the units

getUnitSymbol

public String getUnitSymbol()
Returns:
the unit symbol

getExtent

public List<?> getExtent()
Returns:
the extent

getExtentAsString

public String getExtentAsString()
Returns:
the extent as comma separated list as in the specs

formatDimensionValueList

public static String formatDimensionValueList(List<?> list,
                                              boolean time)
Parameters:
list -
time -
Returns:
a formatted string of dimension values

parseTyped

public static Object parseTyped(Object o,
                                boolean time)
                         throws ParseException
Parses a dimension value (eg. a List of or individual values of String or DimensionInterval) into the appropriate Date/Double/Integer values.

Parameters:
o -
time -
Returns:
an object with individual values parsed
Throws:
ParseException

getNearestValue

public Object getNearestValue(Object val)
Parameters:
val -
Returns:
the closest value

isValid

public boolean isValid(Object val)
Parameters:
val -
Returns:
true, if the value hits values defined in the extent


Copyright © 2011. All Rights Reserved.