public class RelationProperty extends Object implements UniqueVarProperty, VarPropertyInternal
| Constructor and Description |
|---|
RelationProperty(<any> castings) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildString(StringBuilder builder)
Build a Graql string representation of this property
|
void |
checkInsertable(VarAdmin var)
Check if the given property can be inserted
|
void |
checkValid(MindmapsGraph graph,
VarAdmin var)
Check if the given property can be used in a match query
|
void |
checkValidProperty(MindmapsGraph graph,
VarAdmin var) |
void |
delete(MindmapsGraph graph,
Concept concept)
Delete the given property from the graph, if possible.
|
boolean |
equals(Object o) |
java.util.stream.Stream<VarAdmin.Casting> |
getCastings() |
java.util.stream.Stream<VarAdmin> |
getImplicitInnerVars()
Get a stream of any inner
VarAdmin within this `VarProperty`, including any that may have been
implicitly created (such as with "has-resource"). |
java.util.stream.Stream<VarAdmin> |
getInnerVars()
Get a stream of any inner
VarAdmin within this `VarProperty`. |
java.util.stream.Stream<VarAdmin> |
getTypes()
Get a stream of
VarAdmin that must be types. |
int |
hashCode() |
void |
insert(InsertQueryExecutor insertQueryExecutor,
Concept concept)
Insert the given property into the graph, if possible.
|
Collection<MultiTraversal> |
match(String start)
Return a collection of
MultiTraversal to match the given property in the graph |
void |
modifyShortcutTraversal(ShortcutTraversal shortcutTraversal) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisUniquecheckValid, deletegetImplicitInnerVars, graqlStringpublic java.util.stream.Stream<VarAdmin.Casting> getCastings()
public void buildString(StringBuilder builder)
VarPropertybuildString in interface VarPropertybuilder - a string builder to append topublic void modifyShortcutTraversal(ShortcutTraversal shortcutTraversal)
modifyShortcutTraversal in interface VarPropertyInternalpublic Collection<MultiTraversal> match(String start)
VarPropertyInternalMultiTraversal to match the given property in the graphmatch in interface VarPropertyInternalpublic java.util.stream.Stream<VarAdmin> getTypes()
VarPropertyVarAdmin that must be types.getTypes in interface VarPropertypublic java.util.stream.Stream<VarAdmin> getInnerVars()
VarPropertyVarAdmin within this `VarProperty`.getInnerVars in interface VarPropertygetInnerVars in interface VarPropertyInternalpublic void checkValidProperty(MindmapsGraph graph, VarAdmin var) throws IllegalStateException
IllegalStateExceptionpublic void checkInsertable(VarAdmin var) throws IllegalStateException
VarPropertyInternalcheckInsertable in interface VarPropertyInternalIllegalStateExceptionpublic void insert(InsertQueryExecutor insertQueryExecutor, Concept concept) throws IllegalStateException
VarPropertyInternalinsert in interface VarPropertyInternalinsertQueryExecutor - the instance handling the insert queryconcept - the concept to insert a property onIllegalStateExceptionpublic final void checkValid(MindmapsGraph graph, VarAdmin var) throws IllegalStateException
VarPropertyInternalcheckValid in interface VarPropertyInternalIllegalStateExceptionpublic void delete(MindmapsGraph graph, Concept concept)
VarPropertyInternaldelete in interface VarPropertyInternalgraph - the graph to operate onconcept - the concept to delete properties ofpublic java.util.stream.Stream<VarAdmin> getImplicitInnerVars()
VarPropertyVarAdmin within this `VarProperty`, including any that may have been
implicitly created (such as with "has-resource").getImplicitInnerVars in interface VarPropertyCopyright © 2016. All rights reserved.