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(JanusGraphElement element) |
boolean |
isRelation() |
boolean |
isValidConstraint(JanusGraphSchemaType type) |
boolean |
matchesConstraint(JanusGraphSchemaType type,
JanusGraphElement element) |
JanusGraphElement |
retrieve(Object elementId,
JanusGraphTransaction 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(JanusGraphSchemaType type)
public boolean matchesConstraint(JanusGraphSchemaType type, JanusGraphElement element)
public boolean isInstance(JanusGraphElement element)
public boolean subsumedBy(Class<? extends org.apache.tinkerpop.gremlin.structure.Element> clazz)
public String getName()
public JanusGraphElement retrieve(Object elementId, JanusGraphTransaction tx)
public static ElementCategory getByClazz(Class<? extends org.apache.tinkerpop.gremlin.structure.Element> clazz)
public static ElementCategory getByName(String name)
Copyright © 2012–2024. All rights reserved.