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 ["a label"?!] PRIMITIVE: the primitive has a tag "a label" whose value evaluates to a false-value LINK: not supported
Condition.ClassCondition, Condition.Context, Condition.ExpressionCondition, Condition.IndexCondition, Condition.KeyCondition, Condition.KeyMatchType, Condition.KeyValueCondition, Condition.KeyValueRegexpCondition, Condition.Op, Condition.PseudoClassCondition, Condition.RoleCondition, Condition.SimpleKeyValueCondition
Modifier and Type | Field and Description |
---|---|
Predicate<String> |
containsPattern |
String |
label |
Condition.KeyMatchType |
matchType |
boolean |
negateResult |
COMPARISON_OPERATERS
Constructor and Description |
---|
Condition.KeyCondition(String label,
boolean negateResult,
Condition.KeyMatchType matchType) |
Modifier and Type | Method and Description |
---|---|
boolean |
applies(Environment e) |
Tag |
asTag() |
String |
toString() |
createClassCondition, createExpressionCondition, createKeyCondition, createKeyValueCondition, createPseudoClassCondition
public final boolean negateResult
public final Condition.KeyMatchType matchType
public Predicate<String> containsPattern
public Condition.KeyCondition(String label, boolean negateResult, Condition.KeyMatchType matchType)