Package com.projity.functor

Examples of com.projity.functor.ObjectVisitor


  public boolean isReadOnlyEffortDriven(FieldContext fieldContext) {
    return ((TaskSnapshot) getCurrentSnapshot()).isReadOnlyEffortDriven(fieldContext);
  }

  public static Closure forAllAssignments(Closure visitor) {
    return new ObjectVisitor(visitor) {
      protected Object getObject(Object arg0) {
        return ((TaskSnapshot) ((Task) arg0).getCurrentSnapshot())
            .getHasAssignments();
      }
    };
View Full Code Here


    return detail.getResource();
  }


  public Closure forResource(Closure visitor) {
    return new ObjectVisitor(visitor) {
      protected final Object getObject(Object caller) {
        return ((Assignment)caller).getResource();
      }
    };
  }
View Full Code Here

      }
    };
  }

  public Closure forTask(Closure visitor) {
    return new ObjectVisitor(visitor) {
      protected final Object getObject(Object caller) {
        return ((Assignment)caller).getTask();
      }
    };
  }
View Full Code Here

  public void setProject(Project project) {
    this.project = project;
  }

  public static Closure forProject(Closure visitor) {
    return new ObjectVisitor(visitor) {
      protected final Object getObject(Object caller) {
        return ((Task)caller).getProject();
      }
    };
  }
View Full Code Here

//    return Document.getTestInstance().getContextManager().getGlobalContext().getTaskContext(View.UNNAMED).getModel().getHierarchy();
//  }
//
//
  public static Closure forParent(Closure visitor) {
    return new ObjectVisitor(visitor) {
      protected final Object getObject(Object caller) {
        return ((Task)caller).getProject().getTaskOutline().getHierarchy().getParent((Node)caller);
      }
    };
  }
View Full Code Here

  public boolean isReadOnlyEffortDriven(FieldContext fieldContext) {
    return ((TaskSnapshot) getCurrentSnapshot()).isReadOnlyEffortDriven(fieldContext);
  }

  public static Closure forAllAssignments(Closure visitor) {
    return new ObjectVisitor(visitor) {
      protected Object getObject(Object arg0) {
        return ((TaskSnapshot) ((Task) arg0).getCurrentSnapshot())
            .getHasAssignments();
      }
    };
View Full Code Here

TOP

Related Classes of com.projity.functor.ObjectVisitor

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.