Class ReferenceElement<E extends Element>
java.lang.Object
org.apache.tinkerpop.gremlin.structure.util.reference.ReferenceElement<E>
- All Implemented Interfaces:
Serializable,Element,Attachable<E>
- Direct Known Subclasses:
ReferenceEdge,ReferenceVertex,ReferenceVertexProperty
public abstract class ReferenceElement<E extends Element>
extends Object
implements Element, Serializable, Attachable<E>
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
Attachable.Exceptions, Attachable.MethodNested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Element
Element.Exceptions -
Field Summary
FieldsFields inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
logger -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedReferenceElement(Object id, String label) ReferenceElement(Element element) -
Method Summary
Modifier and TypeMethodDescriptionbooleanget()Get the raw object trying to be attached.graph()Get the graph that this element is within.inthashCode()id()Gets the unique identifier for the graphElement.label()Gets the label for the graphElementwhich helps categorize it.labels()Gets all labels for this element.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
attach
-
Field Details
-
id
-
label
-
-
Constructor Details
-
ReferenceElement
protected ReferenceElement() -
ReferenceElement
-
ReferenceElement
-
-
Method Details
-
id
Description copied from interface:ElementGets the unique identifier for the graphElement. -
label
Description copied from interface:ElementGets the label for the graphElementwhich helps categorize it. -
labels
Description copied from interface:ElementGets all labels for this element.For
Vertex: may return zero or more labels (multi-label support). ForEdge: returns a singleton set (single label only in TinkerGraph). ForVertexProperty: returns a singleton set containing the property key. -
graph
Description copied from interface:ElementGet the graph that this element is within. -
hashCode
public int hashCode() -
equals
-
get
Description copied from interface:AttachableGet the raw object trying to be attached.- Specified by:
getin interfaceAttachable<E extends Element>- Returns:
- the raw object to attach
-