Examples of traverse()


Examples of org.eclipse.wst.wsi.internal.core.wsdl.traversal.WSDLTraversal.traverse()

    WSDLTraversal traversal = new WSDLTraversal();
    //VisitorAdaptor.adapt(this);
    traversal.setVisitor(this);
    traversal.visitOperation(true);
    traversal.ignoreImport();
    traversal.traverse((Operation) entryContext.getEntry().getEntryDetail());

    if (!errors.isEmpty())
    {
      result = AssertionResult.RESULT_FAILED;
      failureDetail =
View Full Code Here

Examples of org.encog.ml.tree.traverse.DepthFirstTraversal.traverse()

   * @return The node count.
   */
  public static int process(TreeNode node) {
    TaskCountNodes task = new TaskCountNodes();
    DepthFirstTraversal trav = new DepthFirstTraversal();
    trav.traverse(node, task);
    return task.getNodeCount();
  }

}
View Full Code Here

Examples of org.geotools.graph.traverse.GraphTraversal.traverse()

    };
   
    GraphTraversal traversal =
      new BasicGraphTraversal(graph,walker,iterator);
    traversal.init();
    traversal.traverse();

    if(sorted.size() != types.size()) {
      throw new RuntimeException("Internal error in schema dependency sort");
    }
View Full Code Here

Examples of org.geotools.graph.traverse.basic.BasicGraphTraversal.traverse()

      builder().getGraph(), walker, iterator
    );
    traversal.init();
   
    iterator.setSource(ends[1]);
    traversal.traverse();
   
    //ensure only last node visited
    GraphVisitor visitor = new GraphVisitor() {
      public int visit(Graphable component) {
        if (component == ends[1]) assertTrue(component.isVisited());
View Full Code Here

Examples of org.internna.iwebmvc.core.validation.annotation.BeanConstraint.traverse()

    protected Set<ValidationError> validateBeanConstraint(final Field field, final Object bean) {
        Set<ValidationError> errors = new HashSet<ValidationError>();
        BeanConstraint beanConstraint = field.getAnnotation(BeanConstraint.class);
        if (beanConstraint != null) {
            if (beanConstraint.required() & (bean == null)) errors.add(new ValidationError(field.getName(), errorCodes[0], beanConstraint, bean));
            if ((bean != null) && (beanConstraint.traverse())) {
                Collection<ValidationError> deepErrors = this.visit(bean);
                for (ValidationError error : deepErrors) error.addPath(field.getName());
                errors.addAll(deepErrors);
            }
        }
View Full Code Here

Examples of org.internna.iwebmvc.core.validation.annotation.CollectionConstraint.traverse()

        if (collectionConstraint != null) {
            if (collectionConstraint.required() & (collection == null)) errors.add(new ValidationError(field.getName(), errorCodes[0], collectionConstraint, collection));
            if (collection != null) {
                if (Collection.class.isInstance(collection)) {
                    Collection<?> col = (Collection<?>) collection;
                    if (collectionConstraint.traverse()) {
                        Collection<ValidationError> deepErrors = new HashSet<ValidationError>();
                        int i = 0;
                        for (Object element : col) {
                            Collection<ValidationError> inner = this.visit(element);
                            for (ValidationError error : inner) error.addPath(field.getName() + "[" + i + "]");
View Full Code Here

Examples of org.jrdf.graph.global.molecule.MoleculeTraverser.traverse()

    public Iterator<Triple> iterator() {
        HashSet<Triple> set = new HashSet<Triple>();
        MoleculeToTripleIterator mtti = new MoleculeToTripleIterator(set);
        MoleculeTraverser tmpTraverser = new MoleculeTraverserImpl();
        tmpTraverser.traverse(this, mtti);
        return set.iterator();
    }

    public Molecule add(Set<Triple> set) {
        List<Triple> newMolecules = new ArrayList<Triple>();
View Full Code Here

Examples of org.jrdf.graph.global.molecule.mem.MoleculeTraverserImpl.traverse()

        this.handler = new MoleculeGraphHandlerImpl(nodePool, readableIndex, moleculeComparator);
    }

    public void add(Molecule molecule) {
        MoleculeTraverser traverser = new MoleculeTraverserImpl();
        traverser.traverse(molecule, new AddMoleculeToIndex(writableIndex, localizer));
    }

    public void delete(Molecule molecule) throws GraphException {
        final Triple headTriple = molecule.getHeadTriple();
        final Long headTripleMid = findMoleculeID(headTriple);
View Full Code Here

Examples of org.jsoup.select.NodeTraversor.traverse()

    if (elements == null || elements.isEmpty())
      return "";
    StringBuilder buffer = new StringBuilder();
    NodeTraversor nt = new NodeTraversor(new ToTextNodeVisitor(buffer));
    for (Element element : elements) {
      nt.traverse(element);
    }
    return buffer.toString().trim();
  }

  private static final class ToTextNodeVisitor implements NodeVisitor {
View Full Code Here

Examples of org.neo4j.graphdb.Node.traverse()

    }

    public Iterable<Node> getAllNodesAfter( final long timestamp )
    {
        Node startNode = getIndexedStartNode( timestamp );
        return startNode.traverse( Order.DEPTH_FIRST, new StopEvaluator()
        {
            public boolean isStopNode( TraversalPosition position )
            {
                if ( position.lastRelationshipTraversed() != null
                     && position.currentNode().equals( underlyingNode ) )
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.