public class IsaProperty extends Object implements UniqueVarProperty
| Constructor and Description |
|---|
IsaProperty(VarAdmin type) |
| Modifier and Type | Method and Description |
|---|---|
default void |
buildString(StringBuilder builder)
Build a Graql string representation of this property
|
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> |
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`. |
String |
getName() |
String |
getProperty() |
VarAdmin |
getType() |
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, waitisUniquecheckInsertable, checkValid, delete, insertgetImplicitInnerVars, graqlStringpublic IsaProperty(VarAdmin type)
public VarAdmin getType()
public String getName()
public String getProperty()
public 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 buildString(StringBuilder builder)
VarPropertybuildString in interface VarPropertybuilder - a string builder to append topublic final void checkValid(MindmapsGraph graph, VarAdmin var) throws IllegalStateException
VarPropertyInternalcheckValid 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 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.