Examples of traverse()


Examples of KFM.DirNavigator.traverse()

                        // ignore classes which cannot be loaded, we can't test them either
                    }
                }
            }
        });
        tNavigator.traverse();

        TestSuite tTestSuite = new TestSuite("CompleteTest");
        for(Iterator tIterator = tTestVector.iterator(); tIterator.hasNext(); ) {
            Test tTest = (Test) tIterator.next();
            if(tTest instanceof TestSuite) {
View Full Code Here

Examples of com.dubture.twig.core.parser.ast.node.TwigModuleDeclaration.traverse()

        try {
           
            TwigModuleDeclaration module = (TwigModuleDeclaration) SourceParserUtil.parseSourceModule(input.getSourceContents());
           
            if (module != null) {
                module.traverse(new SourceParserVisitor(reporter));
            }           

            return module;

        } catch (Exception e) {
View Full Code Here

Examples of com.fasterxml.jackson.databind.JsonNode.traverse()

            if ( arrayNode == null || arrayNode.isMissingNode() || ! arrayNode.isArray() ) {
                throw new RuntimeException( "Invalid format of LogicalFilter encountered." );
            }

            // pass in our objectCodec so that the subJsonParser knows about our configured Modules and Annotations
            JsonParser subJsonParser = arrayNode.traverse( objectCodec );
            List<QueryFilter> childrenQueryFilters = subJsonParser.readValueAs( new TypeReference<List<QueryFilter>>() {} );

            return new LogicalFilter2( QueryParam.valueOf( key ), childrenQueryFilters );
        }
    }
View Full Code Here

Examples of com.fasterxml.jackson.databind.node.BinaryNode.traverse()

    public void testBinaryNode() throws Exception
    {
        byte[] inputBinary = new byte[] { 0, -5 };
        BinaryNode n = new BinaryNode(inputBinary);
        JsonParser jp = n.traverse();

        assertNull(jp.getCurrentToken());
        // exposed as POJO... not as VALUE_STRING
        assertToken(JsonToken.VALUE_EMBEDDED_OBJECT, jp.nextToken());
        byte[] data = jp.getBinaryValue();
View Full Code Here

Examples of com.fasterxml.jackson.databind.node.ObjectNode.traverse()

            // Check if it is a "RealFilter"
            JsonNode queryParam = root.get("queryParam");
            if ( queryParam != null && queryParam.isValueNode() ) {

                // pass in our objectCodec so that the subJsonParser knows about our configured Modules and Annotations
                JsonParser subJsonParser = root.traverse( objectCodec );

                return subJsonParser.readValueAs( RealFilter.class );
            }

            // We assume it is a LogicalFilter
View Full Code Here

Examples of com.fasterxml.jackson.databind.node.POJONode.traverse()

    public void testBinaryPojo() throws Exception
    {
        byte[] inputBinary = new byte[] { 1, 2, 100 };
        POJONode n = new POJONode(inputBinary);
        JsonParser jp = n.traverse();

        assertNull(jp.getCurrentToken());
        assertToken(JsonToken.VALUE_EMBEDDED_OBJECT, jp.nextToken());
        byte[] data = jp.getBinaryValue();
        assertNotNull(data);
View Full Code Here

Examples of com.fasterxml.jackson.databind.node.TextNode.traverse()

    }

    public void testTextAsBinary() throws Exception
    {
        TextNode n = new TextNode("   APs=\n");
        JsonParser jp = n.traverse();
        assertNull(jp.getCurrentToken());
        assertToken(JsonToken.VALUE_STRING, jp.nextToken());
        byte[] data = jp.getBinaryValue();
        assertNotNull(data);
        assertArrayEquals(new byte[] { 0, -5 }, data);
View Full Code Here

Examples of com.linkedin.data.schema.DataSchemaTraverse.traverse()

      {
        final Node<NamedDataSchema> schemaNode = _relationships.get(schema);
        _dataModels.put(schema.getFullName(), schema);

        final DataSchemaTraverse traveler = new DataSchemaTraverse();
        traveler.traverse(schema, new DataSchemaTraverse.Callback()
        {
          @Override
          public void callback(List<String> path, DataSchema nestedSchema)
          {
            if (nestedSchema instanceof RecordDataSchema && nestedSchema != schema)
View Full Code Here

Examples of com.opengamma.core.position.impl.DepthFirstPortfolioNodeTraverser.traverse()

            } else {
              countMap.get(key).increment();
            }         
          }
        });
        traverser.traverse(portfolio.getRootNode());       
      }
      convertToJMXComposites();   
    } catch (NullPointerException npe) {
      s_logger.error("NPE", npe);
    }
View Full Code Here

Examples of com.opengamma.core.position.impl.PortfolioNodeTraverser.traverse()

          } else {
            requirementSubSet.remove(securityTypeRequirement.getKey());
          }
        }
        traversalCallback.reset();
        traverser.traverse(portfolio.getRootNode());
        try {
          s_logger.debug("Waiting for stripe {} to complete", stripe);
          // TODO: Waiting for a completion state causes any progress tracker to abort (it sees 100% and stops). Need to rethink how to do the progress estimates.
          builder.waitForDependencyGraphBuild();
        } catch (InterruptedException e) {
View Full Code Here
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.