Class ComputerGraph.ComputerElement
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.process.computer.util.ComputerGraph.ComputerElement
 
- 
- All Implemented Interfaces:
- Element,- WrappedElement<Element>
 - Direct Known Subclasses:
- ComputerGraph.ComputerEdge,- ComputerGraph.ComputerVertex,- ComputerGraph.ComputerVertexProperty
 - Enclosing class:
- ComputerGraph
 
 public class ComputerGraph.ComputerElement extends Object implements Element, WrappedElement<Element> 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.ElementElement.Exceptions
 
- 
 - 
Constructor SummaryConstructors Constructor Description ComputerElement(Element element)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)ElementgetBaseElement()Graphgraph()Get the graph that this element is within.inthashCode()Objectid()Gets the unique identifier for the graphElement.Set<String>keys()Get the keys of the properties associated with this element.Stringlabel()Gets the label for the graphElementwhich helps categorize it.<V> Iterator<? extends Property<V>>properties(String... propertyKeys)Get anIteratorof properties where thepropertyKeysis meant to be a filter on the available keys.<V> Property<V>property(String key)Get aPropertyfor theElementgiven its key.<V> Property<V>property(String key, V value)Add or set a property value for theElementgiven its key.voidremove()Removes theElementfrom the graph.StringtoString()<V> Vvalue(String key)Get the value of aPropertygiven it's key.<V> Iterator<V>values(String... propertyKeys)Get the values of properties as anIterator.
 
- 
- 
- 
Constructor Detail- 
ComputerElementpublic ComputerElement(Element element) 
 
- 
 - 
Method Detail- 
idpublic Object id() Description copied from interface:ElementGets the unique identifier for the graphElement.
 - 
labelpublic String label() Description copied from interface:ElementGets the label for the graphElementwhich helps categorize it.
 - 
graphpublic Graph graph() Description copied from interface:ElementGet the graph that this element is within.
 - 
keyspublic Set<String> keys() Description copied from interface:ElementGet the keys of the properties associated with this element. The default implementation iterators the properties and stores the keys into aHashSet.
 - 
propertypublic <V> Property<V> property(String key) Description copied from interface:ElementGet aPropertyfor theElementgiven its key. The default implementation calls the rawElement.properties(java.lang.String...).
 - 
propertypublic <V> Property<V> property(String key, V value) Description copied from interface:ElementAdd or set a property value for theElementgiven its key.
 - 
valuepublic <V> V value(String key) throws NoSuchElementException Description copied from interface:ElementGet the value of aPropertygiven it's key. The default implementation callsElement.property(java.lang.String)and then returns the associated value.- Specified by:
- valuein interface- Element
- Throws:
- NoSuchElementException- if the property does not exist on the- Element.
 
 - 
removepublic void remove() Description copied from interface:ElementRemoves theElementfrom the graph.
 - 
propertiespublic <V> Iterator<? extends Property<V>> properties(String... propertyKeys) Description copied from interface:ElementGet anIteratorof properties where thepropertyKeysis meant to be a filter on the available keys. If no keys are provide then return all the properties.- Specified by:
- propertiesin interface- Element
 
 - 
valuespublic <V> Iterator<V> values(String... propertyKeys) Description copied from interface:ElementGet the values of properties as anIterator.
 - 
getBaseElementpublic Element getBaseElement() - Specified by:
- getBaseElementin interface- WrappedElement<Element>
 
 
- 
 
-