public abstract class DetachedElement<E> extends Object implements Element, Serializable, Attachable<E>
Element.ExceptionsAttachable.Exceptions, Attachable.Method| Modifier and Type | Field and Description | 
|---|---|
| protected Object | id | 
| protected String | label | 
| protected Map<String,List<Property>> | properties | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | DetachedElement() | 
| protected  | DetachedElement(Element element) | 
| protected  | DetachedElement(Object id,
               String label) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object object) | 
| E | get()Get the raw object trying to be attached. | 
| 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  Elementwhich helps categorize it. | 
| <V> Iterator<? extends Property<V>> | properties(String... propertyKeys)Get an  Iteratorof properties where thepropertyKeysis meant to be a filter on the available
 keys. | 
| <V> Property<V> | property(String key)Get a  Propertyfor theElementgiven its key. | 
| <V> Property<V> | property(String key,
        V value)Add or set a property value for the  Elementgiven its key. | 
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitkeys, remove, value, valuesattachprotected DetachedElement()
protected DetachedElement(Element element)
public Graph graph()
Elementpublic Object id()
ElementElement.public String label()
ElementElement which helps categorize it.public <V> Property<V> property(String key, V value)
ElementElement given its key.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> Iterator<? extends Property<V>> properties(String... propertyKeys)
ElementIterator of properties where the propertyKeys is meant to be a filter on the available
 keys. If no keys are provide then return all the properties.properties in interface Elementpublic E get()
Attachableget in interface Attachable<E>Copyright © 2013–2022 Apache Software Foundation. All rights reserved.