public class OracleVertexPropertyBase<V> extends OraclePropertyBase<V> implements OracleElement
OracleElement.FLAG
Constructor and Description |
---|
OracleVertexPropertyBase(OracleVertexBase oracleVertex, java.lang.String key, V value)
Constructs a new OracleVertexProperty object
|
Modifier and Type | Method and Description |
---|---|
OracleVertexBase |
element()
Gets the Vertex that owns this VertexProperty.
|
boolean |
equals(java.lang.Object object)
Validates if the given object is equal to this Vertex property
|
OraclePropertyGraphBase |
graph()
Get the graph that this element is within.
|
int |
hashCode()
Gets the hash code associated to this vertex property object
|
java.lang.Object |
id()
Gets the unique identifier for the Vertex Property
|
boolean |
isPresent()
Return whether the property is empty or not.
|
java.lang.String |
key()
Return the key of the property.
|
java.lang.String |
label()
Gets the label for the graph Element which helps categorize it.
|
<U> java.util.Iterator<OraclePropertyBase<U>> |
properties(java.lang.String... propertyKeys)
Get an Iterator of properties.
|
<V> OraclePropertyBase<V> |
property(java.lang.String key, V value)
Add or set a property value for the Element given its key.
|
void |
remove()
Removes the Element from the graph.
|
java.lang.String |
toString()
Returns the String representation of this vertex property
|
V |
value()
Get the value of a Property given it's key.
|
public OracleVertexPropertyBase(OracleVertexBase oracleVertex, java.lang.String key, V value)
oracleVertex
- the vertex associated to this propertykey
- the property namevalue
- the property valuepublic OracleVertexBase element()
element
in class OraclePropertyBase<V>
public boolean equals(java.lang.Object object)
equals
in class OraclePropertyBase<V>
public OraclePropertyGraphBase graph()
graph
in interface OracleElement
OraclePropertyGraphBase
public int hashCode()
hashCode
in class OraclePropertyBase<V>
public java.lang.Object id()
id
in interface OracleElement
public boolean isPresent()
isPresent
in class OraclePropertyBase<V>
public java.lang.String key()
key
in class OraclePropertyBase<V>
public java.lang.String label()
label
in interface OracleElement
public <U> java.util.Iterator<OraclePropertyBase<U>> properties(java.lang.String... propertyKeys)
properties
in interface OracleElement
public <V> OraclePropertyBase<V> property(java.lang.String key, V value)
property
in interface OracleElement
public void remove()
remove
in interface OracleElement
remove
in class OraclePropertyBase<V>
public java.lang.String toString()
toString
in class OraclePropertyBase<V>
public V value() throws java.util.NoSuchElementException
value
in class OraclePropertyBase<V>
java.util.NoSuchElementException