public interface VarAdmin extends PatternAdmin, Var
| Modifier and Type | Method and Description |
|---|---|
default VarAdmin |
asVar() |
Optional<ConceptId> |
getId() |
Set<VarAdmin> |
getImplicitInnerVars()
Get all inner variables, including implicit variables such as in a has-resource property
|
Set<VarAdmin> |
getInnerVars() |
String |
getPrintableName() |
java.util.stream.Stream<VarProperty> |
getProperties()
Get a stream of all properties on this variable
|
<T extends VarProperty> |
getProperties(Class<T> type)
Get a stream of all properties of a particular type on this variable
|
<T extends UniqueVarProperty> |
getProperty(Class<T> type)
Get a unique property of a particular type on this variable, if it exists
|
Optional<String> |
getTypeName() |
Set<String> |
getTypeNames() |
VarName |
getVarName() |
<T extends VarProperty> |
hasProperty(Class<T> type)
Get whether this
Var has a VarProperty of the given type |
boolean |
isUserDefinedName() |
default boolean |
isVar() |
void |
setVarName(VarName name) |
asConjunction, asDisjunction, cloneMe, getDisjunctiveNormalForm, getVars, isConjunction, isDisjunctionadmin, datatype, has, has, has, has, has, hasKey, hasKey, hasResource, hasResource, hasRole, hasRole, hasScope, id, isa, isa, isAbstract, lhs, name, neq, neq, playsRole, playsRole, regex, rel, rel, rel, rel, rel, rel, rhs, sub, sub, value, value, valuedefault boolean isVar()
isVar in interface PatternAdmindefault VarAdmin asVar()
asVar in interface PatternAdminVarName getVarName()
void setVarName(VarName name)
name - the new variable name of this variableboolean isUserDefinedName()
java.util.stream.Stream<VarProperty> getProperties()
<T extends VarProperty> java.util.stream.Stream<T> getProperties(Class<T> type)
T - the type of VarProperty to returntype - the class of VarProperty to return<T extends UniqueVarProperty> Optional<T> getProperty(Class<T> type)
T - the type of VarProperty to returntype - the class of VarProperty to return<T extends VarProperty> boolean hasProperty(Class<T> type)
Var has a VarProperty of the given typeT - the type of the VarPropertytype - the type of the VarPropertyVar has a VarProperty of the given typeOptional<ConceptId> getId()
Optional<String> getTypeName()
Set<VarAdmin> getImplicitInnerVars()
String getPrintableName()
Copyright © 2017 Grakn Labs Ltd. All rights reserved.