org.deegree.protocol.wfs
Enum WFSVersion

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

public enum WFSVersion
extends Enum<WFSVersion>

Enum type for discriminating between the different versions of the OpenGIS Web Feature Service (WFS) Implementation Specification.

Version:
$Revision: 31512 $, $Date: 2011-08-16 18:17:14 +0200 (Tue, 16 Aug 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Enum Constant Summary
WFS_100
          WFS version 1.0.0 (OGC document #02-058 )
WFS_110
          WFS version 1.1.0 (OGC document #04-094 )
WFS_200
          WFS version 2.0.0, ISO 19142 (OGC document #09-025r1 )
 
Method Summary
 String getNamespaceUri()
          Returns the corresponding XML namespace URI.
 Version getOGCVersion()
          Returns a corresponding OGC/OWS Version object.
static WFSVersion valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WFSVersion valueOf(Version ogcVersion)
          Returns the enum constant that corresponds to the given Version.
static WFSVersion[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
static WFSVersion[] valuesForNamespaceUri(String ns)
          Returns the enum constants that correspond to the given XML namespace URIs.
 
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

WFS_100

public static final WFSVersion WFS_100
WFS version 1.0.0 (OGC document #02-058 )


WFS_110

public static final WFSVersion WFS_110
WFS version 1.1.0 (OGC document #04-094 )


WFS_200

public static final WFSVersion WFS_200
WFS version 2.0.0, ISO 19142 (OGC document #09-025r1 )

Method Detail

values

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

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

valueOf

public static WFSVersion 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

getOGCVersion

public Version getOGCVersion()
Returns a corresponding OGC/OWS Version object.

Returns:
corresponding version object, never null

getNamespaceUri

public String getNamespaceUri()
Returns the corresponding XML namespace URI.

Returns:
corresponding XML namespace URI, never null

valueOf

public static WFSVersion valueOf(Version ogcVersion)
Returns the enum constant that corresponds to the given Version.

Parameters:
ogcVersion - version, must not be null
Returns:
corresponding constant, never null
Throws:
IllegalArgumentException - if the version is not a known/supported WFS version

valuesForNamespaceUri

public static WFSVersion[] valuesForNamespaceUri(String ns)
Returns the enum constants that correspond to the given XML namespace URIs.

Parameters:
ns - XML namespace, must not be null
Returns:
corresponding constants, never null and contains at least one entry
Throws:
NullPointerException - if the namespace URI is null
IllegalArgumentException - if the namespace URI does not correspond to a known/supported WFS version


Copyright © 2011. All Rights Reserved.