Package com.dooapp.gaedo.blueprints.utils

Examples of com.dooapp.gaedo.blueprints.utils.VertexPathNavigator


   * @see com.dooapp.gaedo.blueprints.queries.tests.VertexTest#matches(com.tinkerpop.blueprints.pgm.Vertex)
   */
  @Override
  public boolean matches(Vertex examined) {
    // Navigates to the first target edge and perform test when reached
    VertexPathNavigator navigator = new VertexPathNavigator(strategy, examined);
    VertexLocation destination = navigator.navigateOn(path);
    // null final property indicates object has no value for that property
    if(!destination.isNavigationSuccessfull()) {
      return matchesNull();
    } else {
      return matchesVertex(destination.vertex(), destination.property());
View Full Code Here


      // path may be empty when vertex is directly examined, typically for an instanceof.
      // in such a case, we can directly call the matchesVertex WITH A NULL PROPERTY
      return matchesVertex(examined, null);
    } else {
      // Navigates to the first target edge and perform test when reached
      VertexPathNavigator navigator = new VertexPathNavigator(strategy, driver, examined);
      VertexLocation destination = navigator.navigateOn(path);
      // null final property indicates object has no value for that
      // property
      if (!destination.isNavigationSuccessfull()) {
        return matchesNull();
      } else {
View Full Code Here

        this.input = input;
      }

      @Override
      public <Type> Type getValue(FieldInformer<Type> propertyDescriptor) {
        VertexPathNavigator navigator = new VertexPathNavigator(service.getStrategy(), input);
        VertexLocation destination = navigator.navigateOn(propertyDescriptor.getFieldPath());

        Vertex destinationVertex = destination.vertex();
        try {
          // There may remain one unevaluated property - in which case it's a literal one
          Property destinationProperty = destination.property();
View Full Code Here

      // path may be empty when vertex is directly examined, typically for an instanceof.
      // in such a case, we can directly call the matchesVertex WITH A NULL PROPERTY
      return matchesVertex(examined, null);
    } else {
      // Navigates to the first target edge and perform test when reached
      VertexPathNavigator navigator = new VertexPathNavigator(strategy, driver, examined);
      VertexLocation destination = navigator.navigateOn(path);
      // null final property indicates object has no value for that
      // property
      if (!destination.isNavigationSuccessfull()) {
        return matchesNull();
      } else {
View Full Code Here

        this.input = input;
      }

      @Override
      public <Type> Type getValue(FieldInformer<Type> propertyDescriptor) {
        VertexPathNavigator navigator = new VertexPathNavigator(service.getStrategy(), service.getDriver(), input);
        VertexLocation destination = navigator.navigateOn(propertyDescriptor.getFieldPath());

        Vertex destinationVertex = destination.vertex();
        try {
          // There may remain one unevaluated property - in which case it's a literal one
          Property destinationProperty = destination.property();
View Full Code Here

   * @see com.dooapp.gaedo.blueprints.queries.tests.VertexTest#matches(com.tinkerpop.blueprints.pgm.Vertex)
   */
  @Override
  public boolean matches(Vertex examined) {
    // Navigates to the first target edge and perform test when reached
    VertexPathNavigator navigator = new VertexPathNavigator(strategy, examined);
    VertexLocation destination = navigator.navigateOn(path);
    // null final property indicates object has no value for that property
    if(!destination.isNavigationSuccessfull()) {
      return matchesNull();
    } else {
      return matchesVertex(destination.vertex(), destination.property());
View Full Code Here

        this.input = input;
      }

      @Override
      public <Type> Type getValue(FieldInformer<Type> propertyDescriptor) {
        VertexPathNavigator navigator = new VertexPathNavigator(service.getStrategy(), input);
        VertexLocation destination = navigator.navigateOn(propertyDescriptor.getFieldPath());
        return (Type) service.loadObject(destination.vertex(), cache);
      }
View Full Code Here

        this.input = input;
      }

      @Override
      public <Type> Type getValue(FieldInformer<Type> propertyDescriptor) {
        VertexPathNavigator navigator = new VertexPathNavigator(service.getStrategy(), input);
        VertexLocation destination = navigator.navigateOn(propertyDescriptor.getFieldPath());
        return (Type) service.loadObject(destination.vertex(), cache);
      }
View Full Code Here

   * @see com.dooapp.gaedo.blueprints.queries.tests.VertexTest#matches(com.tinkerpop.blueprints.pgm.Vertex)
   */
  @Override
  public boolean matches(Vertex examined) {
    // Navigates to the first target edge and perform test when reached
    VertexPathNavigator navigator = new VertexPathNavigator(strategy, examined);
    VertexLocation destination = navigator.navigateOn(path);
    // null final property indicates object has no value for that property
    if(!destination.isNavigationSuccessfull()) {
      return matchesNull();
    } else {
      return matchesVertex(destination.vertex(), destination.property());
View Full Code Here

TOP

Related Classes of com.dooapp.gaedo.blueprints.utils.VertexPathNavigator

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.