@Override public <U> Property<U> property(String key, U value) { return Property.<U>empty(); }
@Override public <U> Property<U> property(String key, U value) { return Property.<U>empty(); }
@Override public <U> Property<U> property(String key) { return Property.<U>empty(); }
@Override public <U> Property<U> property(String key) { return Property.<U>empty(); }
@Override public <V> Property<V> property(final String key) { return null != this.properties && this.properties.containsKey(key) ? this.properties.get(key).get(0) : Property.empty(); }
/** * Add or set a property value for the {@code Element} given its key. */ public <V> Property<V> property(final String key, final V value);
@Override public <V> Property<V> getProperty(final Neo4jVertexProperty vertexProperty, final String key) { final Neo4jNode vertexPropertyNode = Neo4jHelper.getVertexPropertyNode(vertexProperty); if (null != vertexPropertyNode && vertexPropertyNode.hasProperty(key)) return new Neo4jProperty<>(vertexProperty, key, (V) vertexPropertyNode.getProperty(key)); else return Property.empty(); }
@Override public <V> Property<V> property(final String key) { this.graph.tx().readWrite(); if (this.baseElement.hasProperty(key)) return new Neo4jProperty<>(this, key, (V) this.baseElement.getProperty(key)); else return Property.empty(); }
@Test @FeatureRequirementSet(FeatureRequirementSet.Package.VERTICES_ONLY) @FeatureRequirement(featureClass = Graph.Features.VertexFeatures.class, feature = Graph.Features.VertexFeatures.FEATURE_META_PROPERTIES) public void shouldReturnEmptyIfNoMetaProperties() { final Vertex v = graph.addVertex(); final VertexProperty<String> vp = v.property(VertexProperty.Cardinality.single, "name", "marko"); assertEquals(Property.empty(), vp.property("name")); }
@Override public <U> Property<U> property(String key) { return Property.<U>empty(); }
@Override public <U> Property<U> property(String key, U value) { return Property.<U>empty(); }
final EventStrategy eventStrategy = getTraversal().getStrategies().getStrategy(EventStrategy.class).get(); final Property currentProperty = traverser.get().property(key); final boolean newProperty = element instanceof Vertex ? currentProperty == VertexProperty.empty() : currentProperty == Property.empty(); final Event.ElementPropertyChangedEvent evt; if (element instanceof Vertex)
@Override public <V> Property<V> property(final String key) { return null != this.properties && this.properties.containsKey(key) ? this.properties.get(key).get(0) : Property.empty(); }
/** * Add or set a property value for the {@code Element} given its key. */ public <V> Property<V> property(final String key, final V value);
@Override public <T> Property<T> property(String key) { T value = value(key); if (value == null) { return Property.<T>empty(); } else { return new BitsyProperty<T>(this, key, value); } }
@Override public <V> Property<V> property(final String key) { this.graph.tx().readWrite(); if (this.baseElement.hasProperty(key)) return new Neo4jProperty<>(this, key, (V) this.baseElement.getProperty(key)); else return Property.empty(); }
@Override public <V> Property<V> property(final String key) { graph().tx().readWrite(); V value = getBaseEdge().getProperty(key); if (value == null) { return Property.empty(); } return new DuctileProperty<>(this, key, value); }
@Test @FeatureRequirementSet(FeatureRequirementSet.Package.VERTICES_ONLY) @FeatureRequirement(featureClass = Graph.Features.VertexFeatures.class, feature = Graph.Features.VertexFeatures.FEATURE_META_PROPERTIES) public void shouldReturnEmptyIfNoMetaProperties() { final Vertex v = graph.addVertex(); final VertexProperty<String> vp = v.property(VertexProperty.Cardinality.single, "name", "marko"); assertEquals(Property.empty(), vp.property("name")); }