public enum ElementCategory extends Enum<ElementCategory>
| Modifier and Type | Method and Description |
|---|---|
static ElementCategory |
getByClazz(Class<? extends org.apache.tinkerpop.gremlin.structure.Element> clazz) |
static ElementCategory |
getByName(String name) |
Class<? extends org.apache.tinkerpop.gremlin.structure.Element> |
getElementType() |
String |
getName() |
boolean |
isInstance(TitanElement element) |
boolean |
isRelation() |
boolean |
isValidConstraint(TitanSchemaType type) |
boolean |
matchesConstraint(TitanSchemaType type,
TitanElement element) |
TitanElement |
retrieve(Object elementId,
TitanTransaction tx) |
boolean |
subsumedBy(Class<? extends org.apache.tinkerpop.gremlin.structure.Element> clazz) |
static ElementCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ElementCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ElementCategory VERTEX
public static final ElementCategory EDGE
public static final ElementCategory PROPERTY
public static ElementCategory[] values()
for (ElementCategory c : ElementCategory.values()) System.out.println(c);
public static ElementCategory 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 nullpublic Class<? extends org.apache.tinkerpop.gremlin.structure.Element> getElementType()
public boolean isRelation()
public boolean isValidConstraint(TitanSchemaType type)
public boolean matchesConstraint(TitanSchemaType type, TitanElement element)
public boolean isInstance(TitanElement element)
public boolean subsumedBy(Class<? extends org.apache.tinkerpop.gremlin.structure.Element> clazz)
public String getName()
public TitanElement retrieve(Object elementId, TitanTransaction tx)
public static final ElementCategory getByClazz(Class<? extends org.apache.tinkerpop.gremlin.structure.Element> clazz)
public static final ElementCategory getByName(String name)
Copyright © 2012–2015. All rights reserved.