public class ComputerGraph.ComputerElement extends Object implements Element, WrappedElement<Element>
Element.Exceptions| Constructor and Description | 
|---|
| ComputerElement(Element element) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object other) | 
| Element | getBaseElement() | 
| Graph | graph()Get the graph that this element is within. | 
| int | hashCode() | 
| Object | id()Gets the unique identifier for the graph  Element. | 
| Set<String> | keys()Get the keys of the properties associated with this 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. | 
| <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. | 
| void | remove()Removes the  Elementfrom the graph. | 
| String | toString() | 
| <V> V | value(String key)Get the value of a  Propertygiven it's key. | 
| <V> Iterator<V> | values(String... propertyKeys)Get the values of properties as an  Iterator. | 
public ComputerElement(Element element)
public Object id()
ElementElement.public String label()
ElementElement which helps categorize it.public Graph graph()
Elementpublic Set<String> keys()
ElementHashSet.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.public <V> V value(String key) throws NoSuchElementException
ElementProperty given it's key.
 The default implementation calls Element.property(java.lang.String) and then returns the associated value.value in interface ElementNoSuchElementException - if the property does not exist on the Element.public void remove()
ElementElement from the graph.public <V> Iterator<? extends Property<V>> properties(String... propertyKeys)
ElementIterator of properties.properties in interface Elementpublic <V> Iterator<V> values(String... propertyKeys)
ElementIterator.public Element getBaseElement()
getBaseElement in interface WrappedElement<Element>Copyright © 2013–2018 Apache Software Foundation. All rights reserved.