Class SourcePreferenceEntry<T extends SourceInfo<?,?,?,?>>
- java.lang.Object
-
- org.openstreetmap.josm.data.sources.SourcePreferenceEntry<T>
-
- Type Parameters:
T
- The type of SourceInfo
- Direct Known Subclasses:
ImageryInfo.ImageryPreferenceEntry
public class SourcePreferenceEntry<T extends SourceInfo<?,?,?,?>> extends java.lang.Object
A generic SourcePreferenceEntry that is used for storing data in JOSM preferences. This is intended to be removed, at some point. User beware.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
attribution_text
The attribution text for the sourcejava.lang.String
attribution_url
The attribution URL for the sourcejava.lang.String
bounds
The bounds of the sourcejava.lang.String
category
The category string for the sourcejava.lang.String
cookies
The cookies required to get the sourcejava.lang.String
country_code
The country code for the source (usually ISO 3166-1 alpha-2)java.util.Map<java.lang.String,java.lang.String>
customHttpHeaders
Any custom HTTP headersjava.lang.String
date
The date for the sourcejava.lang.String
default_layers
The default layers for the source, if any (mostly useful for imagery)java.lang.String
description
The description of the sourcejava.lang.String
eula
The EULA for the sourcejava.lang.String
icon
The icon for the source (not necessarily the same as the logo)java.lang.String
id
A *unique* id for the sourcejava.lang.String
logo_image
The logo to be used for the sourcejava.lang.String
logo_url
The logo urljava.lang.String
name
The name of the sourcejava.lang.String
permission_reference_url
The permission reference url (i.e., how do we know we have permission?)java.lang.String
shapes
The shape of the source (mostly used for visual aid purposes)java.lang.String
terms_of_use_text
The TOU textjava.lang.String
terms_of_use_url
The URL for the TOUjava.lang.String
type
The type of the source (e.g., WMS, WMTS, etc.)java.lang.String
url
The URL for the source (base url)
-
Constructor Summary
Constructors Constructor Description SourcePreferenceEntry()
Constructs a new emptySourcePreferenceEntry
.SourcePreferenceEntry(T i)
Constructs a newSourcePreferenceEntry
from a givenSourceInfo
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
-
-
Field Detail
-
name
public java.lang.String name
The name of the source
-
id
public java.lang.String id
A *unique* id for the source
-
type
public java.lang.String type
The type of the source (e.g., WMS, WMTS, etc.)
-
url
public java.lang.String url
The URL for the source (base url)
-
eula
public java.lang.String eula
The EULA for the source
-
attribution_text
public java.lang.String attribution_text
The attribution text for the source
-
attribution_url
public java.lang.String attribution_url
The attribution URL for the source
-
permission_reference_url
public java.lang.String permission_reference_url
The permission reference url (i.e., how do we know we have permission?)
-
logo_image
public java.lang.String logo_image
The logo to be used for the source
-
logo_url
public java.lang.String logo_url
The logo url
-
terms_of_use_text
public java.lang.String terms_of_use_text
The TOU text
-
terms_of_use_url
public java.lang.String terms_of_use_url
The URL for the TOU
-
country_code
public java.lang.String country_code
The country code for the source (usually ISO 3166-1 alpha-2)
-
date
public java.lang.String date
The date for the source
-
cookies
public java.lang.String cookies
The cookies required to get the source
-
bounds
public java.lang.String bounds
The bounds of the source
-
shapes
public java.lang.String shapes
The shape of the source (mostly used for visual aid purposes)
-
icon
public java.lang.String icon
The icon for the source (not necessarily the same as the logo)
-
description
public java.lang.String description
The description of the source
-
default_layers
public java.lang.String default_layers
The default layers for the source, if any (mostly useful for imagery)
-
customHttpHeaders
public java.util.Map<java.lang.String,java.lang.String> customHttpHeaders
Any custom HTTP headers
-
category
public java.lang.String category
The category string for the source
-
-
Constructor Detail
-
SourcePreferenceEntry
public SourcePreferenceEntry()
Constructs a new emptySourcePreferenceEntry
.
-
SourcePreferenceEntry
public SourcePreferenceEntry(T i)
Constructs a newSourcePreferenceEntry
from a givenSourceInfo
.- Parameters:
i
- The corresponding source info
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-