Class SourcePreferenceEntry<T extends SourceInfo<?,​?,​?,​?>>

  • 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 source
      java.lang.String attribution_url
      The attribution URL for the source
      java.lang.String bounds
      The bounds of the source
      java.lang.String category
      The category string for the source
      java.lang.String cookies
      The cookies required to get the source
      java.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 headers
      java.lang.String date
      The date for the source
      java.lang.String default_layers
      The default layers for the source, if any (mostly useful for imagery)
      java.lang.String description
      The description of the source
      java.lang.String eula
      The EULA for the source
      java.lang.String icon
      The icon for the source (not necessarily the same as the logo)
      java.lang.String id
      A *unique* id for the source
      java.lang.String logo_image
      The logo to be used for the source
      java.lang.String logo_url
      The logo url
      java.lang.String name
      The name of the source
      java.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 text
      java.lang.String terms_of_use_url
      The URL for the TOU
      java.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 empty SourcePreferenceEntry.
      SourcePreferenceEntry​(T i)
      Constructs a new SourcePreferenceEntry from a given SourceInfo.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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_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​(T i)
        Constructs a new SourcePreferenceEntry from a given SourceInfo.
        Parameters:
        i - The corresponding source info
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object