graphdb/src/main/java/com/orientechnologies/orient/graph/graphml/OGraphSONUtility.java
public Vertex vertexFromJson(final JsonNode json) throws IOException {
    final Map<String, Object> props = readProperties(json, true, this.hasEmbeddedTypes);

    final Object vertexId = getTypedValueFromJsonNode(json.get(GraphSONTokens._ID));
    final Vertex v = factory.createVertex(vertexId);

    for (Map.Entry<String, Object> entry : props.entrySet()) {
      // if (this.vertexPropertyKeys == null || vertexPropertyKeys.contains(entry.getKey())) {
      if (includeKey(entry.getKey(), vertexPropertyKeys, this.vertexPropertiesRule)) {
        v.setProperty(entry.getKey(), entry.getValue());
      }
    }

    return v;
  }
public Vertex vertexFromJson(final JsonNode json) throws IOException {
    final Map<String, Object> props = readProperties(json, true, this.hasEmbeddedTypes);

    final Object vertexId = getTypedValueFromJsonNode(json.get(GraphSONTokens._ID));
    final Vertex v = factory.createVertex(vertexId);

    for (Map.Entry<String, Object> entry : props.entrySet()) {
      // if (this.vertexPropertyKeys == null || vertexPropertyKeys.contains(entry.getKey())) {
      if (includeKey(entry.getKey(), vertexPropertyKeys, this.vertexPropertiesRule)) {
        v.setProperty(entry.getKey(), entry.getValue());
      }
    }

    return v;
  }
public Vertex vertexFromJson ( final JsonNode json ) throws IOException { final Map < String , Object > props = readProperties ( json , true , this . hasEmbeddedTypes ) ; final Object vertexId = getTypedValueFromJsonNode ( json . get ( GraphSONTokens . _ID ) ) ; final Vertex v = factory . createVertex ( vertexId ) ; for ( Map . Entry < String , Object > entry : props . entrySet ( ) ) { // if (this.vertexPropertyKeys == null || vertexPropertyKeys.contains(entry.getKey())) { if ( includeKey ( entry . getKey ( ) , vertexPropertyKeys , this . vertexPropertiesRule ) ) { v . setProperty ( entry . getKey ( ) , entry . getValue ( ) ) ; } } return v ; }
Creates a vertex from GraphSON using settings supplied in the constructor.
Creates a vertex from GraphSON using settings supplied in the constructor .