org.deegree.protocol.ows.metadata.domain
Class Range

java.lang.Object
  extended by org.deegree.protocol.ows.metadata.domain.Range
All Implemented Interfaces:
Values

public class Range
extends Object
implements Values

A range of values of a numeric parameter.

Data model has been designed to capture the expressiveness of all OWS specifications and versions and was verified against the following specifications:

From OWS Common 2.0: A range of values of a numeric parameter. This range can be continuous or discrete, defined by a fixed spacing between adjacent valid values. If the MinimumValue or MaximumValue is not included, there is no value limit in that direction. Inclusion of the specified minimum and maximum values in the range shall be defined by the rangeClosure.

Version:
$Revision: 31860 $, $Date: 2011-09-13 15:11:47 +0200 (Tue, 13 Sep 2011) $
Author:
Markus Schneider, Andrei Ionita, last edited by: $Author: mschneider $

Constructor Summary
Range(String min, String max, String spacing, RangeClosure closure)
          Creates a new Range instance.
 
Method Summary
 RangeClosure getClosure()
          Returns the closure between values in the range.
 String getMax()
          Returns the maximum value.
 String getMin()
          Returns the minimum value.
 String getSpacing()
          Returns the spacing between values in the range.
 void setClosure(RangeClosure closure)
          Sets the closure between values in the range.
 void setMax(String max)
          Sets the maximum value.
 void setMin(String min)
          Sets the minimum value.
 void setSpacing(String spacing)
          Sets the spacing between values in the range.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Range

public Range(String min,
             String max,
             String spacing,
             RangeClosure closure)
Creates a new Range instance.

Parameters:
min - minimum value, may be null (no lower limit)
max - maximum value, may be null (no upper limit)
spacing - spacing, may be null (continuous range)
closure - boundary value mode, may be null (implies RangeClosure.CLOSED)
Method Detail

getMin

public String getMin()
Returns the minimum value.

From OWS Common 2.0: Minimum value of this numeric parameter.

Returns:
minimum value, may be null (no lower limit)

setMin

public void setMin(String min)
Sets the minimum value.

From OWS Common 2.0: Minimum value of this numeric parameter.

Parameters:
min - minimum value, may be null (no lower limit)

getMax

public String getMax()
Returns the maximum value.

From OWS Common 2.0: Maximum value of this numeric parameter.

Returns:
maximum value, may be null (no upper limit)

setMax

public void setMax(String max)
Sets the maximum value.

From OWS Common 2.0: Maximum value of this numeric parameter.

Parameters:
max - maximum value, may be null (no lower limit)

getSpacing

public String getSpacing()
Returns the spacing between values in the range.

From OWS Common 2.0: Shall be included when the allowed values are NOT continuous in this range. Shall not be included when the allowed values are continuous in this range.

Returns:
spacing between values in the range, may be null (continuous range)

setSpacing

public void setSpacing(String spacing)
Sets the spacing between values in the range.

From OWS Common 2.0: Shall be included when the allowed values are NOT continuous in this range. Shall not be included when the allowed values are continuous in this range.

Parameters:
spacing - spacing between values in the range, may be null (continuous range)

getClosure

public RangeClosure getClosure()
Returns the closure between values in the range.

From OWS Common 2.0: Shall be included unless the default value applies (closed).

Returns:
closure, may be null (implies RangeClosure.CLOSED)

setClosure

public void setClosure(RangeClosure closure)
Sets the closure between values in the range.

From OWS Common 2.0: Shall be included unless the default value applies (closed).



Copyright © 2011. All Rights Reserved.