Class InterviewSet

java.lang.Object
com.sun.interview.Interview
com.sun.interview.InterviewSet

public class InterviewSet extends Interview
InterviewSet is an interview that is also a container for an ordered set of child interviews. The default execution order for the children is the order in which they are added to this container, but the order can be modified by specifying dependencies between child interviews: all dependencies for any child will be executed before the child itself. Child interviews are added into an interview set by specifying this interview as their parent. The interview is invoked by using Interview.callInterview(com.sun.interview.Interview, com.sun.interview.Question) in the usual way.
See Also:
  • Constructor Details

    • InterviewSet

      protected InterviewSet(Interview parent, String baseTag)
      Create an interview set.
      Parameters:
      parent - the parent interview for this interview
      baseTag - A name that will be used to qualify the tags of any sub-interviews in this interview, to help ensure uniqueness of those tags.
  • Method Details

    • addDependency

      protected void addDependency(Interview child, Interview dependency) throws InterviewSet.CycleFault
      Specify a dependency for a child interview. When the interview is executed, all dependencies for each child interview will be invoked before that child.
      Parameters:
      child - the interview which depends on (and will be executed after) the dependency
      dependency - the interview on which the child interview depends, and which will be executed before the child interview
      Throws:
      InterviewSet.CycleFault - if a dependency cycle would be created
      See Also:
    • removeDependency

      protected void removeDependency(Interview child, Interview dependency)
      Remove any dependency between two interviews, and hence any ordering constraint between these two interviews.
      Parameters:
      child - the interview which depends on the dependency
      dependency - the interview on which the child interview depends