public abstract class WhenProperty extends RuleProperty
when property on a Rule.
This property can be inserted and not queried.
The when side describes the left-hand of an implication, stating that when the when side of a rule is true
the then side must hold.| Constructor and Description |
|---|
WhenProperty() |
| Modifier and Type | Method and Description |
|---|---|
default void |
buildString(StringBuilder builder) |
void |
checkValid(GraknTx graph,
VarPatternAdmin var)
Check if the given property can be used in a
Match |
PropertyExecutor |
define(Var var) |
String |
getName() |
java.util.stream.Stream<VarPatternAdmin> |
getTypes() |
java.util.stream.Stream<VarPatternAdmin> |
implicitInnerVarPatterns() |
PropertyExecutor |
insert(Var var)
Returns a
PropertyExecutor that describes how to insert the given VarProperty into. |
static WhenProperty |
of(Pattern pattern) |
String |
toString() |
PropertyExecutor |
undefine(Var var) |
getProperty, mapToAtom, match, patternclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisUniquecheckInsertable, checkValid, from, innerVarPatterns, insert, undefine, uniquelyIdentifiesConceptgetTypes, graqlString, implicitInnerVarPatternspublic static final String NAME
public static WhenProperty of(Pattern pattern)
public String getName()
public PropertyExecutor define(Var var) throws GraqlQueryException
define in interface VarPropertyInternalGraqlQueryExceptionpublic void buildString(StringBuilder builder)
buildString in interface VarPropertypublic final void checkValid(GraknTx graph, VarPatternAdmin var) throws GraqlQueryException
VarPropertyInternalMatchcheckValid in interface VarPropertyInternalGraqlQueryExceptionpublic PropertyExecutor insert(Var var) throws GraqlQueryException
VarPropertyInternalPropertyExecutor that describes how to insert the given VarProperty into.insert in interface VarPropertyInternalGraqlQueryException - if this VarProperty cannot be insertedpublic PropertyExecutor undefine(Var var) throws GraqlQueryException
undefine in interface VarPropertyInternalGraqlQueryExceptionpublic java.util.stream.Stream<VarPatternAdmin> getTypes()
getTypes in interface VarPropertypublic java.util.stream.Stream<VarPatternAdmin> implicitInnerVarPatterns()
implicitInnerVarPatterns in interface VarPropertyCopyright © 2017 Grakn Labs Ltd. All rights reserved.