it.geosolutions.geoserver.rest
Enum GeoServerRESTPublisher.StoreType

java.lang.Object
  extended by java.lang.Enum<GeoServerRESTPublisher.StoreType>
      extended by it.geosolutions.geoserver.rest.GeoServerRESTPublisher.StoreType
All Implemented Interfaces:
Serializable, Comparable<GeoServerRESTPublisher.StoreType>
Enclosing class:
GeoServerRESTPublisher

public static enum GeoServerRESTPublisher.StoreType
extends Enum<GeoServerRESTPublisher.StoreType>

DataStoreType definitions.

Author:
Carlo Cancellieri - carlo.cancellieri@geo-solutions.it

Enum Constant Summary
COVERAGESTORES
          Raster based data sources.
DATASTORES
          Vector based data sources.
 
Method Summary
 String getType()
          Get the type of a StoreType.
static String getType(GeoServerRESTPublisher.StoreType type)
          Get the type name of a StoreType.
 String getTypeName()
          Get the type name of a StoreType.
static String getTypeName(GeoServerRESTPublisher.StoreType type)
          Get the type name of a StoreType.
 String getTypeNameWithFormat(GeoServerRESTPublisher.Format format)
          Get the type name of a StoreType with the specified format.
static String getTypeNameWithFormat(GeoServerRESTPublisher.StoreType type, GeoServerRESTPublisher.Format format)
          Get the type name of a StoreType with the specified format.
 String toString()
          Returns a lowercase representation of the parameter value, suitable to construct the rest call.
static GeoServerRESTPublisher.StoreType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GeoServerRESTPublisher.StoreType[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

COVERAGESTORES

public static final GeoServerRESTPublisher.StoreType COVERAGESTORES
Raster based data sources.


DATASTORES

public static final GeoServerRESTPublisher.StoreType DATASTORES
Vector based data sources. Can be a file in the case of a Shapefile, a database connection in the case of PostGIS, or a server in the case of a remote Web Feature Service.

Method Detail

values

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

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

valueOf

public static GeoServerRESTPublisher.StoreType 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

getTypeNameWithFormat

public static String getTypeNameWithFormat(GeoServerRESTPublisher.StoreType type,
                                           GeoServerRESTPublisher.Format format)
Get the type name of a StoreType with the specified format.

Parameters:
type - the StoreType.
format - see GeoServerRESTPublisher.Format
Returns:
"featureTypes.{xml|html|...}" for DATASTORES, "coverages.{xml|html|...}" otherwise.

getTypeNameWithFormat

public String getTypeNameWithFormat(GeoServerRESTPublisher.Format format)
Get the type name of a StoreType with the specified format.

Parameters:
type - the StoreType.
format - see GeoServerRESTPublisher.Format
Returns:
"featuretypes.{xml|html|...}" for DATASTORES, "coverages.{xml|html|...}" otherwise.

getTypeName

public static String getTypeName(GeoServerRESTPublisher.StoreType type)
Get the type name of a StoreType.

Parameters:
type - the StoreType.
Returns:
"featureTypes" for DATASTORES, "coverages" otherwise.

getType

public static String getType(GeoServerRESTPublisher.StoreType type)
Get the type name of a StoreType.

Parameters:
type - the StoreType.
Returns:
"dataStore" for DATASTORES, "coverageStore" otherwise.

getTypeName

public String getTypeName()
Get the type name of a StoreType.

Returns:
"featuretypes" for DATASTORES, "coverages" otherwise.

getType

public String getType()
Get the type of a StoreType.

Parameters:
type - the StoreType.
Returns:
"dataStore" for DATASTORES, "coverageStore" otherwise.

toString

public String toString()
Returns a lowercase representation of the parameter value, suitable to construct the rest call.

Overrides:
toString in class Enum<GeoServerRESTPublisher.StoreType>


Copyright © 2007-2013 GeoSolutions. All Rights Reserved.