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 java.lang.Object

Dimension

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

Constructor Summary
Dimension(java.lang.String name, java.util.List<?> defaultValue, boolean current, boolean nearestValue, boolean multipleValues, java.lang.String units, java.lang.String unitSymbol, javax.xml.namespace.QName property, java.util.List<?> extent)
           
 
Method Summary
static java.lang.String formatDimensionValueList(java.util.List<?> list, boolean time)
           
 boolean getCurrent()
           
 java.util.List<?> getDefaultValue()
           
 java.util.List<?> getExtent()
           
 java.lang.String getExtentAsString()
           
 boolean getMultipleValues()
           
 boolean getNearestValue()
           
 java.lang.Object getNearestValue(java.lang.Object val)
           
 javax.xml.namespace.QName getPropertyName()
           
 java.lang.String getUnits()
           
 java.lang.String getUnitSymbol()
           
 boolean isValid(java.lang.Object val)
           
static java.lang.Object parseTyped(java.lang.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(java.lang.String name,
                 java.util.List<?> defaultValue,
                 boolean current,
                 boolean nearestValue,
                 boolean multipleValues,
                 java.lang.String units,
                 java.lang.String unitSymbol,
                 javax.xml.namespace.QName property,
                 java.util.List<?> extent)
Parameters:
name -
defaultValue -
current -
nearestValue -
multipleValues -
units -
unitSymbol -
property -
extent -
Method Detail

getDefaultValue

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

getPropertyName

public javax.xml.namespace.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 java.lang.String getUnits()
Returns:
the units

getUnitSymbol

public java.lang.String getUnitSymbol()
Returns:
the unit symbol

getExtent

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

getExtentAsString

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

formatDimensionValueList

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

parseTyped

public static java.lang.Object parseTyped(java.lang.Object o,
                                          boolean time)
                                   throws java.text.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:
java.text.ParseException

getNearestValue

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

isValid

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


Copyright © 2011. All Rights Reserved.