public abstract class Condition extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Condition.Context
context, where the condition applies
|
static class |
Condition.ExpressionCondition |
static class |
Condition.IndexCondition |
static class |
Condition.KeyCondition
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
[!"
|
static class |
Condition.KeyValueCondition
Represents a key/value condition which is either applied to a primitive.
|
static class |
Condition.Op |
static class |
Condition.PseudoClassCondition |
static class |
Condition.RoleCondition |
Modifier and Type | Field and Description |
---|---|
static EnumSet<Condition.Op> |
COMPARISON_OPERATERS |
Constructor and Description |
---|
Condition() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
applies(Environment e) |
static Condition |
create(Expression e,
Condition.Context context) |
static Condition |
create(String k,
boolean not,
boolean yes,
Condition.Context context) |
static Condition |
create(String id,
boolean not,
Condition.Context context) |
static Condition |
create(String k,
String v,
Condition.Op op,
Condition.Context context) |
public static final EnumSet<Condition.Op> COMPARISON_OPERATERS
public Condition()
public abstract boolean applies(Environment e)
public static Condition create(String k, String v, Condition.Op op, Condition.Context context)
public static Condition create(String k, boolean not, boolean yes, Condition.Context context)
public static Condition create(String id, boolean not, Condition.Context context)
public static Condition create(Expression e, Condition.Context context)