public interface Resource<D> extends Instance
| Modifier and Type | Method and Description |
|---|---|
ResourceType.DataType<D> |
dataType()
Retrieves the data type of this Resource's ResourceType.
|
D |
getValue()
Retrieves the value of the Resource.
|
Instance |
owner()
If the Resource is unique, this method retrieves the Instance that possesses it.
|
Collection<Instance> |
ownerInstances()
Retrieves the set of all Instances that possess this Resource.
|
ResourceType<D> |
type()
Retrieves the type of the Resource, that is, the ResourceType of which this resource is an Instance.
|
hasResource, playsRoles, relations, resourcesasEntity, asEntityType, asInstance, asRelation, asRelationType, asResource, asResourceType, asRoleType, asRule, asRuleType, asType, delete, getId, isEntity, isEntityType, isInstance, isRelation, isRelationType, isResource, isResourceType, isRoleType, isRule, isRuleType, isTypecompareToD getValue()
D - The data type of this resource. Supported Types include: String, Long, Double, and BooleanResourceType<D> type()
ResourceType.DataType<D> dataType()
D - The data type of the Resource. Supported Types include: String, Long, Double, and BooleanCollection<Instance> ownerInstances()
Instance owner()
Copyright © 2016 Grakn Labs Ltd. All rights reserved.