Package com.projity.functor

Examples of com.projity.functor.CollectionVisitor


  /* (non-Javadoc)
   * @see com.projity.pm.dependency.HasDependencies#getWorkCalendar()
   */

  public Closure forAllPredecessors(Closure visitor) {
    return new CollectionVisitor(visitor) {
      protected final Collection getCollection(Object arg0) {
        return ((HasDependencies)arg0).getPredecessorList().getList();
      }
    };
  }
View Full Code Here


        return ((HasDependencies)arg0).getPredecessorList().getList();
      }
    };
  }
  public Closure forAllSuccesssors(Closure visitor) {
    return new CollectionVisitor(visitor) {
      protected final Collection getCollection(Object arg0) {
        return ((HasDependencies)arg0).getSuccessorList().getList();
      }
    };
  }
View Full Code Here

      }
    }
  }

  public static Closure forAllAssignments(Closure visitor, Predicate filter) {
    return new CollectionVisitor(visitor,filter) {
      protected final Collection getCollection(Object arg0) {
        return ((HasAssignments)arg0).getAssignments();
      }
    };
  }
View Full Code Here

    };
  }


  public static Closure forAllChildren(Closure visitor, Predicate filter) {
    return new CollectionVisitor(visitor,filter) {
      protected Collection getCollection(Object caller) {
        return ((Task)caller).getProject().getTaskOutline().getHierarchy().getChildren((Node)caller);
      }
    };
  }
View Full Code Here

TOP

Related Classes of com.projity.functor.CollectionVisitor

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.