Package com.dooapp.gaedo.blueprints.utils.VertexPathNavigator

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


   */
  @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


      // 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 {
        return matchesVertex(destination.vertex(), destination.property());
      }
    }
  }
View Full Code Here

      }

      @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();
          Loader loader = new Loader();
          if(loader.hasLiteralProperty(destinationProperty, destinationVertex)) {
            return (Type) loader.loadSingleLiteral(getClass().getClassLoader(), destinationProperty, destinationVertex, cache);
          }
        } catch(EmptyStackException e) {
View Full Code Here

      // 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 {
        return matchesVertex(destination.vertex(), destination.property());
      }
    }
  }
View Full Code Here

      }

      @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();
          Loader loader = new Loader();
          if(loader.hasLiteralProperty(destinationProperty, destinationVertex)) {
            return (Type) loader.loadSingleLiteral(getClass().getClassLoader(), destinationProperty, destinationVertex, cache);
          }
        } catch(EmptyStackException e) {
View Full Code Here

   */
  @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

      }

      @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

      }

      @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

   */
  @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.VertexLocation

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.