Enum ImageryInfo.ImageryType
- java.lang.Object
-
- java.lang.Enum<ImageryInfo.ImageryType>
-
- org.openstreetmap.josm.data.imagery.ImageryInfo.ImageryType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ImageryInfo.ImageryType>,ICommonSource<ImageryInfo.ImageryType>,ISourceType<ImageryInfo.ImageryType>
- Enclosing class:
- ImageryInfo
public static enum ImageryInfo.ImageryType extends java.lang.Enum<ImageryInfo.ImageryType> implements ISourceType<ImageryInfo.ImageryType>
Type of imagery entry.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BINGTMS entry for Microsoft Bing.MVTMapbox Vector Tiles entrySCANEXTMS entry for Russian company ScanEx.TMSA TMS (Tile Map Service) entry.WMSA WMS (Web Map Service) entry.WMS_ENDPOINTA WMS endpoint entry only stores the WMS server info, without layer, which are chosen later by the user.WMTSWMTS stores GetCapabilities URL.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringtypeString
-
Constructor Summary
Constructors Modifier Constructor Description privateImageryType(java.lang.String typeString)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImageryInfo.ImageryTypefromString(java.lang.String s)Returns the imagery type from the given type string.ImageryInfo.ImageryTypegetDefault()Get the default value for the EnumImageryInfo.ImageryTypegetFromString(java.lang.String s)Returns the source category from the given category string.java.lang.StringgetTypeString()Returns the unique string identifying this type.static ImageryInfo.ImageryTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ImageryInfo.ImageryType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WMS
public static final ImageryInfo.ImageryType WMS
A WMS (Web Map Service) entry.
-
TMS
public static final ImageryInfo.ImageryType TMS
A TMS (Tile Map Service) entry.
-
BING
public static final ImageryInfo.ImageryType BING
TMS entry for Microsoft Bing.
-
SCANEX
public static final ImageryInfo.ImageryType SCANEX
TMS entry for Russian company ScanEx.
-
WMS_ENDPOINT
public static final ImageryInfo.ImageryType WMS_ENDPOINT
A WMS endpoint entry only stores the WMS server info, without layer, which are chosen later by the user.
-
WMTS
public static final ImageryInfo.ImageryType WMTS
WMTS stores GetCapabilities URL. Does not store any information about the layer
-
MVT
public static final ImageryInfo.ImageryType MVT
Mapbox Vector Tiles entry
-
-
Field Detail
-
typeString
private final java.lang.String typeString
-
-
Constructor Detail
-
ImageryType
private ImageryType(java.lang.String typeString)
-
-
Method Detail
-
values
public static ImageryInfo.ImageryType[] 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 (ImageryInfo.ImageryType c : ImageryInfo.ImageryType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImageryInfo.ImageryType 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
-
getTypeString
public java.lang.String getTypeString()
Returns the unique string identifying this type.- Specified by:
getTypeStringin interfaceISourceType<ImageryInfo.ImageryType>- Returns:
- the unique string identifying this type
- Since:
- 6690
-
fromString
public static ImageryInfo.ImageryType fromString(java.lang.String s)
Returns the imagery type from the given type string.- Parameters:
s- The type string- Returns:
- the imagery type matching the given type string
-
getFromString
public ImageryInfo.ImageryType getFromString(java.lang.String s)
Description copied from interface:ICommonSourceReturns the source category from the given category string.- Specified by:
getFromStringin interfaceICommonSource<ImageryInfo.ImageryType>- Parameters:
s- The category string- Returns:
- the source category matching the given category string
-
getDefault
public ImageryInfo.ImageryType getDefault()
Description copied from interface:ICommonSourceGet the default value for the Enum- Specified by:
getDefaultin interfaceICommonSource<ImageryInfo.ImageryType>- Returns:
- The default value
-
-