Examples of CollectionFunctions


Examples of project.gluebooster.collections.CollectionFunctions

    graph.addEdges( xmlToSource, writer);
    graph.addEdges( outputStream, writer);
    graph.addEdges( encoding, writer);
    graph.addEdges( omitProcessingInstruction, writer);

    BoostFunction toByteArray = new CollectionFunctions(CollectionFunctions.Operation.toByteArray);
    graph.addEdges( writer, toByteArray);
   
   
    BoostFunction toString = new StringFunctions(StringFunctions.Operation.byteArrayToString);
    graph.addEdges( toByteArray, toString);//TODO not correct use a combining node
View Full Code Here

Examples of project.gluebooster.collections.CollectionFunctions

     filteredNode.setParentFunction( ReflectionFunctions.createInvokeMethod("getParent"));
     filteredNode.setChildrenFunction( FunctionFactory.concatenation(
         ReflectionFunctions.createInvokeMethod("children"),
                 new EnumerationWithFilterFunction<TreeNode>(function, context),
                 //new ToListFunction<TreeNode>(),
                 new CollectionFunctions(CollectionFunctions.Operation.toIterator),
                 new ModifyingFunction(ModifyingFunction.Operation.iterate, new TreeNodeFactory(TreeNodeOperation.createChildrenFilteringTreeNode, function)),
                 new CollectionFunctions(CollectionFunctions.Operation.toList)
                 ));
     filteredNode.setUserObject(rootNode);
    
     return filteredNode;
   
View Full Code Here

Examples of project.gluebooster.collections.CollectionFunctions

      filteredNode.setParentFunction( ReflectionFunctions.createInvokeMethod("getParent"));
      filteredNode.setChildrenFunction( FunctionFactory.concatenation(
          ReflectionFunctions.createInvokeMethod("children"),
                  new EnumerationWithFilterFunction<TreeNode>(childAllowedFunction, context),
                  //new ToListFunction<TreeNode>(),
                  new CollectionFunctions(CollectionFunctions.Operation.toIterator),
                  new ModifyingFunction(ModifyingFunction.Operation.iterate, new TreeNodeFactory(TreeNodeOperation.createChildrenFilteringTreeNode, childAllowedFunction)),
                  new CollectionFunctions(CollectionFunctions.Operation.toList)
                  ));
      filteredNode.setUserObject(rootNode);
     
      return filteredNode;
    
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.