Enum TaggingPresetType

    • Method Detail

      • values

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

        public static TaggingPresetType 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
      • getIconName

        public String getIconName()
        Replies the SVG icon name.
        Returns:
        the SVG icon name
      • getName

        public String getName()
        Replies the name, as used in XML presets.
        Returns:
        the name: "node", "way", "relation" or "closedway"
      • forPrimitive

        public static TaggingPresetType forPrimitive​(IPrimitive p)
        Determines the TaggingPresetType of a given primitive.
        Parameters:
        p - The OSM primitive
        Returns:
        the TaggingPresetType of p
      • fromString

        public static TaggingPresetType fromString​(String type)
        Determines the TaggingPresetType from a given string.
        Parameters:
        type - The OSM primitive type as string ("node", "way", "relation" or "closedway")
        Returns:
        the TaggingPresetType from type