org.deegree.protocol.ows.metadata.domain
Enum RangeClosure

java.lang.Object
  extended by java.lang.Enum<RangeClosure>
      extended by org.deegree.protocol.ows.metadata.domain.RangeClosure
All Implemented Interfaces:
Serializable, Comparable<RangeClosure>

public enum RangeClosure
extends Enum<RangeClosure>

Specifies which of the boundary values are included in a Range.

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: Specifies which of the minimum and maximum values are included in the range. Note that plus and minus infinity are considered closed bounds.

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

Enum Constant Summary
CLOSED
          Minimum and maximum values are included.
CLOSED_OPEN
          Minimum value IS included in this range, and the specified maximum value is NOT included.
OPEN
          Minimum and maximum values are NOT included.
OPEN_CLOSED
          Minimum value is NOT included in this range, and the specified maximum value IS included.
 
Method Summary
static RangeClosure valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RangeClosure[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CLOSED

public static final RangeClosure CLOSED
Minimum and maximum values are included.


OPEN

public static final RangeClosure OPEN
Minimum and maximum values are NOT included.


OPEN_CLOSED

public static final RangeClosure OPEN_CLOSED
Minimum value is NOT included in this range, and the specified maximum value IS included.


CLOSED_OPEN

public static final RangeClosure CLOSED_OPEN
Minimum value IS included in this range, and the specified maximum value is NOT included.

Method Detail

values

public static RangeClosure[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RangeClosure c : RangeClosure.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RangeClosure valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2011. All Rights Reserved.