Enum PathElement.Type
- java.lang.Object
-
- java.lang.Enum<PathElement.Type>
-
- org.openrefine.wikibase.schema.validation.PathElement.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<PathElement.Type>
- Enclosing class:
- PathElement
public static enum PathElement.Type extends Enum<PathElement.Type>
The type of data field to follow to reach the faulty/missing part of the schema
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PathElement.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static PathElement.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENTITY
public static final PathElement.Type ENTITY
-
SUBJECT
public static final PathElement.Type SUBJECT
-
LABEL
public static final PathElement.Type LABEL
-
DESCRIPTION
public static final PathElement.Type DESCRIPTION
-
ALIAS
public static final PathElement.Type ALIAS
-
SITELINK
public static final PathElement.Type SITELINK
-
BADGE
public static final PathElement.Type BADGE
-
STATEMENT
public static final PathElement.Type STATEMENT
-
PROPERTY
public static final PathElement.Type PROPERTY
-
RANK
public static final PathElement.Type RANK
-
VALUE
public static final PathElement.Type VALUE
-
UNIT
public static final PathElement.Type UNIT
-
LANGUAGE
public static final PathElement.Type LANGUAGE
-
QUALIFIER
public static final PathElement.Type QUALIFIER
-
REFERENCE
public static final PathElement.Type REFERENCE
-
FILENAME
public static final PathElement.Type FILENAME
-
FILEPATH
public static final PathElement.Type FILEPATH
-
WIKITEXT
public static final PathElement.Type WIKITEXT
-
-
Method Detail
-
values
public static PathElement.Type[] 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 (PathElement.Type c : PathElement.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PathElement.Type valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-