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)
Entity
public boolean isAnonymous()
isAnonymous
in interface Accessor
public String getType()
Entity
public com.tinkerpop.blueprints.Vertex asVertex()
asVertex
in interface com.tinkerpop.frames.VertexFrame
public String getIdentifier()
getIdentifier
in interface Identifiable
public Iterable<Accessor> getParents()
getParents
in interface Accessor
public Iterable<Accessor> getAllParents()
getAllParents
in interface Accessor
public Iterable<PermissionGrant> getPermissionGrants()
getPermissionGrants
in interface Accessor
public void addPermissionGrant(PermissionGrant grant)
addPermissionGrant
in interface Accessor
public <T> T getProperty(String key)
Entity
getProperty
in interface Entity
T
- the property's typekey
- the property keypublic <T> T getProperty(Enum<?> key)
getProperty
in interface Entity
public Set<String> getPropertyKeys()
Entity
getPropertyKeys
in interface Entity
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.