Class TagInfoKeyTagCommon
- java.lang.Object
-
- org.openstreetmap.atlas.checks.database.taginfo.TagInfoKeyTagCommon
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
TagInfoKeys,TagInfoTags
public abstract class TagInfoKeyTagCommon extends java.lang.Object implements java.io.SerializableCommon fields for Tags and Keys from TagInfo- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTagInfoKeyTagCommon(java.util.Map<java.lang.String,java.lang.Object> row)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static <T> TgetAndCast(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 mapjava.lang.NumbergetCountAll()java.lang.NumbergetCountNodes()java.lang.NumbergetCountRelations()java.lang.NumbergetCountWays()java.lang.StringgetKey()booleanisInWiki()booleanisInWikiEn()
-
-
-
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 databasekey- The key to get from the mapclazz- The class of the return object- Returns:
nullif 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:
trueif in the OSM wiki
-
isInWikiEn
public boolean isInWikiEn()
- Returns:
trueif in the English OSM wiki
-
-