public class RoleImpl extends SchemaConceptImpl<Role> implements Role
An SchemaConcept which defines a Role which can be played in a RelationshipType.
This SchemaConcept defines the roles which make up a RelationshipType.
It has some additional functionality:
1. It cannot play a Role to itself.
2. It is special in that it is unique to RelationshipTypes.
| Modifier and Type | Method and Description |
|---|---|
static RoleImpl |
create(VertexElement vertexElement,
Role type) |
static RoleImpl |
get(VertexElement vertexElement) |
java.util.stream.Stream<Type> |
playedByTypes() |
java.util.stream.Stream<RelationshipType> |
relationshipTypes() |
java.util.stream.Stream<Casting> |
rolePlayers() |
delete, from, getLabel, getLabelId, getRulesOfConclusion, getRulesOfHypothesis, innerToString, isImplicit, setLabel, sub, subs, sup, sup, supsbaseType, caches, createShard, currentShard, deleteNode, equals, getId, hashCode, isDeleted, keyspace, shardCount, shards, toString, vertexclone, finalize, getClass, notify, notifyAll, wait, wait, waitasRole, isRole, setLabel, sub, subs, sup, sup, supsasSchemaConcept, getLabel, getLabelId, getRulesOfConclusion, getRulesOfHypothesis, isImplicit, isSchemaConceptasAttribute, asAttributeType, asEntity, asEntityType, asRelationship, asRelationshipType, asRule, asThing, asType, delete, getId, isAttribute, isAttributeType, isDeleted, isEntity, isEntityType, isRelationship, isRelationshipType, isRule, isThing, isType, keyspacefromfrom, registerCache, txCacheClear, txCacheFlushpublic static RoleImpl get(VertexElement vertexElement)
public static RoleImpl create(VertexElement vertexElement, Role type)
public java.util.stream.Stream<RelationshipType> relationshipTypes()
relationshipTypes in interface Rolepublic java.util.stream.Stream<Type> playedByTypes()
playedByTypes in interface Rolepublic java.util.stream.Stream<Casting> rolePlayers()
Copyright © 2018 Grakn Labs Ltd. All rights reserved.