Class PathElement
- java.lang.Object
-
- org.openrefine.wikibase.schema.validation.PathElement
-
public class PathElement extends Object
A part of a path to a faulty/missing element in a schema.- Author:
- Antonin Delpeuch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PathElement.Type
The type of data field to follow to reach the faulty/missing part of the schema
-
Constructor Summary
Constructors Constructor Description PathElement(PathElement.Type type)
A PathElement in which there is a single element of the given type, so the ordinal number is not needed.PathElement(PathElement.Type type, int position)
Constructs a PathElement given by the type of element in which to recurse, and an ordinal number indicating which of the children of that type to follow.PathElement(PathElement.Type type, String name)
Constructs a PathElement given by the type of the element in which to recurse, as well as a string to identify which one (in case there are multiple ones).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getName()
int
getPosition()
PathElement.Type
getType()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
PathElement
public PathElement(PathElement.Type type, int position)
Constructs a PathElement given by the type of element in which to recurse, and an ordinal number indicating which of the children of that type to follow.
-
PathElement
public PathElement(PathElement.Type type, String name)
Constructs a PathElement given by the type of the element in which to recurse, as well as a string to identify which one (in case there are multiple ones). For instance, indicating which property to follow, to select the right statement in an item.
-
PathElement
public PathElement(PathElement.Type type)
A PathElement in which there is a single element of the given type, so the ordinal number is not needed.
-
-
Method Detail
-
getType
public PathElement.Type getType()
-
getName
public String getName()
-
getPosition
public int getPosition()
-
-