org.deegree.protocol.wfs.getfeature
Enum ResultType

java.lang.Object
  extended by java.lang.Enum<ResultType>
      extended by org.deegree.protocol.wfs.getfeature.ResultType
All Implemented Interfaces:
Serializable, Comparable<ResultType>

public enum ResultType
extends Enum<ResultType>

Used for discriminating between the two GetFeature modes: results and hits.

Since WFS spec 1.1.0, a WFS can respond to a query operation in one of two ways (excluding an exception response). It may either generate a complete response document containing resources that satisfy the operation or it may simply generate an empty response container that indicates the count of the total number of resources that the operation would return. Which of these two responses a WFS generates is determined by the value of the optional resultType parameter.

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: schneider $

Enum Constant Summary
HITS
          An empty response set should be returned (i.e. no feature instances should be returned), but the "numberOfFeatures" attribute should be set to the number of feature instances that would be returned.
RESULTS
          The full response set (i.e. all the feature instances) should be returned.
 
Method Summary
static ResultType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ResultType[] 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

RESULTS

public static final ResultType RESULTS
The full response set (i.e. all the feature instances) should be returned.


HITS

public static final ResultType HITS
An empty response set should be returned (i.e. no feature instances should be returned), but the "numberOfFeatures" attribute should be set to the number of feature instances that would be returned.

Method Detail

values

public static ResultType[] 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 (ResultType c : ResultType.values())
    System.out.println(c);

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

valueOf

public static ResultType 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.