ElementFrame
AbstractEdgeFrame
, AbstractVertexFrame
public abstract class AbstractElementFrame extends Object implements ElementFrame
Constructor | Description |
---|---|
AbstractElementFrame() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
org.apache.tinkerpop.gremlin.structure.Element |
getElement() |
|
FramedGraph |
getGraph() |
|
<N> N |
getId() |
|
<T> T |
getProperty(String name) |
Return a property value.
|
<T> T |
getProperty(String name,
Class<T> type) |
Return a property value.
|
Set<String> |
getPropertyKeys() |
|
Class<?> |
getTypeResolution() |
Returns the type resolution currently encoded into the element.
|
int |
hashCode() |
|
void |
remove() |
Remove this element from the graph.
|
void |
removeTypeResolution() |
Removes type resolution from this node and decodes it from the element in the graph.
|
void |
setElement(org.apache.tinkerpop.gremlin.structure.Element element) |
Set the underlying element.
|
void |
setProperty(String name,
Object value) |
Set a property value.
|
void |
setTypeResolution(Class<?> type) |
Sets the type resolution and encodes it into the element in the graph.
|
String |
toString() |
public <N> N getId()
getId
in interface ElementFrame
N
- The ID's type.public Set<String> getPropertyKeys()
getPropertyKeys
in interface ElementFrame
public Class<?> getTypeResolution()
ElementFrame
getTypeResolution
in interface ElementFrame
public void setTypeResolution(Class<?> type)
ElementFrame
setTypeResolution
in interface ElementFrame
type
- The new type to resolve this element to.public void removeTypeResolution()
ElementFrame
removeTypeResolution
in interface ElementFrame
public void remove()
ElementFrame
remove
in interface ElementFrame
public org.apache.tinkerpop.gremlin.structure.Element getElement()
getElement
in interface ElementFrame
public void setElement(org.apache.tinkerpop.gremlin.structure.Element element)
ElementFrame
setElement
in interface ElementFrame
element
- The new underlying element.public FramedGraph getGraph()
getGraph
in interface ElementFrame
public <T> T getProperty(String name)
ElementFrame
getProperty
in interface ElementFrame
T
- The type of the property value.name
- The name of the property.public <T> T getProperty(String name, Class<T> type)
ElementFrame
getProperty
in interface ElementFrame
T
- The type of the property value.name
- The name of the property.type
- The type of the property.public void setProperty(String name, Object value)
ElementFrame
setProperty
in interface ElementFrame
name
- The name of the property.value
- The value of the property.Copyright © 2018 Syncleus. All rights reserved.