Class TagInfoKeyTagCommon

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    TagInfoKeys, TagInfoTags

    public abstract class TagInfoKeyTagCommon
    extends java.lang.Object
    implements java.io.Serializable
    Common fields for Tags and Keys from TagInfo
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected TagInfoKeyTagCommon​(java.util.Map<java.lang.String,​java.lang.Object> row)  
    • Constructor Detail

      • TagInfoKeyTagCommon

        protected TagInfoKeyTagCommon​(java.util.Map<java.lang.String,​java.lang.Object> row)
    • Method Detail

      • getAndCast

        @Nullable
        protected static <T> T getAndCast​(java.util.Map<java.lang.String,​java.lang.Object> row,
                                          java.lang.String key,
                                          java.lang.Class<T> clazz)
        Get and cast a specified key from a row map
        Type Parameters:
        T - The type to return
        Parameters:
        row - The row from the database
        key - The key to get from the map
        clazz - The class of the return object
        Returns:
        null if the key does not exist in the map, or could not be cast.
      • getCountAll

        public java.lang.Number getCountAll()
        Returns:
        The count of the occurrences
      • getCountNodes

        public java.lang.Number getCountNodes()
        Returns:
        The count of the occurrences on nodes
      • getCountRelations

        public java.lang.Number getCountRelations()
        Returns:
        The count of the occurrences on relations
      • getCountWays

        public java.lang.Number getCountWays()
        Returns:
        The count of the occurrences on ways
      • getKey

        public java.lang.String getKey()
        Returns:
        The key for the tag
      • isInWiki

        public boolean isInWiki()
        Returns:
        true if in the OSM wiki
      • isInWikiEn

        public boolean isInWikiEn()
        Returns:
        true if in the English OSM wiki