Class StringFactory
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.structure.util.StringFactory
-
public final class StringFactory extends Object
A collection of helpful methods for creating standardObject.toString()
representations of graph-related objects.- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
-
-
Method Summary
-
-
-
Method Detail
-
vertexString
public static String vertexString(Vertex vertex)
Construct the representation for aVertex
.
-
propertyString
public static String propertyString(Property property)
Construct the representation for aProperty
orVertexProperty
.
-
graphString
public static String graphString(Graph graph, String internalString)
Construct the representation for aGraph
.- Parameters:
internalString
- a mapperString
that appends to the end of the standard representation
-
graphVariablesString
public static String graphVariablesString(Graph.Variables variables)
-
computeResultString
public static String computeResultString(ComputerResult computerResult)
-
graphComputerString
public static String graphComputerString(GraphComputer graphComputer)
-
traversalSourceString
public static String traversalSourceString(TraversalSource traversalSource)
-
featureString
public static String featureString(Graph.Features features)
-
traversalSideEffectsString
public static String traversalSideEffectsString(TraversalSideEffects traversalSideEffects)
-
traversalStrategiesString
public static String traversalStrategiesString(TraversalStrategies traversalStrategies)
-
traversalStrategyString
public static String traversalStrategyString(TraversalStrategy traversalStrategy)
-
traversalStrategyProxyString
public static String traversalStrategyProxyString(TraversalStrategyProxy traversalStrategyProxy)
-
translatorString
public static String translatorString(Translator translator)
-
vertexProgramString
public static String vertexProgramString(VertexProgram vertexProgram, String internalString)
-
vertexProgramString
public static String vertexProgramString(VertexProgram vertexProgram)
-
traversalString
public static String traversalString(Traversal.Admin<?,?> traversal)
-
removeEndBrackets
public static String removeEndBrackets(Collection collection)
-
-