public enum AnonymousAccessor extends Enum<AnonymousAccessor> implements Accessor
Accessor.Impl| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
addPermissionGrant(PermissionGrant grant) |
<T extends Entity> |
as(Class<T> cls)
Cast this frame to another type.
|
com.tinkerpop.blueprints.Vertex |
asVertex() |
Iterable<Accessor> |
getAllParents() |
String |
getId()
Get the unique item id.
|
String |
getIdentifier() |
static Accessor |
getInstance()
Obtain the shared instance of the Anonymous Accessor.
|
Iterable<Accessor> |
getParents() |
Iterable<PermissionGrant> |
getPermissionGrants() |
<T> T |
getProperty(Enum<?> key) |
<T> T |
getProperty(String key)
Get an arbitrary property from the underlying vertex.
|
Set<String> |
getPropertyKeys()
Get the property keys from the underlying vertex.
|
String |
getType()
Get the type key for this frame.
|
boolean |
isAdmin() |
boolean |
isAnonymous() |
static AnonymousAccessor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AnonymousAccessor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnonymousAccessor INSTANCE
public static AnonymousAccessor[] values()
for (AnonymousAccessor c : AnonymousAccessor.values()) System.out.println(c);
public static AnonymousAccessor 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 static Accessor getInstance()
public <T extends Entity> T as(Class<T> cls)
Entitypublic boolean isAnonymous()
isAnonymous in interface Accessorpublic String getType()
Entitypublic com.tinkerpop.blueprints.Vertex asVertex()
asVertex in interface com.tinkerpop.frames.VertexFramepublic String getIdentifier()
getIdentifier in interface Identifiablepublic Iterable<Accessor> getParents()
getParents in interface Accessorpublic Iterable<Accessor> getAllParents()
getAllParents in interface Accessorpublic Iterable<PermissionGrant> getPermissionGrants()
getPermissionGrants in interface Accessorpublic void addPermissionGrant(PermissionGrant grant)
addPermissionGrant in interface Accessorpublic <T> T getProperty(String key)
EntitygetProperty in interface EntityT - the property's typekey - the property keypublic <T> T getProperty(Enum<?> key)
getProperty in interface Entitypublic Set<String> getPropertyKeys()
EntitygetPropertyKeys in interface EntityCopyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.