public static enum Schema.ImplicitType extends Enum<Schema.ImplicitType>
| Enum Constant and Description |
|---|
HAS
The label of the generic has-resource relationship, used for attaching resources to instances with the 'has' syntax
|
HAS_OWNER
The label of a role in has-resource, played by the owner of the resource
|
HAS_VALUE
The label of a role in has-resource, played by the resource
|
KEY
The label of the generic key relationship, used for attaching resources to instances with the 'has' syntax and additionally constraining them to be unique
|
KEY_OWNER
The label of a role in key, played by the owner of the key
|
KEY_VALUE
The label of a role in key, played by the resource
|
| Modifier and Type | Method and Description |
|---|---|
Label |
getLabel(Label resourceType) |
Label |
getLabel(String resourceType) |
static Schema.ImplicitType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Schema.ImplicitType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Schema.ImplicitType HAS
public static final Schema.ImplicitType HAS_OWNER
public static final Schema.ImplicitType HAS_VALUE
public static final Schema.ImplicitType KEY
public static final Schema.ImplicitType KEY_OWNER
public static final Schema.ImplicitType KEY_VALUE
public static Schema.ImplicitType[] values()
for (Schema.ImplicitType c : Schema.ImplicitType.values()) System.out.println(c);
public static Schema.ImplicitType 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 null@CheckReturnValue public Label getLabel(Label resourceType)
@CheckReturnValue public Label getLabel(String resourceType)
Copyright © 2017 Grakn Labs Ltd. All rights reserved.