Enum DownloadPolicy

    • Enum Constant Detail

      • BLOCKED

        public static final DownloadPolicy BLOCKED
        Download blocked. Download options completely disabled. Intended for private layers, see #8039.
    • Method Detail

      • values

        public static DownloadPolicy[] 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 (DownloadPolicy c : DownloadPolicy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DownloadPolicy valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getXmlFlag

        public String getXmlFlag()
        Get the corresponding value of the upload='...' XML-attribute in the .osm file.
        Returns:
        value of the download attribute
      • of

        public static DownloadPolicy of​(String xmlFlag)
        Returns the DownloadPolicy for the given upload='...' XML-attribute
        Parameters:
        xmlFlag - download='...' XML-attribute to convert
        Returns:
        DownloadPolicy value
        Throws:
        IllegalArgumentException - for invalid values