Enum ProgramArguments.Option

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DEBUG
      --debug Print debugging messages to console
      DOWNLOAD
      --download=minlat,minlon,maxlat,maxlon Download the bounding box
      --download=<URL> Download the location at the URL (with lat=x&lon=y&zoom=z)
      --download=<filename> Open a file (any file type that can be opened with File/Open)
      DOWNLOADGPS
      --downloadgps=minlat,minlon,maxlat,maxlon Download the bounding box as raw GPS
      --downloadgps=<URL> Download the location at the URL (with lat=x&lon=y&zoom=z) as raw GPS
      GEOMETRY
      --geometry=widthxheight(+|-)x(+|-)y Standard unix geometry argument
      HELP
      --help|-h Show this help
      LANGUAGE
      --language=<language> Set the language
      LOAD_PREFERENCES
      --load-preferences=<url-to-xml> Changes preferences according to the XML file
      MAXIMIZE
      --maximize Launch in maximized mode
      NO_MAXIMIZE
      --no-maximize Do not launch in maximized mode
      OFFLINE
      --offline=<OSM_API|JOSM_WEBSITE|CACHE_UPDATES|CERTIFICATES|ALL> Disable access to the given resource(s), delimited by comma
      RESET_PREFERENCES
      --reset-preferences Reset the preferences to default
      SELECTION
      --selection=<searchstring> Select with the given search
      SET
      --set=<key>=<value> Set preference key to value
      SKIP_PLUGINS
      --skip-plugins
      STATUS_REPORT
      --status-report Show status report with useful information that can be attached to bugs
      TRACE
      --trace Print detailed debugging messages to console
      VERSION
      --version Displays the JOSM version and exits
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private String name  
      private boolean requiresArg  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Option​(boolean requiresArgument)  
    • Constructor Detail

      • Option

        private Option​(boolean requiresArgument)
    • Method Detail

      • values

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

        public static ProgramArguments.Option 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
      • getName

        public String getName()
        Replies the option name
        Returns:
        The option name, in lowercase
      • requiresArgument

        public boolean requiresArgument()
        Determines if this option requires an argument.
        Returns:
        true if this option requires an argument, false otherwise