Enum WikiDataItem
- java.lang.Object
-
- java.lang.Enum<WikiDataItem>
-
- org.openstreetmap.atlas.checks.database.wikidata.WikiDataItem
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WikiDataItem>,WikiItemInterface
public enum WikiDataItem extends java.lang.Enum<WikiDataItem> implements WikiItemInterface
WikiDataItem special entries
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABANDONED_Q19APPROVED_Q15DE_FACTO_Q13DEPRECATED_Q5061DISCARDABLE_Q7550DRAFT_Q18ELEMENT_Q9GROUP_Q12IMPORTED_Q21146IN_USE_Q14IS_ALLOWED_Q8000IS_PROHIBITED_Q8001KEY_Q7OBSOLETE_Q5060OSM_CONCEPT_Q10PROPOSED_Q20REJECTED_Q16SANDBOX_Q2761STATUS_Q11Status of the key/tagSTATUS_Q8010Allowed on nodes/ways/relations/areasTAG_Q2VOTING_Q17WELL_KNOWN_VALUES_Q8
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WikiDataItemfromValue(java.lang.String value)Get a well-known wiki data item from a valuejava.lang.StringgetDescriptor()java.lang.StringgetId()WikiDataItemgetParent()Get the parent WikiDataItem for this, if anybooleanmatches(java.lang.Object other)Check if the object matches this (essentially "equals")java.lang.StringtoString()static WikiDataItemvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WikiDataItem[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ELEMENT_Q9
public static final WikiDataItem ELEMENT_Q9
-
KEY_Q7
public static final WikiDataItem KEY_Q7
-
TAG_Q2
public static final WikiDataItem TAG_Q2
-
STATUS_Q11
public static final WikiDataItem STATUS_Q11
Status of the key/tag
-
STATUS_Q8010
public static final WikiDataItem STATUS_Q8010
Allowed on nodes/ways/relations/areas
-
DE_FACTO_Q13
public static final WikiDataItem DE_FACTO_Q13
-
IN_USE_Q14
public static final WikiDataItem IN_USE_Q14
-
APPROVED_Q15
public static final WikiDataItem APPROVED_Q15
-
REJECTED_Q16
public static final WikiDataItem REJECTED_Q16
-
VOTING_Q17
public static final WikiDataItem VOTING_Q17
-
DRAFT_Q18
public static final WikiDataItem DRAFT_Q18
-
ABANDONED_Q19
public static final WikiDataItem ABANDONED_Q19
-
PROPOSED_Q20
public static final WikiDataItem PROPOSED_Q20
-
OBSOLETE_Q5060
public static final WikiDataItem OBSOLETE_Q5060
-
DEPRECATED_Q5061
public static final WikiDataItem DEPRECATED_Q5061
-
DISCARDABLE_Q7550
public static final WikiDataItem DISCARDABLE_Q7550
-
IMPORTED_Q21146
public static final WikiDataItem IMPORTED_Q21146
-
IS_ALLOWED_Q8000
public static final WikiDataItem IS_ALLOWED_Q8000
-
IS_PROHIBITED_Q8001
public static final WikiDataItem IS_PROHIBITED_Q8001
-
WELL_KNOWN_VALUES_Q8
public static final WikiDataItem WELL_KNOWN_VALUES_Q8
-
GROUP_Q12
public static final WikiDataItem GROUP_Q12
-
OSM_CONCEPT_Q10
public static final WikiDataItem OSM_CONCEPT_Q10
-
SANDBOX_Q2761
public static final WikiDataItem SANDBOX_Q2761
-
-
Method Detail
-
values
public static WikiDataItem[] 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 (WikiDataItem c : WikiDataItem.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WikiDataItem 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
-
fromValue
public static WikiDataItem fromValue(java.lang.String value)
Get a well-known wiki data item from a value- Parameters:
value- The value to look for- Returns:
- A WikiDataItem or
null
-
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
-
getParent
@Nullable public WikiDataItem getParent()
Get the parent WikiDataItem for this, if any- Returns:
- The parent item or
null
-
matches
public boolean matches(java.lang.Object other)
Check if the object matches this (essentially "equals")- Parameters:
other- The object to check- Returns:
trueif the object is the same enum OR it is a string that matches the description (ignoring case).
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<WikiDataItem>
-
-