public static enum Schema.Resource extends Enum<Schema.Resource>
| Enum Constant and Description |
|---|
HAS_RESOURCE
The name of the generic has-resource relationship, used for attaching resources to instances with the 'has' syntax
|
HAS_RESOURCE_OWNER
The name of a role in has-resource, played by the owner of the resource
|
HAS_RESOURCE_VALUE
The name of a role in has-resource, played by the resource
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName(String resourceTypeName) |
static Schema.Resource |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Schema.Resource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Schema.Resource HAS_RESOURCE
public static final Schema.Resource HAS_RESOURCE_OWNER
public static final Schema.Resource HAS_RESOURCE_VALUE
public static Schema.Resource[] values()
for (Schema.Resource c : Schema.Resource.values()) System.out.println(c);
public static Schema.Resource valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2017 Grakn Labs Ltd. All rights reserved.