public final class ReadOnlyStrategy extends java.lang.Object implements GraphStrategy
GraphStrategy prevents the graph from being modified and will throw a
UnsupportedOperationException if an attempt is made to do so.| Modifier and Type | Class and Description |
|---|---|
static class |
ReadOnlyStrategy.Exceptions |
| Modifier and Type | Method and Description |
|---|---|
java.util.function.UnaryOperator<TriFunction<java.lang.String,Vertex,java.lang.Object[],Edge>> |
getAddEdgeStrategy(StrategyContext<StrategyVertex> ctx,
GraphStrategy composingStrategy)
Construct a
TriFunction that enhances the features of
Vertex.addEdge(String, com.tinkerpop.gremlin.structure.Vertex, Object...). |
java.util.function.UnaryOperator<java.util.function.Function<java.lang.Object[],Vertex>> |
getAddVertexStrategy(StrategyContext<StrategyGraph> ctx,
GraphStrategy composingStrategy)
Construct a
Function that enhances the features of Graph.addVertex(Object...). |
<V> java.util.function.UnaryOperator<java.util.function.BiFunction<java.lang.String,V,Property<V>>> |
getEdgePropertyStrategy(StrategyContext<StrategyEdge> ctx,
GraphStrategy composingStrategy)
Construct a
BiFunction that enhances the features of Element.property(String, Object). |
java.util.function.UnaryOperator<java.util.function.Supplier<java.lang.Void>> |
getRemoveEdgeStrategy(StrategyContext<StrategyEdge> ctx,
GraphStrategy composingStrategy)
Construct a
Supplier that enhances the features of Element.remove(). |
<V> java.util.function.UnaryOperator<java.util.function.Supplier<java.lang.Void>> |
getRemovePropertyStrategy(StrategyContext<StrategyProperty<V>> ctx,
GraphStrategy composingStrategy)
Construct a
Supplier that enhances the features of Property.remove(). |
<V> java.util.function.UnaryOperator<java.util.function.Supplier<java.lang.Void>> |
getRemoveVertexPropertyStrategy(StrategyContext<StrategyVertexProperty<V>> ctx,
GraphStrategy composingStrategy)
Construct a
Supplier that enhances the features of Property.remove(). |
java.util.function.UnaryOperator<java.util.function.Supplier<java.lang.Void>> |
getRemoveVertexStrategy(StrategyContext<StrategyVertex> ctx,
GraphStrategy composingStrategy)
Construct a
Supplier that enhances the features of Element.remove(). |
java.util.function.UnaryOperator<java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>>> |
getVariableAsMapStrategy(StrategyContext<StrategyVariables> ctx,
GraphStrategy composingStrategy)
Construct a
Supplier that enhances the features of Graph.Variables.asMap(). |
java.util.function.UnaryOperator<java.util.function.BiConsumer<java.lang.String,java.lang.Object>> |
getVariableSetStrategy(StrategyContext<StrategyVariables> ctx,
GraphStrategy composingStrategy)
Construct a
BiConsumer that enhances the features of Graph.Variables.set(String, Object). |
<V,U> java.util.function.UnaryOperator<java.util.function.BiFunction<java.lang.String,V,Property<V>>> |
getVertexPropertyPropertyStrategy(StrategyContext<StrategyVertexProperty<U>> ctx,
GraphStrategy composingStrategy)
Construct a
BiFunction that enhances the features of Element.property(String, Object). |
<V> java.util.function.UnaryOperator<java.util.function.BiFunction<java.lang.String,V,VertexProperty<V>>> |
getVertexPropertyStrategy(StrategyContext<StrategyVertex> ctx,
GraphStrategy composingStrategy)
Construct a
BiFunction that enhances the features of Vertex.property(String, Object). |
static ReadOnlyStrategy |
instance() |
static <T,U> java.util.function.UnaryOperator<java.util.function.Function<T,U>> |
readOnlyFunction() |
static <T> java.util.function.UnaryOperator<java.util.function.Supplier<T>> |
readOnlySupplier() |
static <T,U,V,W> java.util.function.UnaryOperator<TriFunction<T,U,V,W>> |
readOnlyTriFunction() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEdgeGetPropertyStrategy, getEdgeGraphStrategy, getEdgeIdStrategy, getEdgeIteratorsPropertyIteratorStrategy, getEdgeIteratorsValueIteratorStrategy, getEdgeIteratorsVertexIteratorStrategy, getEdgeKeysStrategy, getEdgeLabelStrategy, getEdgeValueStrategy, getGraphCloseStrategy, getGraphEStrategy, getGraphIteratorsEdgeIteratorStrategy, getGraphIteratorsVertexIteratorStrategy, getGraphVStrategy, getPropertyKeyStrategy, getPropertyValueStrategy, getVariableGetStrategy, getVariableKeysStrategy, getVariableRemoveStrategy, getVertexGetPropertyStrategy, getVertexGraphStrategy, getVertexIdStrategy, getVertexIteratorsEdgeIteratorStrategy, getVertexIteratorsPropertyIteratorStrategy, getVertexIteratorsValueIteratorStrategy, getVertexIteratorsVertexIteratorStrategy, getVertexKeysStrategy, getVertexLabelStrategy, getVertexPropertyGetElementStrategy, getVertexPropertyGraphStrategy, getVertexPropertyIdStrategy, getVertexPropertyIteratorsPropertyIteratorStrategy, getVertexPropertyIteratorsValueIteratorStrategy, getVertexPropertyKeysStrategy, getVertexPropertyKeyStrategy, getVertexPropertyLabelStrategy, getVertexPropertyValueStrategy, getVertexValueStrategypublic static final ReadOnlyStrategy instance()
public java.util.function.UnaryOperator<java.util.function.Function<java.lang.Object[],Vertex>> getAddVertexStrategy(StrategyContext<StrategyGraph> ctx, GraphStrategy composingStrategy)
GraphStrategyFunction that enhances the features of Graph.addVertex(Object...).getAddVertexStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a Function with Graph.addVertex(Object...) signature
and returns an enhanced strategy Function with the same signaturepublic java.util.function.UnaryOperator<TriFunction<java.lang.String,Vertex,java.lang.Object[],Edge>> getAddEdgeStrategy(StrategyContext<StrategyVertex> ctx, GraphStrategy composingStrategy)
GraphStrategyTriFunction that enhances the features of
Vertex.addEdge(String, com.tinkerpop.gremlin.structure.Vertex, Object...).getAddEdgeStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a TriFunction with
Vertex.addEdge(String, com.tinkerpop.gremlin.structure.Vertex, Object...) signature
and returns an enhanced strategy Function with the same signaturepublic <V> java.util.function.UnaryOperator<java.util.function.BiFunction<java.lang.String,V,Property<V>>> getEdgePropertyStrategy(StrategyContext<StrategyEdge> ctx, GraphStrategy composingStrategy)
GraphStrategyBiFunction that enhances the features of Element.property(String, Object).getEdgePropertyStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a BiFunction with
Element.property(String, Object) signature
and returns an enhanced strategy BiFunction with the same signaturepublic <V> java.util.function.UnaryOperator<java.util.function.BiFunction<java.lang.String,V,VertexProperty<V>>> getVertexPropertyStrategy(StrategyContext<StrategyVertex> ctx, GraphStrategy composingStrategy)
GraphStrategyBiFunction that enhances the features of Vertex.property(String, Object).getVertexPropertyStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a BiFunction with
Vertex.property(String, Object) signature
and returns an enhanced strategy BiFunction with the same signaturepublic <V,U> java.util.function.UnaryOperator<java.util.function.BiFunction<java.lang.String,V,Property<V>>> getVertexPropertyPropertyStrategy(StrategyContext<StrategyVertexProperty<U>> ctx, GraphStrategy composingStrategy)
GraphStrategyBiFunction that enhances the features of Element.property(String, Object).getVertexPropertyPropertyStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a BiFunction with
Element.property(String, Object) signature
and returns an enhanced strategy BiFunction with the same signaturepublic java.util.function.UnaryOperator<java.util.function.Supplier<java.lang.Void>> getRemoveEdgeStrategy(StrategyContext<StrategyEdge> ctx, GraphStrategy composingStrategy)
GraphStrategySupplier that enhances the features of Element.remove().getRemoveEdgeStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a Supplier with
Element.remove() signature
and returns an enhanced strategy Supplier with the same signaturepublic java.util.function.UnaryOperator<java.util.function.Supplier<java.lang.Void>> getRemoveVertexStrategy(StrategyContext<StrategyVertex> ctx, GraphStrategy composingStrategy)
GraphStrategySupplier that enhances the features of Element.remove().getRemoveVertexStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a Supplier with
Element.remove() signature
and returns an enhanced strategy Supplier with the same signaturepublic <V> java.util.function.UnaryOperator<java.util.function.Supplier<java.lang.Void>> getRemovePropertyStrategy(StrategyContext<StrategyProperty<V>> ctx, GraphStrategy composingStrategy)
GraphStrategySupplier that enhances the features of Property.remove().getRemovePropertyStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a Supplier with
Property.remove() signature
and returns an enhanced strategy Supplier with the same signaturepublic java.util.function.UnaryOperator<java.util.function.BiConsumer<java.lang.String,java.lang.Object>> getVariableSetStrategy(StrategyContext<StrategyVariables> ctx, GraphStrategy composingStrategy)
GraphStrategyBiConsumer that enhances the features of Graph.Variables.set(String, Object).getVariableSetStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a BiConsumer with Graph.Variables.set(String, Object) signature
and returns an enhanced strategy BiConsumer with the same signaturepublic java.util.function.UnaryOperator<java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>>> getVariableAsMapStrategy(StrategyContext<StrategyVariables> ctx, GraphStrategy composingStrategy)
GraphStrategySupplier that enhances the features of Graph.Variables.asMap().getVariableAsMapStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a Supplier with
Graph.Variables.asMap() signature
and returns an enhanced strategy Supplier with the same signaturepublic <V> java.util.function.UnaryOperator<java.util.function.Supplier<java.lang.Void>> getRemoveVertexPropertyStrategy(StrategyContext<StrategyVertexProperty<V>> ctx, GraphStrategy composingStrategy)
GraphStrategySupplier that enhances the features of Property.remove().getRemoveVertexPropertyStrategy in interface GraphStrategyctx - the context within which this strategy function is calledcomposingStrategy - the strategy that composed this strategy functionFunction that accepts a Supplier with
Property.remove() signature
and returns an enhanced strategy Supplier with the same signaturepublic java.lang.String toString()
toString in class java.lang.Objectpublic static <T> java.util.function.UnaryOperator<java.util.function.Supplier<T>> readOnlySupplier()
public static <T,U> java.util.function.UnaryOperator<java.util.function.Function<T,U>> readOnlyFunction()
public static <T,U,V,W> java.util.function.UnaryOperator<TriFunction<T,U,V,W>> readOnlyTriFunction()
Copyright © 2013-2015 TinkerPop. All Rights Reserved.