Class Tag

  • All Implemented Interfaces:
    Formatter

    public class Tag
    extends java.lang.Object
    implements Formatter
    Replace {key} with the value
    • Constructor Summary

      Constructors 
      Constructor Description
      Tag​(@NotNull java.lang.String key)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.lang.String format​(@NotNull ch.poole.osm.josmfilterparser.Type type, @Nullable ch.poole.osm.josmfilterparser.Meta meta, @Nullable java.util.Map<java.lang.String,​java.lang.String> tags)
      Format a concrete OSM element
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Tag

        public Tag​(@NotNull
                   @NotNull java.lang.String key)
    • Method Detail

      • format

        @NotNull
        public @NotNull java.lang.String format​(@NotNull
                                                @NotNull ch.poole.osm.josmfilterparser.Type type,
                                                @Nullable
                                                @Nullable ch.poole.osm.josmfilterparser.Meta meta,
                                                @Nullable
                                                @Nullable java.util.Map<java.lang.String,​java.lang.String> tags)
        Description copied from interface: Formatter
        Format a concrete OSM element
        Specified by:
        format in interface Formatter
        Parameters:
        type - the Type of the OSM element
        meta - meta information for the OSM element or null
        tags - tags of the OSM element or null
        Returns:
        the formated "name"
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object