Package org.openstreetmap.josm.io
Enum NoteReader.NoteParseMode
- java.lang.Object
-
- java.lang.Enum<NoteReader.NoteParseMode>
-
- org.openstreetmap.josm.io.NoteReader.NoteParseMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NoteReader.NoteParseMode>
- Enclosing class:
- NoteReader
private static enum NoteReader.NoteParseMode extends java.lang.Enum<NoteReader.NoteParseMode>
Notes can be represented in two XML formats. One is returned by the API while the other is used to generate the notes dump file. The parser needs to know which one it is handling.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
NoteParseMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NoteReader.NoteParseMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NoteReader.NoteParseMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
API
public static final NoteReader.NoteParseMode API
-
DUMP
public static final NoteReader.NoteParseMode DUMP
-
-
Constructor Detail
-
NoteParseMode
private NoteParseMode()
-
-
Method Detail
-
values
public static NoteReader.NoteParseMode[] 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 (NoteReader.NoteParseMode c : NoteReader.NoteParseMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NoteReader.NoteParseMode 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
-
-