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
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
FieldsModifier and TypeFieldDescriptionThe attribution text for the sourceThe attribution URL for the sourceThe bounds of the sourceThe category string for the sourceThe cookies required to get the sourceThe country code for the source (usually ISO 3166-1 alpha-2)Any custom HTTP headersThe date for the sourceThe default layers for the source, if any (mostly useful for imagery)The description of the sourceThe EULA for the sourceThe icon for the source (not necessarily the same as the logo)A *unique* id for the sourceThe logo to be used for the sourceThe logo urlThe name of the sourceThe permission reference url (i.e., how do we know we have permission?)The shape of the source (mostly used for visual aid purposes)The TOU textThe URL for the TOUThe type of the source (e.g., WMS, WMTS, etc.)The URL for the source (base url) -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new emptySourcePreferenceEntry.Constructs a newSourcePreferenceEntryfrom a givenSourceInfo. -
Method Summary
-
Field Details
-
name
The name of the source -
id
A *unique* id for the source -
type
The type of the source (e.g., WMS, WMTS, etc.) -
url
The URL for the source (base url) -
eula
The EULA for the source -
attribution_text
The attribution text for the source -
attribution_url
The attribution URL for the source -
permission_reference_url
The permission reference url (i.e., how do we know we have permission?) -
logo_image
The logo to be used for the source -
logo_url
The logo url -
terms_of_use_text
The TOU text -
terms_of_use_url
The URL for the TOU -
country_code
The country code for the source (usually ISO 3166-1 alpha-2) -
date
The date for the source -
cookies
The cookies required to get the source -
bounds
The bounds of the source -
shapes
The shape of the source (mostly used for visual aid purposes) -
icon
The icon for the source (not necessarily the same as the logo) -
description
The description of the source -
default_layers
The default layers for the source, if any (mostly useful for imagery) -
customHttpHeaders
Any custom HTTP headers -
category
The category string for the source
-
-
Constructor Details
-
SourcePreferenceEntry
public SourcePreferenceEntry()Constructs a new emptySourcePreferenceEntry. -
SourcePreferenceEntry
Constructs a newSourcePreferenceEntryfrom a givenSourceInfo.- Parameters:
i- The corresponding source info
-
-
Method Details