D - The data tyoe of this resource type.public interface ResourceType<D> extends Type
| Modifier and Type | Interface and Description |
|---|---|
static class |
ResourceType.DataType<D>
A class used to hold the supported data types of resources and any other concepts.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceType<D> |
deletePlaysRole(RoleType roleType) |
ResourceType.DataType<D> |
getDataType() |
String |
getRegex() |
Collection<Resource<D>> |
instances() |
ResourceType<D> |
playsRole(RoleType roleType) |
ResourceType<D> |
setAbstract(Boolean isAbstract) |
ResourceType<D> |
setRegex(String regex) |
Collection<ResourceType<D>> |
subTypes() |
ResourceType<D> |
superType() |
ResourceType<D> |
superType(ResourceType<D> type) |
getRulesOfConclusion, getRulesOfHypothesis, isAbstract, playsRolesasEntity, asEntityType, asInstance, asRelation, asRelationType, asResource, asResourceType, asRoleType, asRule, asRuleType, asType, delete, getId, isEntity, isEntityType, isInstance, isRelation, isRelationType, isResource, isResourceType, isRoleType, isRule, isRuleType, isType, typecompareToResourceType<D> setAbstract(Boolean isAbstract)
setAbstract in interface TypeisAbstract - Specifies if the Resource Type is abstract (true) or not (false).
If the Resource Type is abstract it is not allowed to have any instances.ResourceType<D> superType(ResourceType<D> type)
type - The super type of this Resource Type.ResourceType<D> playsRole(RoleType roleType)
ResourceType<D> deletePlaysRole(RoleType roleType)
deletePlaysRole in interface TyperoleType - The Role Type which the instances of this Resource Type should no longer be allowed to play.ResourceType<D> setRegex(String regex)
regex - The regular expression which instances of this resource must conform to.ResourceType<D> superType()
Collection<ResourceType<D>> subTypes()
Collection<Resource<D>> instances()
ResourceType.DataType<D> getDataType()
String getRegex()
Copyright © 2016. All rights reserved.