Package com.tinkerpop.rexster.config

Source Code of com.tinkerpop.rexster.config.MockGraphConfiguration

package com.tinkerpop.rexster.config;

import com.tinkerpop.blueprints.Edge;
import com.tinkerpop.blueprints.Features;
import com.tinkerpop.blueprints.Graph;
import com.tinkerpop.blueprints.GraphQuery;
import com.tinkerpop.blueprints.Vertex;

public class MockGraphConfiguration implements GraphConfiguration {

    public Graph configureGraphInstance(final GraphConfigurationContext context) throws GraphConfigurationException {
        return new MockGraph();
    }

    public class MockGraph implements Graph {

        @Override
        public Features getFeatures() {
            return new Features(); //To change body of implemented methods use File | Settings | File Templates.
        }

        public Vertex addVertex(Object o) {
            return null//To change body of implemented methods use File | Settings | File Templates.
        }

        public Vertex getVertex(Object o) {
            return null//To change body of implemented methods use File | Settings | File Templates.
        }

        public void removeVertex(Vertex vertex) {
            //To change body of implemented methods use File | Settings | File Templates.
        }

        public Iterable<Vertex> getVertices() {
            return null//To change body of implemented methods use File | Settings | File Templates.
        }

        @Override
        public Iterable<Vertex> getVertices(String key, Object value) {
            return null//To change body of implemented methods use File | Settings | File Templates.
        }

        public Edge addEdge(Object o, Vertex vertex, Vertex vertex1, String s) {
            return null//To change body of implemented methods use File | Settings | File Templates.
        }

        public Edge getEdge(Object o) {
            return null//To change body of implemented methods use File | Settings | File Templates.
        }

        public void removeEdge(Edge edge) {
            //To change body of implemented methods use File | Settings | File Templates.
        }

        public Iterable<Edge> getEdges() {
            return null//To change body of implemented methods use File | Settings | File Templates.
        }

        @Override
        public Iterable<Edge> getEdges(String key, Object value) {
            return null//To change body of implemented methods use File | Settings | File Templates.
        }

        @Override
        public GraphQuery query() {
            return null//To change body of implemented methods use File | Settings | File Templates.
        }

        public void shutdown() {
            //To change body of implemented methods use File | Settings | File Templates.
        }
    }
}
TOP

Related Classes of com.tinkerpop.rexster.config.MockGraphConfiguration

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.