Enum WikiProperty
- java.lang.Object
-
- java.lang.Enum<WikiProperty>
-
- org.openstreetmap.atlas.checks.database.wikidata.WikiProperty
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WikiProperty>,WikiItemInterface
public enum WikiProperty extends java.lang.Enum<WikiProperty> implements WikiItemInterface
Known Wiki Properties for OSM Wiki Data
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tget(java.util.Map<java.lang.String,T> map)Get the value from a map where the enum is a key.java.lang.StringgetDescriptor()java.lang.StringgetId()static WikiPropertyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WikiProperty[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ID
public static final WikiProperty ID
-
INSTANCE_OF_P2
public static final WikiProperty INSTANCE_OF_P2
-
SUBCLASS_OF_P3
public static final WikiProperty SUBCLASS_OF_P3
-
IMAGE_P4
@Deprecated public static final WikiProperty IMAGE_P4
Deprecated.
-
STATUS_P6
public static final WikiProperty STATUS_P6
-
WIKIDATA_EQUIVALENT_P7
public static final WikiProperty WIKIDATA_EQUIVALENT_P7
-
FORMATTER_URL_P8
public static final WikiProperty FORMATTER_URL_P8
-
KEY_TYPE_P9
public static final WikiProperty KEY_TYPE_P9
-
KEY_FOR_THIS_TAG_P10
public static final WikiProperty KEY_FOR_THIS_TAG_P10
-
PROPOSAL_DISCUSSION_P11
public static final WikiProperty PROPOSAL_DISCUSSION_P11
-
WIKIDATA_CONCEPT_P12
public static final WikiProperty WIKIDATA_CONCEPT_P12
-
VALUE_VALIDATION_REGEX_P13
public static final WikiProperty VALUE_VALIDATION_REGEX_P13
-
PERMANENT_KEY_ID_P16
public static final WikiProperty PERMANENT_KEY_ID_P16
-
REDIRECT_TO_P17
public static final WikiProperty REDIRECT_TO_P17
-
DIFFERENT_FROM_P18
public static final WikiProperty DIFFERENT_FROM_P18
-
PERMANENT_TAG_ID_P19
public static final WikiProperty PERMANENT_TAG_ID_P19
-
PROPERTY_DIFFERENT_FROM_P20
public static final WikiProperty PROPERTY_DIFFERENT_FROM_P20
-
RELATION_ROLE_ID_P21
public static final WikiProperty RELATION_ROLE_ID_P21
-
REQUIRED_KEY_OR_TAG_P22
public static final WikiProperty REQUIRED_KEY_OR_TAG_P22
-
GROUP_P25
public static final WikiProperty GROUP_P25
-
LIMITED_TO_LANGUAGE_P26
public static final WikiProperty LIMITED_TO_LANGUAGE_P26
-
EXCLUDING_REGION_QUALIFIER_P27
@Deprecated public static final WikiProperty EXCLUDING_REGION_QUALIFIER_P27
Deprecated.
-
IMAGE_P28
public static final WikiProperty IMAGE_P28
-
MUST_ONLY_BE_USED_IN_REGION_P29
public static final WikiProperty MUST_ONLY_BE_USED_IN_REGION_P29
-
NOT_TO_BE_USED_IN_REGION_P30
public static final WikiProperty NOT_TO_BE_USED_IN_REGION_P30
-
DOCUMENTATION_WIKI_PAGES_P31
public static final WikiProperty DOCUMENTATION_WIKI_PAGES_P31
-
LANGUAGE_CODE_P32
public static final WikiProperty LANGUAGE_CODE_P32
-
USE_ON_NODES_P33
public static final WikiProperty USE_ON_NODES_P33
-
USE_ON_WAYS_P34
public static final WikiProperty USE_ON_WAYS_P34
-
USE_ON_AREAS_P35
public static final WikiProperty USE_ON_AREAS_P35
-
USE_ON_RELATIONS_P36
public static final WikiProperty USE_ON_RELATIONS_P36
-
USE_ON_CHANGESETS_P37
public static final WikiProperty USE_ON_CHANGESETS_P37
-
RENDERING_IMAGE_P38
@Deprecated public static final WikiProperty RENDERING_IMAGE_P38
Deprecated.
-
OSM_CARTO_IMAGE_P39
public static final WikiProperty OSM_CARTO_IMAGE_P39
-
TAG_FOR_THIS_RELATION_TYPE_P40
public static final WikiProperty TAG_FOR_THIS_RELATION_TYPE_P40
-
PERMANENT_RELATION_TYPE_ID_P41
public static final WikiProperty PERMANENT_RELATION_TYPE_ID_P41
-
BELONGS_TO_RELATION_TYPE_P43
public static final WikiProperty BELONGS_TO_RELATION_TYPE_P43
-
INCOMPATIBLE_WITH_P44
public static final WikiProperty INCOMPATIBLE_WITH_P44
-
IMPLIES_P45
public static final WikiProperty IMPLIES_P45
-
COMBINATION_P46
public static final WikiProperty COMBINATION_P46
-
IMAGE_CAPTION_P47
public static final WikiProperty IMAGE_CAPTION_P47
-
LIMITED_TO_REGION_P48
public static final WikiProperty LIMITED_TO_REGION_P48
-
GEOGRAPHIC_CODE_P49
public static final WikiProperty GEOGRAPHIC_CODE_P49
-
REDIRECTS_TO_WIKI_PAGE_P50
public static final WikiProperty REDIRECTS_TO_WIKI_PAGE_P50
-
IDENTICAL_TO_P51
public static final WikiProperty IDENTICAL_TO_P51
-
-
Method Detail
-
values
public static WikiProperty[] 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 (WikiProperty c : WikiProperty.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WikiProperty 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
-
get
@Nullable public <T> T get(@Nonnull java.util.Map<java.lang.String,T> map)Get the value from a map where the enum is a key. This is short formap.get(enum.name())- Type Parameters:
T- The return type of the map- Parameters:
map- The map to get the enum from (should not be null)- Returns:
- The value in the map
-
getDescriptor
public java.lang.String getDescriptor()
- Specified by:
getDescriptorin interfaceWikiItemInterface- Returns:
- The base description for the wiki item
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceWikiItemInterface- Returns:
- The unique ID for the wiki item
-
-