Enum UploadPolicy

    • Enum Constant Detail

      • DISCOURAGED

        public static final UploadPolicy DISCOURAGED
        Upload discouraged, for example when using or distributing a private dataset.
      • BLOCKED

        public static final UploadPolicy BLOCKED
        Upload blocked. Upload options completely disabled. Intended for special cases where a warning dialog is not enough, see #12731. For the user, it shouldn't be too easy to disable this flag.
    • Method Detail

      • values

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

        public static UploadPolicy 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 upload attribute
      • of

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