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 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 String
attribution_text
The attribution text for the sourceString
attribution_url
The attribution URL for the sourceString
bounds
The bounds of the sourceString
category
The category string for the sourceString
cookies
The cookies required to get the sourceString
country_code
The country code for the source (usually ISO 3166-1 alpha-2)Map<String,String>
customHttpHeaders
Any custom HTTP headersString
date
The date for the sourceString
default_layers
The default layers for the source, if any (mostly useful for imagery)String
description
The description of the sourceString
eula
The EULA for the sourceString
icon
The icon for the source (not necessarily the same as the logo)String
id
A *unique* id for the sourceString
logo_image
The logo to be used for the sourceString
logo_url
The logo urlString
name
The name of the sourceString
permission_reference_url
The permission reference url (i.e., how do we know we have permission?)String
shapes
The shape of the source (mostly used for visual aid purposes)String
terms_of_use_text
The TOU textString
terms_of_use_url
The URL for the TOUString
type
The type of the source (e.g., WMS, WMTS, etc.)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
.
-
-
-
Field Detail
-
attribution_text
public String attribution_text
The attribution text for the source
-
attribution_url
public String attribution_url
The attribution URL for the source
-
permission_reference_url
public String permission_reference_url
The permission reference url (i.e., how do we know we have permission?)
-
logo_image
public String logo_image
The logo to be used for the source
-
terms_of_use_text
public String terms_of_use_text
The TOU text
-
terms_of_use_url
public String terms_of_use_url
The URL for the TOU
-
country_code
public String country_code
The country code for the source (usually ISO 3166-1 alpha-2)
-
description
public String description
The description of the source
-
default_layers
public String default_layers
The default layers for the source, if any (mostly useful for imagery)
-
customHttpHeaders
public Map<String,String> customHttpHeaders
Any custom HTTP headers
-
-
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
-
-