Enum OsmScopes
- java.lang.Object
-
- java.lang.Enum<OsmScopes>
-
- org.openstreetmap.josm.data.oauth.osm.OsmScopes
-
-
Enum Constant Summary
Enum Constants Enum Constant Description read_gpxRead private GPS tracesread_prefsRead user preferenceswrite_apiModify the mapwrite_diaryWrite diary postswrite_gpxUpload GPS traceswrite_notesModify noteswrite_prefsModify user preferences
-
Constructor Summary
Constructors Modifier Constructor Description privateOsmScopes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OsmScopesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static OsmScopes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
read_prefs
public static final OsmScopes read_prefs
Read user preferences
-
write_prefs
public static final OsmScopes write_prefs
Modify user preferences
-
write_diary
public static final OsmScopes write_diary
Write diary posts
-
write_notes
public static final OsmScopes write_notes
Modify notes
-
-
Constructor Detail
-
OsmScopes
private OsmScopes()
-
-
Method Detail
-
values
public static OsmScopes[] 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 (OsmScopes c : OsmScopes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OsmScopes valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-