public abstract class HadoopElement extends Object implements Element
Element.Exceptions| Modifier and Type | Field and Description |
|---|---|
protected Element |
baseElement |
protected HadoopGraph |
graph |
| Modifier | Constructor and Description |
|---|---|
protected |
HadoopElement() |
protected |
HadoopElement(Element baseElement,
HadoopGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
Graph |
graph()
Get the graph that this element is within.
|
int |
hashCode() |
Object |
id()
Gets the unique identifier for the graph
Element. |
String |
label()
Gets the label for the graph
Element which helps categorize it. |
<V> Property<V> |
property(String key)
Get a
Property for the Element given its key. |
<V> Property<V> |
property(String key,
V value)
Add or set a property value for the
Element given its key. |
void |
remove()
Removes the
Element from the graph. |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitkeys, properties, value, valuesprotected Element baseElement
protected HadoopGraph graph
protected HadoopElement()
protected HadoopElement(Element baseElement, HadoopGraph graph)
public Graph graph()
Elementpublic Object id()
ElementElement.public String label()
ElementElement which helps categorize it.public void remove()
ElementElement from the graph.public <V> Property<V> property(String key)
ElementProperty for the Element given its key.
The default implementation calls the raw Element.properties(java.lang.String...).public <V> Property<V> property(String key, V value)
ElementElement given its key.Copyright © 2013–2019 Apache Software Foundation. All rights reserved.