Package it.geosolutions.geoserver.rest
Enum GeoServerRESTPublisher.StoreType
- java.lang.Object
-
- java.lang.Enum<GeoServerRESTPublisher.StoreType>
-
- it.geosolutions.geoserver.rest.GeoServerRESTPublisher.StoreType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<GeoServerRESTPublisher.StoreType>
- Enclosing class:
- GeoServerRESTPublisher
public static enum GeoServerRESTPublisher.StoreType extends java.lang.Enum<GeoServerRESTPublisher.StoreType>
DataStoreType definitions.DATASTORESvector based data sources.COVERAGESTORESraster based data sources.
- Author:
- Carlo Cancellieri - carlo.cancellieri@geo-solutions.it
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COVERAGESTORESRaster based data sources.DATASTORESVector based data sources.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetType()Get the type of a StoreType.static java.lang.StringgetType(GeoServerRESTPublisher.StoreType type)Get the type name of a StoreType.java.lang.StringgetTypeName()Get the type name of a StoreType.static java.lang.StringgetTypeName(GeoServerRESTPublisher.StoreType type)Get the type name of a StoreType.java.lang.StringgetTypeNameWithFormat(GeoServerRESTPublisher.Format format)Get the type name of a StoreType with the specified format.static java.lang.StringgetTypeNameWithFormat(GeoServerRESTPublisher.StoreType type, GeoServerRESTPublisher.Format format)Get the type name of a StoreType with the specified format.java.lang.StringtoString()Returns a lowercase representation of the parameter value, suitable to construct the rest call.static GeoServerRESTPublisher.StoreTypevalueOf(java.lang.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.
-
-
-
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(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getTypeNameWithFormat
public static java.lang.String getTypeNameWithFormat(GeoServerRESTPublisher.StoreType type, GeoServerRESTPublisher.Format format)
Get the type name of a StoreType with the specified format.- Parameters:
type- the StoreType.format- seeGeoServerRESTPublisher.Format- Returns:
- "featureTypes.{xml|html|...}" for DATASTORES, "coverages.{xml|html|...}" otherwise.
-
getTypeNameWithFormat
public java.lang.String getTypeNameWithFormat(GeoServerRESTPublisher.Format format)
Get the type name of a StoreType with the specified format.- Parameters:
format- seeGeoServerRESTPublisher.Format- Returns:
- "featuretypes.{xml|html|...}" for DATASTORES, "coverages.{xml|html|...}" otherwise.
-
getTypeName
public static java.lang.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 java.lang.String getType(GeoServerRESTPublisher.StoreType type)
Get the type name of a StoreType.- Parameters:
type- the StoreType.- Returns:
- "dataStore" for DATASTORES, "coverageStore" otherwise.
-
getTypeName
public java.lang.String getTypeName()
Get the type name of a StoreType.- Returns:
- "featuretypes" for DATASTORES, "coverages" otherwise.
-
getType
public java.lang.String getType()
Get the type of a StoreType.- Returns:
- "dataStore" for DATASTORES, "coverageStore" otherwise.
-
toString
public java.lang.String toString()
Returns a lowercase representation of the parameter value, suitable to construct the rest call.- Overrides:
toStringin classjava.lang.Enum<GeoServerRESTPublisher.StoreType>
-
-