Package com.tinkerpop.frames.annotations

Examples of com.tinkerpop.frames.annotations.PropertyAnnotationHandler


 
  public void testDeprecatedConfigRegisterAnnotationHandlers() {
        Graph graph = TinkerGraphFactory.createTinkerGraph();
        FramedGraph<Graph> framedGraph = new FramedGraph<Graph>(graph);
        framedGraph.getAnnotationHandlers().clear();
        AnnotationHandler<?> handler = new PropertyAnnotationHandler();
        framedGraph.registerAnnotationHandler(handler);
        Assert.assertEquals(1, framedGraph.getAnnotationHandlers().size());
        Assert.assertTrue(framedGraph.getAnnotationHandlers().contains(handler));
       
    }
View Full Code Here


  public FramedGraph(final T baseGraph) {
    this.baseGraph = baseGraph;
    config = new FramedGraphConfiguration();
    config.setConfiguredGraph(baseGraph);
    configViaFactory = false;
    registerAnnotationHandler(new PropertyAnnotationHandler());
    registerAnnotationHandler(new AdjacencyAnnotationHandler());
    registerAnnotationHandler(new IncidenceAnnotationHandler());
    registerAnnotationHandler(new DomainAnnotationHandler());
    registerAnnotationHandler(new RangeAnnotationHandler());
    registerAnnotationHandler(new InVertexAnnotationHandler());
View Full Code Here

    return config;
  }

  private FramedGraphConfiguration getBaseConfig() {
    FramedGraphConfiguration config = new FramedGraphConfiguration();
    config.addAnnotationHandler(new PropertyAnnotationHandler());
    config.addAnnotationHandler(new AdjacencyAnnotationHandler());
    config.addAnnotationHandler(new IncidenceAnnotationHandler());
    config.addAnnotationHandler(new DomainAnnotationHandler());
    config.addAnnotationHandler(new RangeAnnotationHandler());
    config.addAnnotationHandler(new InVertexAnnotationHandler());
View Full Code Here

  public FramedGraph(final T baseGraph) {
    this.baseGraph = baseGraph;
    config = new FramedGraphConfiguration();
    config.setConfiguredGraph(baseGraph);
    configViaFactory = false;
    registerAnnotationHandler(new PropertyAnnotationHandler());
    registerAnnotationHandler(new AdjacencyAnnotationHandler());
    registerAnnotationHandler(new IncidenceAnnotationHandler());
    registerAnnotationHandler(new DomainAnnotationHandler());
    registerAnnotationHandler(new RangeAnnotationHandler());
    registerAnnotationHandler(new InVertexAnnotationHandler());
View Full Code Here

TOP

Related Classes of com.tinkerpop.frames.annotations.PropertyAnnotationHandler

Copyright © 2018 www.massapicom. 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.