public enum RelationType extends Enum<RelationType>
Constants of this enum specifies the relation of an element and an anchor element.
The values are used in Relation.type() annotation property.
About ibello search engine see hu.ibello.search.
Relation| Enum Constant and Description |
|---|
ANCESTOR_OF
The desired element is the ancestor of the anchor element.
|
DESCENDANT_OF
The desired element is the descendant of the anchor element.
|
NEAREST_TO
The desired element is near to the anchor element in the HTML structure.
|
| Modifier and Type | Method and Description |
|---|---|
static RelationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RelationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelationType DESCENDANT_OF
public static final RelationType ANCESTOR_OF
public static final RelationType NEAREST_TO
public static RelationType[] values()
for (RelationType c : RelationType.values()) System.out.println(c);
public static RelationType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCreated by Kornél Simon, 2022