public static class Condition.KeyCondition extends Condition
KeyCondition represent one of the following conditions in either the link or the primitive context:
["a label"] PRIMITIVE: the primitive has a tag "a label" LINK: the parent is a relation and it has at least one member with the role "a label" referring to the child [!"a label"] PRIMITIVE: the primitive doesn't have a tag "a label" LINK: the parent is a relation but doesn't have a member with the role "a label" referring to the child ["a label"?] PRIMITIVE: the primitive has a tag "a label" whose value evaluates to a true-value LINK: not supported
Condition.Context, Condition.ExpressionCondition, Condition.IndexCondition, Condition.KeyCondition, Condition.KeyValueCondition, Condition.Op, Condition.PseudoClassCondition, Condition.RoleCondition
Modifier and Type | Field and Description |
---|---|
private boolean |
exclamationMarkPresent |
private String |
label |
private boolean |
questionMarkPresent |
COMPARISON_OPERATERS
Constructor and Description |
---|
KeyCondition(String label,
boolean exclamationMarkPresent,
boolean questionMarkPresent) |
Modifier and Type | Method and Description |
---|---|
boolean |
applies(Environment e) |
String |
toString() |
private boolean exclamationMarkPresent
private boolean questionMarkPresent
public KeyCondition(String label, boolean exclamationMarkPresent, boolean questionMarkPresent)
label
- exclamationMarkPresent
- questionMarkPresent
-